# 显示iptables规则行号
iptables -nL --line-numbers
# 删除某行规则
iptables -D INPUT 11
# 在某行插入新的规则,原来的规则会自动下移
iptables -I INPUT 13 -s 1.2.3.4 -p tcp -m state --state NEW --dport 22 -j ACCEPT

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
  • 2021-12-26
  • 2021-08-26
  • 2021-07-09
  • 2022-12-23
  • 2021-11-03
猜你喜欢
  • 2022-01-26
  • 2022-12-23
  • 2022-12-23
  • 2022-02-21
  • 2022-12-23
  • 2021-06-12
相关资源
相似解决方案