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>
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>