由于脚本里把udp 53端口做了DNS转发,因此需要去掉iptables里的规则:

方法一注释以下两条:

iptables -t nat -A PREROUTING -p udp –dport 53 -j DNAT –to-destination 114.114.114.114
iptables -t nat -A PREROUTING -p udp –dport 53 -j DNAT –to-destination 8.8.8.8

方法二删除:

iptables -t nat -D PREROUTING -p udp –dport 53 -j DNAT –to-destination 114.114.114.114
iptables -t nat -D PREROUTING -p udp –dport 53 -j DNAT –to-destination 8.8.8.8

 

然后添加允许udp  53端口:

iptables -A INPUT -p udp –dport 53 -j ACCEPT

哟?不错哎 订阅小米的RSS Feeds 回去慢慢看^_^