In order to flush all iptables rules , Run the following commands :
iptables -F iptables -X iptables -t nat -F iptables -t nat -X iptables -t mangle -F iptables -t mangle -X iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT
If your default policy is DROP make sure to change the INPUT FORWARD and OUTPUT policy before the -F or you will be locked.
Comment by vaL — July 28, 2010 @ 9:59 am