Solved

Can browse to localhost but client machines cannot access the http site

Posted on 2009-07-13
5
239 Views
Last Modified: 2013-12-16
Hi
I have a subnet 192.168.0.0/255.255.255.0. My Apache 2 webserver is on 192.168.0.119. I have another host on .111. I can browse from .119 (localhost) fine, but when I try to access the web pages from .111, I get an error "unable to connect" (in firefox). I can ping the machine, connect to it with SSH etc. I set the permissions on the DocumentRoot  dir and files in it to 755. Any ideas?

Thanks
tr5
0
Comment
Question by:tr5
  • 3
  • 2
5 Comments
 

Author Comment

by:tr5
ID: 24838015
Web server machine is a Fedora Core 10 . Other client is a XP.
0
 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 500 total points
ID: 24838060
It seems that you have your Firewall active and blocking your HTTP connections.

juet edit your /etc/sysconfig/iptables

and add this line :
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

after

-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT


Save aned exit. Issue this command:

service iptables restart

0
 

Author Comment

by:tr5
ID: 24838292
Well done. That was it. Just one thing: I changed your line to:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
to look the other lines in the iptables file (It didn't restart iptables with your syntax.)


0
 

Author Closing Comment

by:tr5
ID: 31602740
Good job. Thanks.
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24838339
Ok. It seems that Fedora is using INPUT instead of RH-Firewall-1-INPUT. It is RHEL default. You're welcome.
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question