Hi,
I'm an amateur when it comes to networking so this is probably an easy fix. I am having an issue where my VPN clients connected to the OpenVPN server running on my TrueNAS Scale box being unable to ping/access web interface of and do DNS lookups against my Pihole DNS running as a docker on my TrueNAS.
A basic outline of my setup is as follows:
Main router has IP 192.168.225.1, TrueNAS Scale box IP is 192.168.225.250. PiHole docker running on TrueNAS box is 192.168.225.251. My DHCP server in router is configured to issue 192.168.225.251 as DNS server.
OpenVPN IP address subnet is 192.168.227.0/24.
Currently when i set OpenVPN server additional parameters to use my router IP for DNS my OpenVPN clients can see all LAN devices and can connect to them all via IP/hostname except my Pihole DNS, internet traffic is also routed through the VPN tunnel no issue.
I have Pihole DNS set to permit all origins under settings>DNS. I also have nftable rule set on the TrueNAS Scale box below:
Do i need to do some additional routing changes to make the Pihole DNS (182.168.225.251) accessible to the VPN clients?
I should also mention i have tested by changing OpenVPN additional settings to use piHole IP for DNS but doing this results in LAN devices only being accessible vua IP and not hostname and internet access does not work. Using router IP for DNS fixes LAN hostname resolution and internet access but does not allow a connection to PiHole DNS whatsoever.
I'm an amateur when it comes to networking so this is probably an easy fix. I am having an issue where my VPN clients connected to the OpenVPN server running on my TrueNAS Scale box being unable to ping/access web interface of and do DNS lookups against my Pihole DNS running as a docker on my TrueNAS.
A basic outline of my setup is as follows:
Main router has IP 192.168.225.1, TrueNAS Scale box IP is 192.168.225.250. PiHole docker running on TrueNAS box is 192.168.225.251. My DHCP server in router is configured to issue 192.168.225.251 as DNS server.
OpenVPN IP address subnet is 192.168.227.0/24.
Currently when i set OpenVPN server additional parameters to use my router IP for DNS
Code:
push "dhcp-option DNS 192.168.225.1"
I have Pihole DNS set to permit all origins under settings>DNS. I also have nftable rule set on the TrueNAS Scale box below:
Code:
#!/usr/sbin/nft -f table ip nat { chain postrouting { type nat hook postrouting priority srcnat; policy accept; ip saddr 192.168.227.0/24 oif "enp2s0" snat to 192.168.225.250 } }
Do i need to do some additional routing changes to make the Pihole DNS (182.168.225.251) accessible to the VPN clients?
I should also mention i have tested by changing OpenVPN additional settings to use piHole IP for DNS but doing this results in LAN devices only being accessible vua IP and not hostname and internet access does not work. Using router IP for DNS fixes LAN hostname resolution and internet access but does not allow a connection to PiHole DNS whatsoever.