Solved

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

Posted on 2009-07-13
5
235 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now