Linux - NetworkingThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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 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.
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.
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.
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 :-(
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.