Unbound Unbound_DNS_via_OVPN.sh with Wireguard

Kingp1n

Very Senior Member
Dumb question but would the following script below work with the upcoming 388 fw to use with Wireguard?

Code:
Post in thread 'unbound_manager (Manager/Installer utility for unbound - Recursive DNS Server) - General questions / discussion thread 2' https://www.snbforums.com/threads/unbound_manager-manager-installer-utility-for-unbound-recursive-dns-server-general-questions-discussion-thread-2.67968/post-718328
 

ZebMcKayhan

Very Senior Member
Dumb question but would the following script below work with the upcoming 388 fw to use with Wireguard?

Code:
Post in thread 'unbound_manager (Manager/Installer utility for unbound - Recursive DNS Server) - General questions / discussion thread 2' https://www.snbforums.com/threads/unbound_manager-manager-installer-utility-for-unbound-recursive-dns-server-general-questions-discussion-thread-2.67968/post-718328
Don't know if @RMerlin included the same hooks for Wireguard as for OVPN (like /jffs/scripts/vpnclient5-route-up) but in theory it should work the same.

Altough you could just bind Unbound to br0 address (192.168.1.1), and create the following VpnDirector rules
From 192.168.1.1 to Any route vpn
From Any to 192.168.1.0/16 route wan

As router would normally only use this address to communicate with br0 lan and since wan rules have higher priority in VpnDirector only Unbound will be affected. The same trick could be used by any application that could bind to a specific interface/address, i.e Transmission.

https://github.com/ZebMcKayhan/WireguardManager#setup-transmission-andor-unbound-to-use-wg-client

PS. You might need to adjust Wireguard dns back to router if you wish vpn clients to use Unbound, else they will be redirected to Wireguard dns.
 
Last edited:

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top