在使用GCE的时候,我们有时候发现即使防火墙里设置了端口的开发,有时候也无法访问web,这时候要检查一下iptables的状态。

或者懒人办法,输入以下命令:

iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT