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.
I configured my ZyXEL Prestige 660H-61 to act as a router. Then I made so that it would get a dynamic IP-address from my ISP and then act as a DHCP-server for my own network of 3 computers. Then I noticed that ZyXEL supports domains gotten from DynDNS.org. This would direct users to my webpage even if my IP-address changes.
So I registered one from there and configured it in my ZyXEL.
My problem now is that instead of directing browsers to my apache server, the domain directs users to configure my router/modem
So, how could I configure the domain and router to route the user to my apache server?
you forward port 80 to your webserver and switch off access to your router configuration from outside your network. the latter is something you should have done first thing when you connected it.
Okay, I turned off the remote access to my modem... Forgot to do that.
But on to the matter. I do believe the thing I need is the firewall settings on the router, right? Confing special rules so that connections from WAN on LAN are forwarded instead of blocked when trying to access my LAN IP.
Is my reasoning correct?
How to correctly get browser to go into my homepage?
I registered the domain and the domain IP assigned in DynDNS.org is my router's IP. Now, when users try to access my domain, they go into my router using port 80. Then router default setting blocks it. So I need to set a special rule that all connections from WAN to LAN are to my server on LAN?
What kind of rule should it be? Allow all connections from WAN to LAN and forward them to my server or what? I'm confused as the ZyXEL rules follow pattern like the following:
Code:
Source IP | Destination IP | Service | Action | Schedule | Log | Alert
What about my Slack-server? All I need to enable in hosts.allow is that connections from my routers LAN IP are allowed to access httpd?
I got it to work. Appaerantly I can't access my apache server using the domain name from my network. That works from outside, my friend just tested. If I want to access my apache within the network I need to use the servers ip-address.
That's because your nameserver responds with the external ip of your router. Then your LAN client comes from the internal router interface asking to be connected to the external interface and is then forwarded back to some server in the LAN. This gets all very messy and the router firewall probably blocks requests like this cause they seem fishy.
To get the server from the lan using its dyndns name either use an entry in /etc/hosts or set uo an internal dns server.
Trying to get mysql working on my server at the moment. Then the fun part of converting the pages to use PHP and databases as I haven't done that sort of thing yet. Little experience on ASP. Luckily PHP is C-based
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.