我有centos 5。
我尝试了iptables -L,并提供以下输出
Chain INPUT (policy ACCEPT) target prot opt source destination RH-Firewall-1-INPUT all -- anywhere anywhere Chain FORWARD (policy ACCEPT) target prot opt source destination RH-Firewall-1-INPUT all -- anywhere anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain RH-Firewall-1-INPUT (2 references) target prot opt source destination ACCEPT all -- anywhere anywhere ACCEPT icmp -- anywhere anywhere icmp any ACCEPT esp -- anywhere anywhere ACCEPT ah -- anywhere anywhere ACCEPT udp -- anywhere 224.0.0.251 udp dpt:mdns ACCEPT udp -- anywhere anywhere udp dpt:ipp ACCEPT tcp -- anywhere anywhere tcp dpt:ipp ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:http REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
NOW我试图从同一局域网上的其他电脑访问我的本地网站,但我无法。
然后我点击火线和安全菜单在centOSpipe理菜单,我在端口80添加端口允许,然后我能够访问
但是我的iptables规则仍然没有显示关于prot 80的任何信息
CentOS防火墙和iptables是一样的东西。 参考这个文件 。
你可以从命令行控制iptables,也可以通过GUI菜单中的“安全级别configuration工具”界面来控制iptables。
默认情况下,防火墙在安装过程中启用。 设置界面会推荐它,它会阻止所有的stream量,除非你明确允许。