Joined: 09 Nov 2014 Posts: 314 Location: Bakersfield, CA
Posted: Thu Dec 19, 2019 6:43 Post subject: Accessing a webserver from the local network via domain name
Hi all, for the longest time I had my main webserver setup where I could access the domains via their name in my local network (192.168.1.0), and it worked fine. When updating stuff, it seems I have deleted the previous iptables rule(s) that had that working and I can't seem to get it back up.
I can access the sites just fine when browsing from outside of my network (in my testing case, from a cell phone not on wifi) and get the intended pages/sites, so the port forwarding works if you're on a outside connection. If I view the domain name from a device on my internal network, I get the gateway router status page shown from 192.168.1.1, not the intended pages from my server at 192.168.2.10.
Some facts:
My internal network is 192.168.1.0
My server network is 192.168.2.0
My webserver ip is 192.168.2.10
Once again, I can connect from an external connection, but not via my local browsers.
Is this a NAT loopback issue? And if so, or if not lol, can I get some help with necessary iptables rules? I had it before, no idea what I changed. If you need more info, lemme know.