LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 09-14-2006, 05:34 PM   #1
evildreamer
LQ Newbie
 
Registered: Jul 2006
Posts: 18

Rep: Reputation: 0
Port forwarding from netgear to apache server


I've installed apache which is successfull i think. If i put in to the browser http://192.168.0.2:8000 it brings up what i expect, a folder with subfolders.

If i put in http://evilbot.homelinux.com it brings up my netgear router's login page which is what i expect.

I've tried to set up the router to forward all services to port 8000 to 192.168.0.2 to presumably bring up the serving folder as above but all it says is

Unable to connect

Firefox can't establish a connection to the server at evilbot.homelinux.com:8000.



* The site could be temporarily unavailable or too busy. Try again in a few
moments.

* If you are unable to load any pages, check your computer's network
connection.

* If your computer or network is protected by a firewall or proxy, make sure
that Firefox is permitted to access the Web.

The dns server is working because it sends requests to my routers page yes? I've set the apache to listen on port 8000 because i understand low ports need root access.

Any ideas? My router is a net gear dg834gt.

Please go slow.. i'm a newbie!
 
Old 09-15-2006, 09:55 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
port forwarding forwards external requests inside your network. it does not proxy internal requests. if it did then that would mean if you hosted a normal web server you wouldn't be able to configure your router any more righ? if you connect to the normal URL you have there from the outside you get...
Quote:
Index of /

Icon Name Last modified Size Description[DIR] apache2-default/ 26-Jul-2006 18:50 -

Apache/2.0.55 (Ubuntu) Server at evilbot.homelinux.com Port 80
which seems just fine.

Last edited by acid_kewpie; 09-15-2006 at 09:59 AM.
 
Old 09-15-2006, 11:23 AM   #3
evildreamer
LQ Newbie
 
Registered: Jul 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks chris, you're quite right.... i asked someone else to test it to see if they would connect to my router like i was doing and they saw just what you have seen!! It seems when i try to access it internally it shows me the router's page but when accessed from outside my network apache shows what it's meant to!
 
Old 09-15-2006, 12:41 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yes that's right, you're clear why it does that i hope? does get annoying when you want to test your own site, but if you just use tha lan address it's fine. alternatively try using a remote proxy to reflect the request back at yourself from the remote location.
 
Old 09-15-2006, 12:56 PM   #5
evildreamer
LQ Newbie
 
Registered: Jul 2006
Posts: 18

Original Poster
Rep: Reputation: 0
I think so... not entirely sure exactly how ports etc work but am slowly getting to grips with it. Have i got this right.... http web requests come in and automatically request on port 80? The router then knows to direct all traffic for port 80 to my server yes? And apache by default serves the web up on port 80? If i have all that right then i'm part way there at least.

Presumably the router knows only to forward external requests and internal requests just gives it's own configaration page up yes?
 
Old 09-15-2006, 01:25 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yep, 10 points for paying attention!
 
  


Reply



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
Apache port forwarding kg4ysy Linux - Software 2 06-14-2006 01:57 PM
Netgear WTG624v2 port forwarding and StaticIP, Ubuntu 5.10 restin256 Linux - Networking 9 11-06-2005 07:13 PM
Help with apache server dir and port forwarding leemoreau Linux - Software 13 03-25-2005 09:56 AM
port forwarding problem using netgear dg814 and apache tommo_a Linux - Networking 0 10-16-2003 08:46 AM
Netgear MR814 - Port Forwarding with linux?? rEph Linux - Networking 6 02-10-2003 10:24 PM

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

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

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