Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Unbound dns through wireguard VPN
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: Unbound dns through wireguard VPN (Read 532 times)
hushcoden
Hero Member
Posts: 550
Karma: 23
Re: Unbound dns through wireguard VPN
«
Reply #15 on:
October 29, 2024, 11:13:41 am »
Quote from: FredFresh on October 29, 2024, 11:08:33 am
That settings only specify the external dns ip...isn't it?
I believe so
Logged
FredFresh
Jr. Member
Posts: 68
Karma: 1
Re: Unbound dns through wireguard VPN
«
Reply #16 on:
October 29, 2024, 11:18:10 am »
Today I will try again to set an outgoing rule from wan to redirect the dns queries towards the vpn gateway.
It seems that the query is properly redirected but i do not understand what is missing...should I create a NAT rule as done for the internal lan towards the VPN gateway?
Logged
FredFresh
Jr. Member
Posts: 68
Karma: 1
Re: Unbound dns through wireguard VPN
«
Reply #17 on:
November 24, 2024, 09:55:42 am »
@dseven thank you!
I had to change something but finally I was able to route everything (in this case only the unbound dns was missing) through the VPN gateways.
To do so I had to set the VPN gateway as default gateway but the involved flag are two:
- system-configuration-VPN gateway- flag on "Upstream Gateway" (and set a priority number lower than WAN gateway)
- system-settings-general- flag on "Gateway switching"
This way the VPN gateways become eligible as default gateway and everything is routed through that.
From previous ocnfiguration:
- kept the NAT rules for the VPN Gateways;
- removed the gateway group used to manage the multi-wan (now directly managed in the main gateway page);
- updated the internal subnets firewall PASS rules to the default gateway.
Please, if you think of any error /suggestion, let me know.
Logged
Print
Pages:
1
[
2
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Unbound dns through wireguard VPN