Debian Linux Stop Iptables Firewall

by Vivek Gite on March 20, 2008 · 0 comments

H do I stop Iptables firewall under Debian Linux server system?

You need to login as root user.

If it is remote server login over ssh session.

Type the following command to save existing iptables configuration.
iptables-save > /root/working.iptables.rules

Now, to stop firewall type 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 OUTPUT ACCEPT
iptables -P FORWARD ACCEPT

Use this shell script to stop firewall.

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 6 + 10 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: