Iptables: remove rules and allow full access

Copy the lines to a new file, eg. disable-iptables.sh and give the file the execute rights.

#!/bin/bash
# all open ๐Ÿ™‚

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
root@debian-iptables1 ~ # vim disable-iptables.sh
root@debian-iptables1 ~ # chmod +x disable-iptables.sh

Start with:

root@debian-iptables1 ~ # ./disable-iptables.sh

After a stupid mistake sometimes helpful. ๐Ÿ™‚

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s