Lets say you have a bunch of sweet rules in iptables but there’s an application you are trying to install and it just will not work. You think it might be the restriction’s in your firewall but you don’t feel like toying with it right now.

Easiest thing to do? Just clear out everything and allow all traffic for the time being (until you can get that damn application to work) Here’s a script that will help you do just that.

#!/bin/bash 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 echo "Done. All traffic is now allowed."

Blog Logo

Mario Loria




Because gets old after a while.

Back to Overview