Sometimes it is necessary to "shutdown" or disable our Linux iptables,
the procedure depends on the Linux distribution you're using.
1) Procedure if you are using Redhat, Fedora, Mandriva / Mandrake or Centos, you just have to run the following:
# service iptables save
# service iptables stop
# chkconfig iptables off
or
# / etc /init.d/iptables stop
2) How to disable iptables on Debian or Ubuntu
a) Create a script called fw.stop with the following contents:
# /bin/sh
echo "Stopping firewall and Allowing everyone ..."
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
b) Give execute permission to the script:
# chmod + x / root / fw.stop
or
# chmod 755 fw.stop
c) You can run the scritp with the following command:
# ./fw.stop
More info at:
http://sources68.com/linux-disable-remove-the-iptables-firewall-1fa67761.html
# service iptables save
# service iptables stop
# chkconfig iptables off
or
# / etc /init.d/iptables stop
2) How to disable iptables on Debian or Ubuntu
a) Create a script called fw.stop with the following contents:
# /bin/sh
echo "Stopping firewall and Allowing everyone ..."
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
b) Give execute permission to the script:
# chmod + x / root / fw.stop
or
# chmod 755 fw.stop
c) You can run the scritp with the following command:
# ./fw.stop
More info at:
http://sources68.com/linux-disable-remove-the-iptables-firewall-1fa67761.html