Click to See Complete Forum and Search --> : Need Help testing iptables commands


edwinyee82
03-17-2003, 02:47 PM
I need help testing the command I entered in the rc.local file. I want to make sure the the commands are working correctly. Here is my rc.local file:

#this drops all icmp packets
iptables -A input -p icmp -j DROP -f

#IP_FORWARDing
iptables -P FORWARD DROP
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
iptables -A FORWARD -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

How would i got about testing the commands?

Thanks for all the help guys and gals