access webpage on another PC in my network
Hi, I have run into a brick wall and I think I may be missing something obvious.
I set up LAMP/Mediawiki 1.20.2 on a CENTOS 6 server. From that server I can http://10.1.1.101/mw. With mw being the name of my wiki. At this point I am editting the wiki. I can also see 10.1.1.101/index.php so it looks like all components are working internally. I want to view the wiki from firefox on another PC. (which can access 10.1.1.101) so I try 10.1.1.101/mw and I get Firefox can't establish a connection to the server at 10.1.1.101.Is there something I need to open on the CENTOS firewall to allow incoming http traffic? Thanks |
Hi,
I guess you need to open port 80. To do so, add Code:
-A RH-Firewall-1-INPUT -m tcp -p tcp --dport 80 -j ACCEPT For more detail have a look here Regards |
Hi bathory, firstly thanks for the link and advice. I have added both to my wiki.
I entered the new line (which I verified in the link provided) to iptables and restarted the service. When I restarted I got an error: I found a site (http://www.mythdora.com/?q=node/4638) which recommended removing the RH-Firewall-a component of the line. This allowed iptables to restart but I still could not access HTTP from another PC. Is this advice valid? Anyway, I have run our of time today and will resume tomorrow with a better idea of what I am doing. Cheers |
Quote:
Quote:
Code:
:RH-Firewall-1-INPUT - [0:0] Quote:
|
Hi bathory, Firstly I could not get iptables to accept the RH-Firewall-1-INPUT component. I kept getting the error mentioned above. I ended up with this line.
-A INPUT -m tcp -p tcp --dport 80 -j ACCEPTI also tried with the --state parameter. I restarted ip tables without error but I could still not access the site. Hmmmm, embarrassed mode! I restarted firefox and I can access the site. Thanks for your help and the link. I am marking this as solved |
All times are GMT -5. The time now is 08:40 PM. |