OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: FredFresh on November 23, 2024, 06:13:18 PM

Title: default gateway
Post by: FredFresh on November 23, 2024, 06:13:18 PM
Hello, I am trying to forward the DNS requests passing through the WAN to the VPN gateway.
I was not able to create a working system using the outbound NAT + firewall rules. Instead I was able to set the VPN gateway as the default one (and have the dns queries go through it).

Does this method have any bad effect? To be considered that I want all the clients to go through that VPN.

Thanks
Title: Re: default gateway
Post by: FredFresh on November 24, 2024, 08:33:33 AM
Hello, I try to clarify my question: setting the VPN wireguard connection as a default gateway, only the traffic toward the external will go through that OR I have to create specific firewall rules to route the traffic between internal subnets or to the internal unbound dns server?

Thanks
Title: Re: default gateway
Post by: viragomann on November 24, 2024, 02:42:55 PM
No, it's the same as if you use the WAN as default gateway. Special rules are only needed if you do policy routing. In this case you would have to use aliases to get the rule applied to outside destinations only.