Handy iptables scripts

Allow pings:

iptables -I OUTPUT --protocol icmp --jump ACCEPT
iptables -I INPUT --protocol icmp --jump ACCEPT

Testing a clients machine that it can connect to the CC VPN at Crows Nest:

(This should be AFTER any the allow pings lines in scripts, due to being an INSERT type rule.)

iptables -I OUTPUT --protocol icmp -o eth0 --destination 192.168.240.1 --jump DROP

iptables (last edited 2013-09-18 06:09:33 by localhost)