RighteousPy
Occasional Visitor
This is a continuation of the thread here: https://www.snbforums.com/threads/i...uration-strict-and-diversion-yazfi-vpn.58031/ due to the new policy regarding six month old threads.
This is a thread to discuss Asus Routers running Merlin, using the inbuilt VPN and potentially making use of an external PiHole/Adguard Home setup - the last thread and this thread is my ramblings with trying to combat DNS Leaks caused by trying to have some Clients go via the VPN and some via my default ISP.
@Xentrk and others have kindly been helping to assist with Strict, Exclusive, DNS Filtering and so forth.
Below is my response to the last message in the above thread (https://www.snbforums.com/threads/i...ict-and-diversion-yazfi-vpn.58031/post-627407):
Once again @Xentrk I apologize for the delay in my response, exams started and didn't want to take everything done. However I have some good news/need some confirmation things are correct !
Using a combination of your [fantastic] advise, DNSFilter and PiHole I think we're on track. I've done a diagram below in the hopes it explains things haha.
To explain things further, the following IP schema has been given:
In DNSFilter I have Global Filter Mode = Router. I also then have the following set to No Filtering:
Now this is where I get confused, the Upstream DNS be on the PiHoles. They are current set as:
My question is, do I have any loops in my network? With my 'No Filtering' above - does that mean everything is working? Should the Global Filter Mode be set to 192.168.1.5 instead of the Router? I read somewhere you wanted to have it as router and then have the PiHole point back to the Router but not sure if my step uses this?
Thanks again for all your help!
This is a thread to discuss Asus Routers running Merlin, using the inbuilt VPN and potentially making use of an external PiHole/Adguard Home setup - the last thread and this thread is my ramblings with trying to combat DNS Leaks caused by trying to have some Clients go via the VPN and some via my default ISP.
@Xentrk and others have kindly been helping to assist with Strict, Exclusive, DNS Filtering and so forth.
Below is my response to the last message in the above thread (https://www.snbforums.com/threads/i...ict-and-diversion-yazfi-vpn.58031/post-627407):
I was pleased with the result of using DNSFilter and how it plays well with LAN clients assigned to route via the VPN Client or to bypass the VPN Client. I may set up some of my devices to use the setup. It may be my new recommendation.
The dnsmasq method of x3mRouting won't work when using Pi-Hole. The dnsmasq on the router is bypassed and the IPv4 addresses won't load. Caveat - try using WAN DNS for a few days to create the entries. Once the list is populated, you should be able to switch back to Pi-Hole and have it work. In theory, the other methods should work okay as dnsmasq is not required. Lists are loaded from other sources and iptables rules does the routing.
Once again @Xentrk I apologize for the delay in my response, exams started and didn't want to take everything done. However I have some good news/need some confirmation things are correct !
Using a combination of your [fantastic] advise, DNSFilter and PiHole I think we're on track. I've done a diagram below in the hopes it explains things haha.
To explain things further, the following IP schema has been given:
- Router = 192.168.1.1
- RPi #1 = 192.168.1.2
- RPi #2 = 192.168.1.3
- PiHole (Unbound) = 192.168.1.4
- PiHole (VPN) = 192.168.1.5
- Unbound = 192.168.1.6
In DNSFilter I have Global Filter Mode = Router. I also then have the following set to No Filtering:
- PiHole (Unbound)
- PiHole (VPN)
- Unbound
- RPi #1
- RPi #2
Now this is where I get confused, the Upstream DNS be on the PiHoles. They are current set as:
- PiHole (Unbound) = 192.168.1.6 (the Unbound IP)
- PiHole (VPN) = VPN's IP
- All via VPN
- RPi #2 via WAN
- PiHole (Unbound) via WAN
- Unbound via WAN
My question is, do I have any loops in my network? With my 'No Filtering' above - does that mean everything is working? Should the Global Filter Mode be set to 192.168.1.5 instead of the Router? I read somewhere you wanted to have it as router and then have the PiHole point back to the Router but not sure if my step uses this?
Thanks again for all your help!