IPSec/L2TP DNS via Pi-hole

I have run the script from GitHub - hwdsl2/setup-ipsec-vpn: Scripts to build your own IPsec VPN server, with IPsec/L2TP, Cisco IPsec and IKEv2 to set up an ipsec vpn. Everything works fine but it has Googles DNS server preconfigured. Does anyone know an easy way to use it with the Pi-hole running on the same machine? Just replacing 8.8.8.8 with my raspberry pi's local IP address or 127.0.0.1 as described in the setup script does not seem to work.

Clients are set to use Google Public DNS when the VPN is active. If another DNS provider is preferred, replace 8.8.8.8 and 8.8.4.4 in both /etc/ppp/options.xl2tpd and /etc/ipsec.conf , then reboot your server. Advanced users can define VPN_DNS_SRV1 and optionally VPN_DNS_SRV2 when running the VPN setup script.

There is a Github Issue in the setup scripts repo about this, but it doesn't have a solution.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.