List rules
iptables -L -v -n --line-numers
We can use the line numbers later to delete rules.
Delete rules
iptables -D INPUT 1
INPUT is the chain from which we delete the rule with line number 1
Allow incoming connection to a port
Allow incoming connections to port 1510 on …
read more