Modify iptables rules
Published: 03 October 2017
Note: this article is old and may contain outdated or incorrect information.
Show all iptables rules and include line numbers
iptables -L INPUT --line-numbers
Replace iptables rule at a specific line number
iptables -R X INPUT <new rule here>