iptables --list 查看列表

iptables删除规则

iptables -nL --line-number

Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
2 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0
3 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
4 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
5 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0

Chain FORWARD (policy ACCEPT)
num target prot opt source destination
1 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
num target prot opt source destination

iptables -D INPUT 5

 

相关文章:

  • 2022-02-22
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2021-05-02
  • 2021-08-19
  • 2022-02-08
  • 2021-12-22
猜你喜欢
  • 2021-08-18
  • 2021-12-13
  • 2022-12-23
  • 2021-08-14
  • 2021-08-06
  • 2021-11-05
  • 2021-11-07
相关资源
相似解决方案