LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-31-2005, 04:15 PM   #1
Recirqie
Member
 
Registered: Jun 2003
Distribution: RH 8.2, SuSE 9.0
Posts: 135

Rep: Reputation: 15
Accessing apache from outside through ADSL


I have a small network which includes a Belkin router and an Apache2 web server. The router access the internet through Thompson Speedtouch 510 ADSL (pppoe1) modem.

Browsing the internet and sending/fetching mail works fine. I can access the Apache internally by typing the server IP in the browser on any other PC in the internal network. I have enabled port forwarding (port 80) in both router and modem.

But I cannot access the Apache from outside. I get the IP for the ADSL by DHCP, but typing this IP gives nothing at all, it says "connecting to <IP address> and finally just times out. I have tried disabling the firewall in the router. On the router I also tried to put the Apache server in the DMZ.

Any help greatly apreciated.
 
Old 10-31-2005, 04:41 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337

Rep: Reputation: 65
Maybe apache is listening in a different port? Try searching your apache.config files. This varies badly from one distro to another and apache version. On my Ubuntu, for example, I have the following files:

/etc/apache2/apache.conf
/etc/apache2/httpd.conf
/etc/apache2/ports.conf


Once you find which file has the default port for listening, check if it matches with the port you gave forward on your router. The line should look like this:

Listen 80

Some distros defaults to port 8080, and I believe that's you case (wild guess).

Good luck!
 
Old 10-31-2005, 04:52 PM   #3
Recirqie
Member
 
Registered: Jun 2003
Distribution: RH 8.2, SuSE 9.0
Posts: 135

Original Poster
Rep: Reputation: 15
Thanks for your reply. My distro (suse 9.2) uses Listen 80, which I haven't changed.
 
Old 10-31-2005, 05:40 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
It is possible that your ISP blocks port 80. You could either ask them if they do or you could set up Apache to listen on an odd port number, reset your router and modem, and if that works, then your ISP blocks port 80.
 
Old 10-31-2005, 08:03 PM   #5
apepost
Member
 
Registered: Oct 2003
Distribution: Fedora core 4
Posts: 113

Rep: Reputation: 15
Re: Accessing apache from outside through ADSL

Quote:
Originally posted by Recirqie

But I cannot access the Apache from outside. I get the IP for the ADSL by DHCP, but typing this IP gives nothing at all, it says "connecting to <IP address> and finally just times out. I have tried disabling the firewall in the router. On the router I also tried to put the Apache server in the DMZ.
huh?

May you explain more carefully how you find your ip?

And perhaps you could tell us what isp you use, someone might know if they block port 80.
 
Old 11-01-2005, 09:41 AM   #6
Recirqie
Member
 
Registered: Jun 2003
Distribution: RH 8.2, SuSE 9.0
Posts: 135

Original Poster
Rep: Reputation: 15
Hangdog42: I'll try that, although they said that they do not block it. They may do even so ....

apepost: I find the IP through www.ipadresse.no, and it tallies with what the service page of my isp (Telenor online) gives.
 
Old 11-01-2005, 10:11 AM   #7
crispyleif
Member
 
Registered: Mar 2005
Location: Norway, by the coast
Distribution: Debian and the likes
Posts: 190

Rep: Reputation: 31
Hi

Cruised by and wanted to share a little link :

http://www.canyouseeme.org/

Nice way to check if they block you Og forresten : Telenor e vel ikkje akkurat kjent for fleksibilitet
 
Old 11-01-2005, 12:00 PM   #8
apepost
Member
 
Registered: Oct 2003
Distribution: Fedora core 4
Posts: 113

Rep: Reputation: 15
OK. Telenor doesn't block port 80. At least not for me.
Perhaps you have configured apache not to allow connections from the Internet?

The Thompson Speedtouch 510 is capable of working as a router, why do you have two? Are you sure the Thompson isn't in router mode? In which case you would need to forward the port there too. (Or just remove your second router)
 
Old 11-01-2005, 04:50 PM   #9
Recirqie
Member
 
Registered: Jun 2003
Distribution: RH 8.2, SuSE 9.0
Posts: 135

Original Poster
Rep: Reputation: 15
Telenor doesn't block me, so far so good. The Speedtouch is set up for forwarding port 80 (switching it off makes canyouseeme think the ISP has blocked me). The Belkin is a wireless router, only the apache HW and proxy server are connected by patch cables.

The apache is pretty much default setup, so I would be surprised if it would deny access from internet? But if so, what would the variable name be?
 
Old 11-01-2005, 06:54 PM   #10
Recirqie
Member
 
Registered: Jun 2003
Distribution: RH 8.2, SuSE 9.0
Posts: 135

Original Poster
Rep: Reputation: 15
I have now tried to connect the server directly to the Speedtouch. It is still not seen, and canyouseeme reported the port as blocked. To add to the confusion, the speedtouch wouldn't accept the temporary address of the server in NAPT. Is there anywhere else in the server that external requests may be blocked? The firewall on the server is disabled.
 
Old 11-02-2005, 10:30 AM   #11
apepost
Member
 
Registered: Oct 2003
Distribution: Fedora core 4
Posts: 113

Rep: Reputation: 15
You really shouldn't do dual nat. The speedtouch should be connected directly into the local network together with your computers instead of into the wan port of the wireless router.

I will thereafter recommend you to upgrade the speedtouch to the newest firmware , as it offers vast performance, configuration simplicity, and functionality improvements.

If it still doesn't work you would have to post your apache configuration file, and perhaps the relevant parts of your speedtouch configuration. I have an almost identical setup, and it works for me, so I am sure its possible.
 
Old 11-02-2005, 01:49 PM   #12
Recirqie
Member
 
Registered: Jun 2003
Distribution: RH 8.2, SuSE 9.0
Posts: 135

Original Poster
Rep: Reputation: 15
I intended to place the Apache in DMZ outside the Belkin but obviosly inside the Speedtouch. Do you still recommend changing the network as described in you post?

Now canyouseeme finds the IP of the web server, but still sees the port as blocked, is it reasonable to assume that the server is the culprit?
 
Old 11-02-2005, 05:40 PM   #13
Recirqie
Member
 
Registered: Jun 2003
Distribution: RH 8.2, SuSE 9.0
Posts: 135

Original Poster
Rep: Reputation: 15
Now I'm really confused. When I run canyouseeme with the proxy set in the browser it sees the internal IP of the PC (or server as trhe case may be), but with the browser accessing the Belkin router directly canyouseeme sees the external IP. The proxy is a squid on a separate machine.

Port 80 on the squid is not in use I suppose, so that is really what canyouseeme reports on. That leaves me to believe that when port 80 is reported as OK for the external IP then the speedtouch will accept port 80? But does it apply to the Belkin as well?

Putting a client in DMZ didn't change anything.
 
  


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
Accessing Apache server from internet wisdom Linux - Networking 3 12-22-2004 12:05 PM
accessing my apache from the www toddncl Linux - Networking 2 06-10-2004 10:22 AM
Problems with Mandrake 9.2 Accessing the Internet through a Linksys ADSL Router DarkUser247 Linux - Networking 5 02-02-2004 05:30 PM
accessing subdomains through network (apache) niehls Linux - Networking 3 03-16-2003 05:29 PM
accessing mysql from apache/php vher Linux - General 4 01-21-2003 09:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:59 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration