Properly setup host override
-
I have a single WAN connection with a static IP address
I have a number of LAN connections with servers behind them..
I have a number of domains with my dns record all pointed at the Public IP address (The one assigned to the WAN)
I want query for domain one.com to go to LAN 192.18.2.2
And query for domain two.com to fo to LAN 192.18.2.3 etc etc. . So spit DNS
I assumed that host overrides would achieve this but this only seems to work for queries made from within the LAN. Anything external (WAN) does not resolve... I cannot figure out what I am doing wrong.. Any help would be much appreciated.. Its doing my head in! -
What you need is a reverse proxy... like haproxy.
-
I was afraid you were going to say that.
Its going to kill squidguard which i dont really want to do. -
To put it in one sentence, Domain Overrides are used to configure specific DNS Servers for particular domains. For an example, let’s assume the following setup. [url=https://droidmoda.com][size=50]droidmoda.com[/size][/url]
pfSense: 192.168.1.1 – DNS Server for your local network
Windows Server 2016: 172.16.0.10 -
Why would it kill squidguard.. Use HA proxy for this..
So someone hits your public IP for one.com it gets sent to 2.2, when someone hits that same public IP for two.com it goes to 2.3..
-
Yeah, you can use Squid Reverse proxy for that too. I don't think even that would prevent Squidguard working though. Have you tested that already?
Steve
-
@stephenw10
i have not been brave enough to test it. I just assumed that having both squid and HA proxy was a bad idea. Will give it a try today and see how it goes.