LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Apache won't accept or reject incoming internet connections but accepts on local lan (https://www.linuxquestions.org/questions/linux-networking-3/apache-wont-accept-or-reject-incoming-internet-connections-but-accepts-on-local-lan-453150/)

zenchess 06-09-2006 07:42 AM

Apache won't accept or reject incoming internet connections but accepts on local lan
 
Hi. I installed mandriva linux 2006. Apache won't accept incoming internet connections (it also doesnt refuse them, it just times out). It does accept connections via LAN however.

I went to the firewall settings in the control center and checked to allow for ssh and webserver. I looked at the iptables setup and it has ports 22 and 80 allowed.

This is what my hosts.deny looks like:

ALL: ALL EXCEPT 127.0.0.1 : DENY
httpd: ALL : ALLOW

This is what my hosts.accept looks like:
sshd: ALL : ALLOW
httpd: ALL : ALLOW

I can successfully ssh into the machine from a remote location.
I edited the httpd.conf file and put in the server i.p. address under servername (192.168.15.100)

I also changed the order, deny Deny from all to Allow from all even though I don't think that's necessary.

ANyways, I've looked at several apache configuration guides, and as far as I know it should already work.

zenchess 06-09-2006 07:43 AM

Also wanted to note that I have port forwarded ports 22 and 80 to the servers i.p. address on my local router.

zenchess 06-09-2006 08:04 AM

Quote:

Originally Posted by zenchess

This is what my hosts.accept looks like:


I meant to say hosts.allow

zenchess 06-10-2006 09:06 AM

I figured out what the problem was (eventually). My isp blocks port 80. Switching to port 8000 worked.


All times are GMT -5. The time now is 04:33 AM.