I have been trying to get my VPN server + Pi-Hole set-up work for over a week now and I'm having no luck at all. I used to have it set-up so that my older Pi 2B runs Pi-Hole and my Pi 3B+ runs the VPN server. However I recently re-purposed my 2B for something else and am now trying to get it both to work on the 3B+, in which I'm failing miserably.
My router does not have the ability to set a network wide DNS so I hand the DHCP off to Pi-Hole so I don't have to set it on each and every device. When I install Pi-Hole first, it works perfectly fine. If I then install the L2TP VPN server, the DHCP from Pi-Hole will suddenly stop handing out leases and the network stops working. Then when rebooting the Pi, it doesn't come back online until after I switch the DHCP on the router back on and reboot the pi once again.
The VPN server will work no matter what, I haven't had any problems with it so far.
I know the combination of Pi-Hole and a VPN can be done with PiVPN but I don't want to use a separate app or client to connect with my network when I'm on the go. L2TP works like a charm and out of the box on Android, iOS and Windows so I would really prefer to use it instead of OpenVPN. I use the VPN mainly to log into my network remotely, access my NAS and/or play games with friends on 'LAN' without having to use things like Hamachi. Being able to block ads through the VPN and preventing DNS leaks would be an added benefit but are not a necessity.
I can't seem to get that to work.
It takes a long time to try to connect and eventually times out.
I narrowed the problem down a little closer.
After running step1 and rebooting everything still works.
It is once I run step2 that the Pi refuses to come back online.
I also tried changing the /etc/network/interfaces file to:
I did, on a fresh install.
BUT! It flippin' works now!!!
The combination of changing the interfaces file as mentioned before and these steps made it so that it finally works. I had done the steps before but was not able to make it work. Changing the interfaces file must've done the trick. Thanks for pointing me in the right direction Ramset!
This also keeps the benefit of being able to use SoftEthers VPN Manager software which I quite like.