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.
1 modem/router connected to a switch.
1 webserver and 3 other computers. All behind the router.
i have a little problem. The webserver works like a charm. The router forwards port 80 data to my webserver. So if someone visits my webpage by typing the ip of my router, they actually get to see it
but if i try to visit the webpage from my internal network, it doesn't work. instead, i het the login screen of my router. the only way to access my wepage from my internal network, is by typing the internal ip address of my webserver.
Does ne1 know how to fix this? perhaps with iptables or a apache2 setting?
I don't see why you can't just access via internal ip address, or hostname of your webserver - you get the same content Alternatively, run through the-cloak.com or similar.
the reason i want it to work is because i have a couple of subdomains which don't work anymore if i access my webpage from the internal network. webmail for example.
my WAN ip is 82.173.something.something, my internal ip of my router is 10.0.0.123 and the ip of my server is 10.0.0.10.
It's kina annoying not being able to use my domainname from the internal network.
You could manually add the domain name and local server IP into the "hosts" files on the machines inside the internal LAN. That way, when they enter the domain name, it will actually point them to the local IP of the server, without them knowing.
Either that, or you would have to run a DNS server inside the LAN. But running DNS for a single address seems a bit overkill.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.