1
23.1 Legacy Series / Re: Routing opnsense's DNS queries through second WAN with Firewall?
« on: June 28, 2023, 02:11:57 pm »
The solution for this was to simply put a routing rule in like
ie route 10.0.254.0/30 which includes 10.0.254.1 - 10.0.254.3 to the gateway.
I'm using NAT rules to redirect DNS queries to 8.8.8.8 to my router's IP. Unbound forwards upstream to the VPN provider's DNS servers.
The DNS servers are static, I don't really have to worry about "other" DNS servers Unbound only has BIND and the VPN provider's servers.
ie route 10.0.254.0/30 which includes 10.0.254.1 - 10.0.254.3 to the gateway.
I'm using NAT rules to redirect DNS queries to 8.8.8.8 to my router's IP. Unbound forwards upstream to the VPN provider's DNS servers.
The DNS servers are static, I don't really have to worry about "other" DNS servers Unbound only has BIND and the VPN provider's servers.