![]() |
|
Firewall untuk Proxy DansGuradian - Printable Version +- HN-Community (https://hacker-newbie.org) +-- Forum: Miscellaneous (https://hacker-newbie.org/forum-86.html) +--- Forum: General Computing (https://hacker-newbie.org/forum-16.html) +---- Forum: Networking (https://hacker-newbie.org/forum-18.html) +---- Thread: Firewall untuk Proxy DansGuradian (/thread-1382.html) |
Firewall untuk Proxy DansGuradian - akatsuchi - 12-22-2009 Bagi kalian yang membutuhkan firewall bersama DansGuardian. Dapat menginstalasi script berikut. Siapkan port ke Firewall. Bagian ini memang sifatnya optional, tapi sangat di sarankan. Copy perintah berikut ke file /etc/network/if-up.d/iptables-config Code: #!/bin/bash
iptables -F
# set the default policy for each of the pre-defined chains
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# to allow incoming SSH and Proxy
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -m state --state NEW -p tcp -m tcp -s 127.0.0.1 --dport 3128 -j ACCEPT
iptables -A INPUT -m state --state NEW -p tcp -m tcp --dport 8080 -j ACCEPT
# drop everything else
iptables -A INPUT -i eth+ -p udp -j DROP
iptables -A INPUT -i eth+ -p tcp -m tcp --syn -j DROPPastikan iptables-config dapat di execute / jalankan Code: # chmod +x /etc/network/if-up.d/iptables-configsemoga bermanfaat :)) RE: Firewall unutk Proxy DansGuradian - jurank_dankkal - 12-22-2009 sedot kk... RE: Firewall untuk Proxy DansGuradian - akatsuchi - 12-22-2009 oke bro |