This will show the now current state of iptables
iptables -S
This will show all current iptable rules
iptables -L -v -n | more
This will list all iptables rules with line numbers
iptables -L --line-numbers
This will delete the rule on line X
iptables -D INPUT X
This will set the iptables standarts
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
This will clear all empty (-F
) and non standart rules (-X
).
iptables -t nat -F
iptables -t mangle -F
iptables -F
iptables -X