That's very kind of you but please don't go to too much trouble on my behalf. As I've already said I'm pretty much out of my depth with this and have been moving around changing all sorts I don't understand.i'm going to dig one of my Pi's out (I have several....) and chuck PiHole on it and get a working setup, then I can share my settings
Previously you indicated you set VPN Client 2 option "Accept DNS Configuration" to "Strict". Per the tool tip for the Accept DNS Configuration, Strict indicates that any DNS servers provided provided by the remote VPN Server will be added to the list of DNS servers used. As previously indicated, one would think that using "Disabled" would be the way to go. Disabled should, one would think, ignore the DNS servers pushed by the remote VPN server. One would think that only the local Pi-Hole would be used, assuming one instructs the VPN client to use it, when the remote VPN server provided DNS servers are not used.It seems to keep swapping between using the VPN DNS and the PiHole.
Just to clarify. Do you have a single network adapter that you would use to switch from the main LAN to the guest WiFi? Or would you be using two network adapters with the hope of having both connected at the same time, one to the main LAN and the second one to the guest WiFi?My hope was to be able have my laptop so it uses the WAN connection most of the time but have the option to use VPN when I wanted by connecting to the Guest network.
Just one adapter in laptop, just want WAN or VPN selectable from Windows.Just to clarify. Do you have a single network adapter that you would use to switch from the main LAN to the guest WiFi? Or would you be using two network adapters with the hope of having both connected at the same time, one to the main LAN and the second one to the guest WiFi?
i'm going to dig one of my Pi's out (I have several....) and chuck PiHole on it and get a working setup, then I can share my settings
Hi both. Just a quick word to say please don't spend any more time on this. I'm using VPN Unlimited and there are posts in Merlin's VPN Director thread yesterday about problems with DNS with this provider due to them using a hostname rather than an IP for the server settings. I'll just leave it for now and maybe change provider in the future. Thanks again for your help. AndyJust to clarify. Do you have a single network adapter that you would use to switch from the main LAN to the guest WiFi? Or would you be using two network adapters with the hope of having both connected at the same time, one to the main LAN and the second one to the guest WiFi?
To answer two of your questions. For assigning static IP addresses see the YazFi GitHub Wiki entry on YazFi with Pi-Hole. There is a section (A Note on DHCP Reservations) there on how to setup static IP addresses for YazFi clients. Generally one cannot use the Asus-Merlin DHCP section to set static IP addresses for YazFi guest clients due to YazFi using different IP address ranges for YazFi guest clients. Or see my post on setting fixed IP addresses when using YazFi here:
- Can I use DHCP manual IP address assignment for devices on a YazFI guest network? If yes, is this done using the ASUS DHCP manual assignment WebUI?
- Does the YazFI WebUI provide the same configurability as the CLI?
The YazFi CLI Config (via Nano) states the following on Subnets which may or may not answer your question.Just wondering if there is any way to set the subnet mask on the guest Wifi?
Or see my screen capture directly above this post in a reply to someone else that indicates the same.N.B. Currently hardcoded to a 255.255.255.0 subnet, so DHCP pool can start at a minimum of X.Y.Z.2 and a maximum of X.Y.Z.254
No. Pi-Hole is not required if one wants to set a static IP for YazFi guests. Pi-Hole usage was just the vehicle that got some of us discussing how to set a static IP in Asus-Merlin for YazFi clients.Both approaches appear to use dnsmasq on the router to set the DHCP reservation, and I don't see a requirement for Pi-hole. Is Pi-hole required for assigning a DHCP reservation?
No. Pi-Hole is not required if one wants to set a static IP for YazFi guests. Pi-Hole usage was just the vehicle that got some of us discussing how to set a static IP in Asus-Merlin for YazFi clients.
Thanks bennor, yes it does answer my question, but doesn't solve my problemThe YazFi CLI Config (via Nano) states the following on Subnets which may or may not answer your question.
you'll need to use a userscript (https://github.com/jackyaz/YazFi#custom-firewall-rules) for this. enable redirect to VPN for the guests in YazFi, then follow the belowOk, so I have the Guest Wifi 2 up and running but seem to be stuck on this one: I am trying to direct all traffic on Guest Wifi 2 via VPN 2, with the exception of 2 IP's - .2 and .3 (which are assigned by DHCP as per this post - https://www.snbforums.com/threads/y...inc-ssid-vpn-client.45924/page-32#post-473403).
I've been playing around with a number of settings but can't seem to get it to work.
YazFi settings
View attachment 34628
VPN 2 details (NordVPN)
DNS Config - Exclusive
Policy rules (automatically added)
2.4GHz Guest 2 192.168.3.0/24 VPN
5GHz1 Guest 2 192.168.6.0/24 VPN (P.S. i think there is a typo with the '1' being added?)
With this setup, all clients are routed via VPN2 and all clients can access the internet.
If I change redirect all to VPN to 'no' then add the following policy rules to VPN2, no client can access the internet
Guest 1 192.168.3.2 WAN
Guest 2 192.168.6.3 WAN
2.4GHz Guest 2 192.168.3.0/24 VPN
5GHz1 Guest 2 192.168.6.0/24 VPN
I've tried combinations of Force DNS = 'no', redirect all to VPN ='no' and DNS config = 'disabled/relaxed/strict/exclusive' but I all I can seem to do is end up with all clients on Guest Wifi 2 going via my WAN/real IP, or all via the VPN...
I'm sure that it's some simple setting/configuration that I've overlooked... any help would be greatly appreciated!
/jffs/addons/YazFi.d/userscripts.d/myscript.sh
chmod +x /jffs/addons/YazFi.d/userscripts.d/myscript.sh
#!/bin/sh
iptables -I YazFiFORWARD -i eth0 -o wl0.2 -d 192.168.3.2 -j ACCEPT
iptables -I YazFiFORWARD -i wl0.2 -o eth0 -s 192.168.3.2 -j ACCEPT
iptables -I YazFiFORWARD -i eth0 -o wl1.2 -d 192.168.6.3 -j ACCEPT
iptables -I YazFiFORWARD -i wl1.2 -o eth0 -s 192.168.6.3 -j ACCEPT
YesI just installed this a few moments ago, and a few initial thoughts come to mind:
- Apparently this works in conjunction with the ASUS guest network settings, i.e., the guest network needs to be first configured and *enabled* in the ASUS guest network WebUI?
same rules as Merlin DNS Filter apply.- How does DNS work when DoT is enabled. If I "Force DNS" and set the DNS Servers to the router IP, then is DoT implemented for the guest devices?
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!