1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-02-22 04:52:01 +00:00

Updated OpenVPN server: Only route DNS via VPN (markdown)

DL6ER 2017-01-27 16:40:35 +01:00
parent f58f7da1d1
commit 9fdab91997

@ -2,7 +2,7 @@ Full article: https://github.com/pi-hole/pi-hole/wiki/Pi-hole---OpenVPN-server
### Optional: Only route DNS via VPN
With this setup you will force connected clients to use only the DNS provided by the VPN connection, i.e. the Pi-hole. Do this only if you don't want to tunnel **all** connections from the client thru the VPN, but only DNS queries.
With this setup you will force connected clients to use only the DNS provided by the VPN connection, i.e. the Pi-hole. Do this only if you **don't** want to tunnel all traffic from the client thru the VPN, but only its DNS queries.
Edit your `/etc/openvpn/server.conf` and remove (comment) the following line:
```