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