我有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
Run Code Online (Sandbox Code Playgroud)
现在我试图从同一局域网上的其他电脑访问该电脑上的本地站点,但我无法访问。
然后我单击 CentOS 管理菜单中的 fireall 和 security 菜单,然后将端口 80 添加为允许的端口,然后我就能够访问该端口
但我的 iptables 规则仍然没有显示任何有关 prot 80 的内容
| 归档时间: |
|
| 查看次数: |
35067 次 |
| 最近记录: |