iptables delete rule by line number code example
Example: remove iptables rule
#find line number of rule
$ sudo iptables -L INPUT --line-numbers
## delete rule by number
$ sudo iptables -D INPUT 1
. . .
#find line number of rule
$ sudo iptables -L INPUT --line-numbers
## delete rule by number
$ sudo iptables -D INPUT 1
. . .