- 论坛徽章:
- 0
|
10可用积分
服务器开了防火墙以后客户端就不能访问网页了,不开防火墙就能正常访问
下面是我防火墙的设置,我只设置了filter表,其他的表都是空的
[root@localhost ~]# iptables -vL
Chain INPUT (policy ACCEPT 2008 packets, 279K bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT udp -- any any anywhere anywhere udp dpt:domain
2824 207K ACCEPT tcp -- any any anywhere anywhere tcp dpt:ssh
1083 222K ACCEPT tcp -- any any anywhere anywhere tcp dpt:squid
2 100 ACCEPT tcp -- lo any anywhere anywhere
5966 601K REJECT all -- any any anywhere anywhere reject-with icmp-port-unreachable
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 7642 packets, 1636K bytes)
pkts bytes target prot opt in out source destination
如果我加一条 ACCEPT tcp -- eth0 any anywhere anywhere,也是可以一切正常
第一条计数是0KB,怪怪的。。。
实在是在不知道怎么回事了,疯了要。还请大侠和版主帮帮我
[ 本帖最后由 pxczy 于 2009-8-19 09:15 编辑 ] |
|