or how to break your server in three commands or less

To see firewall rules:

sudo iptables -L --line-numbers

To delete a line (line #1):

sudo iptables -D FORWARD 1

To see your NAT rules:

sudo iptables -L -t nat --line-numbers

To delete a line (line #6):

iptables -t nat -D PREROUTING 6

See also

This post by Thinkl33t 😀

Related Articles

%d bloggers like this: