全球主机交流论坛

标题: 请高手帮忙防火墙配置 [打印本页]

作者: chaoren521    时间: 2011-7-21 11:53
标题: 请高手帮忙防火墙配置
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  66.29.0.0/19       anywhere            
           all  --  anywhere             anywhere            
RH-Firewall-1-INPUT  all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             anywhere            multiport dports http
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http

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         
ACCEPT     all  --  anywhere             66.29.128.0/19      
           all  --  anywhere             anywhere            

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
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited
现在关了防火墙就可以访问网站开了机就无法访问请高手前辈办帮忙结觉一下!
作者: wdlth    时间: 2011-7-21 12:00
开80端口,网上有的是配置。
作者: jasontse    时间: 2011-7-21 12:04
iptables -I INPUT -m tcp -p tcp --dport 80 -j ACCEPT




欢迎光临 全球主机交流论坛 (https://sunk.eu.org/) Powered by Discuz! X3.4