Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-26-2006, 09:44 PM
|
#1
|
|
Member
Registered: Nov 2004
Posts: 35
Rep:
|
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
|
|
|
|
07-26-2006, 10:16 PM
|
#2
|
|
Moderator
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,505
Rep: 
|
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).
|
|
|
|
07-27-2006, 05:19 AM
|
#3
|
|
Member
Registered: Nov 2004
Posts: 35
Original Poster
Rep:
|
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?!?!
|
|
|
|
07-27-2006, 12:24 PM
|
#4
|
|
Moderator
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,505
Rep: 
|
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)
|
|
|
|
07-27-2006, 12:39 PM
|
#5
|
|
Member
Registered: Jun 2006
Distribution: messed up debian
Posts: 250
Rep:
|
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.
|
|
|
|
07-28-2006, 03:31 AM
|
#6
|
|
Member
Registered: Nov 2004
Posts: 35
Original Poster
Rep:
|
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.
|
|
|
|
07-28-2006, 10:20 AM
|
#7
|
|
Member
Registered: Jun 2006
Distribution: messed up debian
Posts: 250
Rep:
|
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.
|
|
|
|
07-28-2006, 07:52 PM
|
#8
|
|
Member
Registered: Sep 2003
Location: Copenhagen, Denmark
Distribution: PC-BSD, PCLOS, MeeGo, Win 7
Posts: 189
Rep:
|
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 :-(
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:36 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|