iptables -t nat -L --line-numbers

iptables -D INPUT 3: 通过Chain Name(INPUT) 和 line number(3)来删除规则

iptables -t nat -I PREROUTING -m set --match-set myset src -m comment --comment "myset" -j return



ipset create myset hash:ip
ipset add myset 192.168.1.1


ipset create myset hash:ip
ipset add myset 192.168.2.226
iptables -t nat -I SS_SPEC_WAN_FW -m set --match-set myset src -m comment --comment "myset" -j RETURN
#在nat表的SS_SPEC_WAN_FW之前加入一个规则:遇到匹配myset的ip的跳过余下规则


相关文章:

  • 2021-12-22
  • 2021-06-12
  • 2022-01-01
  • 2021-11-19
  • 2021-05-23
  • 2021-08-18
猜你喜欢
  • 2021-11-06
  • 2021-11-13
  • 2022-12-23
  • 2021-12-05
  • 2021-10-21
  • 2022-12-23
相关资源
相似解决方案