I have a setup as follows, and would like to know what people recommend.
the vyos router is the edge router, managing 2 lan subnets and 4 static public ips.
There is a content filter proxy on the 10.5.5.0/24 subnet, we’ll say 10.5.5.2
10.5.5.2 has a one to one nat to public ip 184.108.40.206
I have users on the second subnet, 192.168.39.0/24 who want to use this proxy regardless if they are on the lan or not.
The 192.168.39.0/24 lan is using the default masquerade rule which nats to 220.127.116.11
Connections to the proxy work fine if not on the lan but as soon as they are on the lan it breaks. The firewall is zone based and local to local traffic going to that device works. It’s only if they use the dns name that this breaks.
So what should i do to fix this?
One thing that occurs to me is add the proxy to the hosts file on the vyos router with it’s local address. Is this the best solution? or is there something i’m missing?