LinuxQuestions.org
Review your favorite Linux distribution.
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 07-26-2006, 09:44 PM   #1
Tux_Phoenix
Member
 
Registered: Nov 2004
Posts: 35

Rep: Reputation: 15
Setting up web server on my network


Ok I have been trying to get my Ubuntu web server online for a while now. I have the server and apache and all set up and can view everything perfectly on my LAN. The problem comes in when I try to set my modem and router to forward port 80 to my server. I have a zoom adsl 5551a router and a DLink 707d router. I have set everything on both device as far as I can tell to manufactures specs but when I try my static IP it just times out. Does anyone have any ideas or heard anything about any of these devices that might give me troubles.

Also on my modem should I set it to forward traffic to 192.168.0.1(LAN side router add.) 10.0.0.5 (static set ip for router) or 192.168.0.30 web server.

As you might be able to tell I have little understanding of this subject any help would be great. thanks
 
Old 07-26-2006, 10:16 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Set the modem to forward to the 'external' IP of the router, and the router to forward to the webserver.

Also, you won't be able to test your port forwarding from within the LAN (for all kinds of IP problems).
 
Old 07-27-2006, 05:19 AM   #3
Tux_Phoenix
Member
 
Registered: Nov 2004
Posts: 35

Original Poster
Rep: Reputation: 15
By external IP you mean the static IP I gave it correct? And your also telling me I might have had it working all along?!?!
 
Old 07-27-2006, 12:24 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Yes, and yes. Testing port forwarding from the 'LAN' side of the forward is, at best, problematic. At worst, it just doesn't work. (There's a long explanation at the IP level on why this is, but I'll save it unless you really want to know)
 
Old 07-27-2006, 12:39 PM   #5
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Rep: Reputation: 30
I would do this:
- add a route to your internal network in your adsl router (you tell the adsl router where is your apache server, and that it needs to go through your 2nd router to get there).
- port forwarding port 80 to the apache server.

That way the adsl router will just send the requests to your apache server through your 2nd router. Also be aware that requests from your lan will open your webadmin for sure so you need to try it from the internet or change the webadmin port. Also turn off remote administration for the adsl router if it works on port 80.
 
Old 07-28-2006, 03:31 AM   #6
Tux_Phoenix
Member
 
Registered: Nov 2004
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Matir
Yes, and yes. Testing port forwarding from the 'LAN' side of the forward is, at best, problematic. At worst, it just doesn't work. (There's a long explanation at the IP level on why this is, but I'll save it unless you really want to know)
I would like to have more information on this or at least a link to a good source of info. I am still having trouble with it but now its with making changes then testing frmo else where. This has helped me a lot cause I at least know what I can't do.

I have changed the web admin port and remote admin is off. I have it set to forward port 80 to 10.0.0.5 but its a no go I will try my apache server ip next.
 
Old 07-28-2006, 10:20 AM   #7
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Rep: Reputation: 30
I don't have all the details of your net but I assume this

DSL router connected to 2nd router (first subnet)
2nd router connected to the rest of the network. (2nd subnet)

If you are going to forward port 80 to the 2nd subnet, you have to add that route to your DSl router.
Then forward the port to the apache server on the 2nd subnet.

Another thing you could do is just forward the port 80 to your 2nd router interface ( the interface that connects to the dsl router) and port forward your second router port 80 to the apache server. If you follow this procedure you do not need to add the route to your 2nd subnet in the DSL router.

Hope this helps.
 
Old 07-28-2006, 07:52 PM   #8
Thulemanden
Member
 
Registered: Sep 2003
Location: Copenhagen, Denmark
Distribution: PC-BSD, PCLOS, MeeGo, Win 7
Posts: 189

Rep: Reputation: 30
Quote:
Originally Posted by Matir
Set the modem to forward to the 'external' IP of the router, and the router to forward to the webserver.

Also, you won't be able to test your port forwarding from within the LAN (for all kinds of IP problems).

Actually you can test if it works by accessing a remote environment like your employers network and there use the browser to access your IP. Worked for me. Later circumstances made my web sever inaccessible :-(
 
  


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
Setting up Ubuntu LAMP Server for local web server sewmyheadon Linux - Newbie 5 02-11-2007 02:06 PM
Setting up own web server kirtimaan_bkn Linux - Networking 14 11-20-2005 09:33 PM
Setting up a web server Spyiish Mandriva 15 11-09-2004 08:06 PM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 12:03 PM
Help setting up web server KnightEagle Red Hat 4 10-05-2003 12:20 AM

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

All times are GMT -5. The time now is 04:11 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