小编bso*_*d99的帖子

CentOS 6 - iptables 阻止通过端口 80 访问网络

我正在使用 CentOS 6.2 设置新的 Web 服务器,但无法通过 Web 进行连接。一切看起来都设置正确httpd.conf并且 Apache 正在运行,所以我假设这是一个 iptables 问题。

以下是否有任何可能导致问题的内容?

编辑:如果我停止 iptables,我可以正常连接,所以必须在下面进行调整。我已经运行iptables -A INPUT -p tcp --dport 80 -j ACCEPT并保存并重新启动了 iptables 但没有任何区别

# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     icmp --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited
ACCEPT     tcp  --  anywhere             anywhere            tcp …
Run Code Online (Sandbox Code Playgroud)

linux centos apache-http-server iptables

6
推荐指数
1
解决办法
3万
查看次数

标签 统计

apache-http-server ×1

centos ×1

iptables ×1

linux ×1