Clearing Firewall Settings
Sometimes it may be necessary to clean up existing firewall settings so you can redo them from scratch. Here’s some helpful steps courtesy of Vivek Gite.
Note: This applies to Redhat, Fedora, and Cent OS
# service iptables save
# service iptables stop
# chkconfig iptables off
If you are using any other disro type the following command to clear up firewall rules:
# 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 OUTPUT ACCEPT
Thanks Vivek!