centos6.3,打开httpd后只有在本机上才能访问,从别人机子上无法访问,请问这是怎么回事?

saidmu 发布于 2012/12/12 12:48
阅读 1K+
收藏 0

使用本机ip访问后的http日志

172.18.13.54 - - [12/Dec/2012:12:39:41 +0800] "GET / HTTP/1.1" 200 23 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121121 Firefox/10.0.11"

172.18.13.54 - - [12/Dec/2012:12:39:41 +0800] "GET /favicon.ico HTTP/1.1" 404 289 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121121 Firefox/10.0.11"

172.18.13.54 - - [12/Dec/2012:12:39:41 +0800] "GET /favicon.ico HTTP/1.1" 404 289 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121121 Firefox/10.0.11"
172.18.13.54 - - [12/Dec/2012:12:43:31 +0800] "GET / HTTP/1.1" 200 23 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11"
172.18.13.54 - - [12/Dec/2012:12:43:31 +0800] "GET /favicon.ico HTTP/1.1" 404 289 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11"
127.0.0.1 - - [12/Dec/2012:12:43:52 +0800] "GET / HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11"
127.0.0.1 - - [12/Dec/2012:12:43:53 +0800] "GET /favicon.ico HTTP/1.1" 404 286 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11"


从别的ip访问就显示无法显示,不知到怎么回事,请指教。

还有IPTABLES 设置:

[root@mu ~]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
ACCEPT     icmp --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh 
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 


Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 


Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         


加载中
0
OscerSong
OscerSong
itpables -F  应该就好了 
saidmu
saidmu
好了,谢谢
0
lapvc
lapvc
你可以直接关了防火墙试试,如果不行,关一下selinux试试
saidmu
saidmu
selinux现在是Permissive模式,应该不用关了吧
返回顶部
顶部