Rodolfo Bandeira
Home Blog Posts Photos Videos Github Contact
<< All Posts
How to clear all iptables rules

Feb 17, 2014


#!/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

Rodolfo



<< All Posts

Previous post:
How to use crontab in CentOS Linux
Most recent post:
How to install snmpwalk in CentOS

rodolfo.io 🇧🇷 🇨🇦

Runs on OpenBSD 🐡
Twitter Github Linkedin RSS