iptables规则的删除操作



iptables规则的删除操作
 
Sh代码    www.2cto.com  
iptables -L INPUT --line-numbers  列出INPUT 链所有的规则  
num  target    prot opt source              destination          
1    REJECT    tcp  --  anywhere            anywhere          
 tcp dpt:microsoft-ds reject-with icmp-port-unreachable   
2    REJECT    tcp  --  anywhere            anywhere          
 tcp dpt:135 reject-with icmp-port-unreachable   
...  
...  
    删除指定的第4行规则:
 
iptables -D INPUT 2  
 

相关内容

    暂无相关文章