修改iptable设置

查看table name

cat /proc/net/ip_tables_names
filter
nat

然后 iptables -L -t [table name]   table Name就是上面得到的。

iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination        
REDIRECT   tcp  —  192.168.1.0/24       anywhere            tcp dpt:http redir ports 8080
REDIRECT   tcp  —  192.168.1.0/24       anywhere            tcp dpt:http redir ports 3128

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination        

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination   

删除PREROUTING 的规则

iptables -t nat -D PREROUTING 1

 

参考:http://www.example.org.cn/2006/12/iptables.html

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据