Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I just installed Fedora 5 and plan to use it to run an Apache web server in my home. After the install was done I started Apache and opened a browser page. I typed http://192.168.2.106 and saw the default test page so I figured everything was setup OK. I tried doing the same from another computer on my lan but got a page not found. I also tried it from outside the lan by typing www.compunerdsdev.com and http://compunerdsdev.com, but got the same result. I checked the settings in ZoneEdit and the web server should be live, and I have port 80 forwarded in my router. I also found out that my ISP doesn't block port 80. I was able to ping the server from my XP pro computer. I even set SElinux to permit and still nothing. Any suggestions would be much appreciated.
Most probably your firewall in the Webserver is setup so as to deny any connections from outside the local machine. Please check if you have any rules in your IPTABLES or TCP Wrappers (/etc/host.deny & /etc/host.allow).
Also it would be much appreciated if you could paste your 'iptables -L' output. Think we can solve it...
Thanks for the quick reply. Here is the contents of my iptables. The /etc/host.allow and deny files contained no additional information except for comments.
and it should do it.
As for why ACCEPT all -- anywhere anywhere in the first line does not work. I am not sure. But it seems that the last line of reject all did his work. I tried google for a while but did not find any good explaination. Maybe, someone else can share his knowledge here.
According to documentation of iptables, the rule are parsed one by one in the order of the rule set. If there were a match like ACCEPT, it is accpet and terminated. Clearly, this does not happen here.
Thanks everyone for the expert advise. I stopped the iptaples and everything worked OK. After adding port 80 to iptables I can now open the test page with http://192.168.106.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.