LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Cannot access Apache from WAN side (https://www.linuxquestions.org/questions/linux-server-73/cannot-access-apache-from-wan-side-775796/)

rezwan 12-15-2009 09:18 AM

Cannot access Apache from WAN side
 
Hey I have read a few of related threads but never got an answer for my problem so I decided to create a new thread. Here's the situation and the problem.

I have a Linux box running openSUSE 11.2 with Apache2 web server (home computer). I can access the web server from any computer connected to my LAN using the Linux box's IP address. I cannot connect to the web server from any computer outside my LAN (WAN, ex. computer at my work).

I have triple checked that the port is being forwarded by the router, I even used a brand new router. There's no firewall running in the Linux box. I even tried to change the port numbers that Apache listens on to 8080, 8888. I know that my ISP is not blocking incoming HTTP requests because I can access my router's configuration remotely. I also have a FTP(21) and NX Server(22) running on the Linux box which I can access perfectly fine from the outside (WAN).

I have been searching the web for about a month to resolve this issue but I had no luck. Anybody with any information, please post.

Thank you in advance for your time.

SethsdadtheLinuxer 12-15-2009 09:27 AM

Are you "Listening" correctly? (httpd.conf or listen.conf) should have two lines
listen internal (192.blah.blah.blah)
listen external (blah.blah.blah.blah)

centosboy 12-15-2009 09:29 AM

Quote:

Originally Posted by rezwan (Post 3792321)
Hey I have read a few of related threads but never got an answer for my problem so I decided to create a new thread. Here's the situation and the problem.

I have a Linux box running openSUSE 11.2 with Apache2 web server (home computer). I can access the web server from any computer connected to my LAN using the Linux box's IP address. I cannot connect to the web server from any computer outside my LAN (WAN, ex. computer at my work).

I have triple checked that the port is being forwarded by the router, I even used a brand new router. There's no firewall running in the Linux box. I even tried to change the port numbers that Apache listens on to 8080, 8888. I know that my ISP is not blocking incoming HTTP requests because I can access my router's configuration remotely. I also have a FTP(21) and NX Server(22) running on the Linux box which I can access perfectly fine from the outside (WAN).

I have been searching the web for about a month to resolve this issue but I had no luck. Anybody with any information, please post.

Thank you in advance for your time.


because you have to determine if the fault is at the router or even at your machine or even with apache, there are a number of things that you can or need to do just to narrow it down a bit..
does your router log?? are you getting logs for access to http??
does your router have a firewall of any type?? are you getting anything in the apache logs...you need to show what kind of troubleshooting you have done...

can you telnet to your router address on port 80? etc etc...where are you so far??
what ip is your apache server listening on?? you can confirm there is a nat mapping set up for this address??

rezwan 12-17-2009 08:21 AM

I'm sorry, haven't been able to check into the problem lately. I contacted linksys about getting their logviewer so I can actually see the logs of the router. I will be checking into this more starting tomorrow (Friday) and the weekend. Thanks for pointing out some of the things to look for. I will reply with the results over the weekend.

rezwan 12-29-2009 09:03 AM

Ok here's the report from my logviewer of the router. From what I see here, it seems that the router is getting the request from the WAN computer and is able to resolve what internal IP to forward the request to.

524  Dec 29 9:48:10 2009 ROUTER.IP klogd: ACCEPT IN=vlan2 OUT=br0 SRC=WAN.IP.ADDR.CLIENT DST=HTTP.SERVER.IP LEN=48 TOS=0x00 PREC=0x00 TTL=114 ID=41328 DF PROTO=TCP SPT=59655 DPT=80 SEQ=3279914149 ACK=0 WINDOW=65535 RES=0x00 SYN URGP=0 OPT (020404EC01010402)
525  Dec 29 9:48:11 2009 ROUTER.IP klogd: DROP IN=vlan2 OUT= MAC=ff:ff:ff:ff:ff:ff:00:13:5f:04:9e:05:08:00 SRC=10.240.176.109 DST=255.255.255.255 LEN=328 TOS=0x00 PREC=0x00 TTL=255 ID=20106 PROTO=UDP SPT=67 DPT=68 LEN=308
526  Dec 29 9:48:13 2009 ROUTER.IP klogd: ACCEPT IN=vlan2 OUT=br0 SRC=WAN.IP.ADDR.CLIENT DST=HTTP.SERVER.IP LEN=48 TOS=0x14 PREC=0x00 TTL=122 ID=41486 DF PROTO=TCP SPT=33506 DPT=80 SEQ=2605411712 ACK=0 WINDOW=65535 RES=0x00 SYN URGP=0 OPT (020404EC01010402)
527  Dec 29 9:48:14 2009 ROUTER.IP klogd: IN=br0 OUT= MAC= SRC=fe80:0000:0000:0000:0223:69ff:fe56:c2bb DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=96 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=ICMPv6 TYPE=134 CODE=0

rezwan 12-29-2009 01:49 PM

Hey guys,
Thank you all for looking at this post, I've figured out the problem. My ISP is supposedly blocking port 80 and 8080 but I don't know how my router's configuration page is going through. I just tried to change the HTTP server's port to and non-conventional port and it worked like a charm. Thanks to all again!!

Dalbir Singh 09-01-2010 11:43 AM

Apache
 
Hi Rizwan, now i am facing a same problem in apache how it work do u have any solution ? please let me know.


All times are GMT -5. The time now is 06:48 AM.