Useful iptables commands
Show iptables with line numbers
-n
– Numeric output. IP addresses and port numbers will be printed in numeric format.
-L
– List all rules in the selected chain. If no chain is selected, all chains are listed.
Insert (add) rule in the specific place in iptables as it works descending
Number “9” in the example above stands for this rule will be inserted on the ninth place in iptables.