修改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