Rodolfo Bandeira

Rodolfo Bandeira

software, electronics, security, devops, thoughts

How to clear all iptables rules

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

Last modified:

LinkedIn
WhatsApp