When connecting to a VPN with pihole installed I should be able to access my NAS, local server and other web interfaces.
Actual Behaviour:
I'm getting no connection to the device on the network I'm vpn'd into. Even when I disable ad blocking it doesn't work. The only way to get it to work it change the DNS of the router to a normal google dns or similar..
A client get's it's IP assigned from the VPN server.
The VPN server runs as a dedicated DHCP server for any client that connects to it.
A default setting (with openVPN) is to asing an IP from the 10.8. range.
The VPN server via iptables, performs (or should) a masquerade (internally) where it masks all the packets that go outside the realm of the VPN server, into packets that are masked with the LAN facing Ip of the server.
In order for the communication to go back and forth.
If the masking is not performed, let's say your client that has the IP assigned by the VPN server, upon connection of 10.8.0.2 sends out a query into the network originating from that IP (that's nowhere else defined in your LAN, except in the VPN server), never receives a response packet because the LAN is defined on a diferent range of private IPS. and i will never work without the masquerade.
The receiving end will see a packet originating from 10.8.0.2 and it will try to send a response packet back to that IP but because the routing within the LAN is on a different class of IPS, it will never make it back.
The local router does not know where to send it since it does not know what 10.8.0.2 is (since it's not part of it's routing table).
All your clients (connecting to the VPN server) are funneled and pushed into the network with the LAN IP of the VPN server.
I think your issue there is a conflicting/bad VPN configuration setup..
Follow these guides and you should be up and running in no time:
This is possibly where I'm running into issues. I am using a commercial router with VPN built in. It assigns an IP address for each user that has the same network prefix. If I remove the pihole IP address from the DNS servers on the router I have no issue at all .