Menghapus rule iptables
# iptables -t nat -F
Eneble IP Forwarding
# echo 1 > /proc/sys/net/ipv4/ip_forward
Enable IP Masquerade
# iptables -t nat -A POSTROUTING -s 192.168.5.0/24 -o eth1 -j MASQUERADE
iptables REDIRECT to localhost
# iptables -t nat -A PREROUTING -p tcp --dport 80 -i eth2 -j DNAT --to 192.168.5.1
Jumat, 09 Juli 2010
Contoh Firewall iptables
Diberdayakan oleh Blogger.
0 Komentar:
Posting Komentar