Fedora 14的新安装阻止了Apache,FTP等

这是令我费解的,因为我从Fedora 14做了一个全新的安装,我根本没有这个问题。 防火墙似乎阻止了我的所有服务,如果我停止iptables服务,那么我可以连接。

出'iptables -L -n -v'

Chain INPUT (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 5842 5881K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED 0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 0 0 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0 33 1932 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22 1113 64847 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited Chain FORWARD (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited Chain OUTPUT (policy ACCEPT 4897 packets, 450K bytes) pkts bytes target prot opt in out source destination 

我不认为Fedora安装防火墙规则允许他们自己。 一般在安装的防火墙设置部分中,您必须为http和其他端口添加访问权限。

查看/ etc / sysconfig / iptables脚本文件。 在那里你会看到一个TCP端口22(ssh)的规则。 您可以复制该规则并将端口更改为80.然后运行“iptables-restore </ etc / sysconfig / iptables”或者仅使用防火墙configuration工具为您需要的其他端口添加访问权限。