LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Issue accessing apache2 externally (https://www.linuxquestions.org/questions/linux-newbie-8/issue-accessing-apache2-externally-789716/)

tebucky 02-17-2010 09:03 AM

Issue accessing apache2 externally
 
All,

I'm running Ubuntu 9.10 on my local LAN (192.168.1...). Apache2 is set up and I'm able to resolve my domain/web directories behind the router but externally I'm not able to connect. The router is routing port 80 traffic to the correct host and apache is listening on that port.

Through my registrar the A record is pointing to the appropriate IP. Any thoughts on what I can do to get the web server to ack external requests?

Lowell1947 02-17-2010 09:12 AM

Are you on a static or dynamic IP. If you are on a dynamic IP you will need to get an account with dyndns.org or some other group to point towards your IP.

nerak99 02-17-2010 09:12 AM

Clarifications sought
 
Can people access apache on the lan or just localhost?

Do you get anything in the https/apache2 logs at all?

If you do "telnet myserver.net 80" from the WAN, do you connect or get a reject or what?

prasanta 02-17-2010 09:17 AM

Must be some firewall/NAT issue since you are able to connect/telnet it from the local LAN.

--
Prasanta

tebucky 02-17-2010 09:40 AM

Everything behind the router is working as designed. I just can't access it externally at all. The apache logs are generating messages when I hit a page behind the router and giving the LAN IP in the message

prasanta 02-17-2010 09:49 AM

Does your domain resolve from outside? And what are your NAT rules for the same.

--
Prasanta

tebucky 02-17-2010 09:55 AM

My domain does not resolve from the outside. My NAT rule forwards port 80 traffic to LAN IP 192.168.1.102. Do you need more info?

prasanta 02-17-2010 10:00 AM

So, in that case you need to create a DNS entry for the same. Why don't you then try with the public IP instead.

--
Prasanta

tebucky 02-17-2010 10:14 AM

The public IP does not resolve either....

prasanta 02-17-2010 10:28 AM

Try telnet with the public_ip and port 80. In case this does not go through, then there is a problem with the firewall rules.

--
Prasanta

tebucky 02-17-2010 10:37 AM

No dice on the telent.... Also, I disabled my firewall and it still doesn't work from the outside. Is it a possible settings issue with my domain registrar?

prasanta 02-17-2010 10:55 AM

In that case I assume, there are issues with your firewall, since it is not accepting incoming request. There is no issue with the registar.

--
Prasanta

tebucky 02-17-2010 11:17 AM

So I'm not running a firewall. I use firestarter on the ubuntu host and its currently off... Anyy ideas on what I should/could check?

tebucky 02-18-2010 11:36 AM

Any ideas on how to fix the external issue?

ash_zz_00 02-18-2010 06:31 PM

Double check if your router IP is indeed public and not behind some other router. Go to a website like http://whatismyip.com/ to see what IP it reports.


All times are GMT -5. The time now is 02:07 PM.