Ning Ma blog

my technology tips

February, 2015

iptables list add remove by line number

List all rules with line number:

Block all access from 46.151.0.0/16 range at line 12:

delete rules based on their number and chain name: