Issue: When I attempt to access www.example.com( 192.168.21.2 hosted by WebHost VLAN ID21) from WindowsPC1 (VLANID10 192.168.10.2) I receive error "Rejected request from RFC1918 IP to public server address".
But to say I don't really understand how to accomplish either would be an understatement.
I've only been using the GUI so the conf files they are referring to I have been looking to for equivalents to in the GUI. I suppose I would need to SSH into the router to access them.
I know I can access the host at least using its private address, I can access the website host if i use another device on a different network. Very similar case to the other posts.
But you gotta be patient with me as this is the most in depth setup i've ever tackled, very new to this besides knowing how to flash a different OS to a router.
To my understanding, I need to setup a redirect or a rule, not sure of what kind though, that when a device from within the network attempts to connect to the FQDN it redirects it to the private address. But Im just about ready to bang my head on the wall.
But hopefully that's enough of that heres some diagrams
Had never gotten it working, then waited. Thought I'd check for an update and see if some of the options I was recommended would appear within gui. No avail, I still hadn't learned much more about my issue. Then I started searching again, and stumbled upon the links above and ended up just adding the domain name entries and set the ip for them:
uci add dhcp domain
uci set dhcp.@domain[-1].name="my.domain"
uci set dhcp.@domain[-1].ip="host.ip.address"
uci add dhcp domain
uci commit dhcp
service dnsmasq restart
I had to do this for my subdomains as well but I don't have that many so I didn't mind this option. It works and I don't have to mess with host files across multiple devices.
Despite this working, I was still interested in figuring out how the NAT hair pinning / reflection zone worked as it seemed the issue arises when using vlans. Either way, I would say this thread is done. Thanks for the help.