Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2009-07-13
5
Medium Priority
?
243 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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…
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…
Suggested Courses

636 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