LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 12-15-2009, 09:18 AM   #1
rezwan
LQ Newbie
 
Registered: Dec 2009
Location: New York
Posts: 5

Rep: Reputation: 0
Exclamation 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.
 
Old 12-15-2009, 09:27 AM   #2
SethsdadtheLinuxer
Member
 
Registered: Jun 2007
Posts: 152

Rep: Reputation: 37
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)
 
Old 12-15-2009, 09:29 AM   #3
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by rezwan View Post
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??
 
Old 12-17-2009, 08:21 AM   #4
rezwan
LQ Newbie
 
Registered: Dec 2009
Location: New York
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 12-29-2009, 09:03 AM   #5
rezwan
LQ Newbie
 
Registered: Dec 2009
Location: New York
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 12-29-2009, 01:49 PM   #6
rezwan
LQ Newbie
 
Registered: Dec 2009
Location: New York
Posts: 5

Original Poster
Rep: Reputation: 0
Thumbs up

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!!
 
Old 09-01-2010, 11:43 AM   #7
Dalbir Singh
LQ Newbie
 
Registered: Oct 2006
Posts: 13

Rep: Reputation: 0
Apache

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Apache: free access from lan users and password access to wan users... how? maginotjr Linux - Server 4 01-01-2011 11:08 AM
problem telnet to WAN IP address from LAN side rich1976 Linux - Newbie 3 02-22-2009 09:12 AM
Trying to run ftp server on Suse 10: Problem with WAN side access cornfusedlinuxuser Linux - Networking 1 03-07-2006 05:34 PM
Cant get WAN side ip...... hkl8324 Linux - Wireless Networking 1 06-08-2005 06:03 AM
IP-less sniffing on WAN side of internet router codeape Linux - Networking 18 02-17-2004 02:18 PM


All times are GMT -5. The time now is 07:11 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration