Blog

List rules with line numbers:

iptables -L INPUT --line-numbers

num | target | prot | opt | source | destination ------------ | ------------- | ------------- | ------------- | ------------- | ------------- 18 | ACCEPT | all | -- | 192.168.1.100 | anywhere

Delete line:

iptables -D INPUT 18

Save changes:

service iptables save
Zoeken