在Centos+nginx+wordpress环境下启动iptables 网站返回502
网站环境:Centos nginx php(wordpress)
现在的问题总结如下:
启动iptables网站返回502,关闭iptables网站打开正常
iptables 设置如下:
Chain INPUT (policy DROP 1 packets, 139 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- lo any anywhere anywhere
17 1460 ACCEPT all -- any any anywhere anywhere state RELATED,ESTABLISHED
1 40 ACCEPT tcp -- any any anywhere anywhere tcp dpt:ssh
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:mysql
2 80 ACCEPT tcp -- any any anywhere anywhere tcp dpt:http
0 0 ACCEPT all -- lo any anywhere anywhere
0 0 ACCEPT icmp -- any any anywhere anywhere
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:pptp
0 0 ACCEPT gre -- any any anywhere anywhere
Chain FORWARD (policy ACCEPT 0&