全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 715|回复: 2
打印 上一主题 下一主题

请高手帮忙防火墙配置

[复制链接]
跳转到指定楼层
1#
发表于 2011-7-21 11:53:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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
现在关了防火墙就可以访问网站开了机就无法访问请高手前辈办帮忙结觉一下!
2#
发表于 2011-7-21 12:00:43 | 只看该作者
开80端口,网上有的是配置。
3#
发表于 2011-7-21 12:04:25 | 只看该作者
iptables -I INPUT -m tcp -p tcp --dport 80 -j ACCEPT

评分

参与人数 1威望 +10 收起 理由
chaoren521 + 10 谢谢!

查看全部评分

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-10-15 03:15 , Processed in 0.064124 second(s), 13 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表