1.删除某一条规则
[root@server02 ~]# iptables -L --line-number
Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 DROP icmp -- anywhere anywhere icmp any
2 ACCEPT icmp -- anywhere anywhere icmp any
Chain FORWARD (policy ACCEPT)
num target prot opt source destination
Chain OUTPUT (policy ACCEPT)
num target prot opt source destination
[root@server02 ~]# iptables -D INPUT 1 -D指定链表。
本文介绍如何使用iptables命令删除特定的防火墙规则。通过实例展示如何查看规则列表并定位要删除的规则编号,然后使用-D选项从指定链表中移除该规则。
554

被折叠的 条评论
为什么被折叠?



