Thursday, March 29, 2007

linux: how to stop the firewall


To stop your linux firewall, first login as root, else use sudo for the following commands.

Option A - If you are on a RedHat or Fedora based system:
/etc/init.d/iptables stop
OR
service iptables stop

Option B - If you are on a Debian-based system,:
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[/code]


Source

No comments: