diff --git a/OpenVPN-server:-Setup-server.md b/OpenVPN-server:-Setup-server.md new file mode 100644 index 0000000..c2b53a0 --- /dev/null +++ b/OpenVPN-server:-Setup-server.md @@ -0,0 +1,26 @@ +### Setup OpenVPN server +to use your Pi-hole as DNS server + +First, get the IP of your `tun0` interface: +``` +ifconfig tun0 | grep 'inet addr' +``` +In my case this returns +
+inet addr:10.8.0.1  P-t-P:10.8.0.1  Mask:255.255.255.0
+
+ +Afterwards, change your settings in `/etc/openvpn/server.conf` from +``` +push "dhcp-option DNS 8.8.8.8" +``` +to +
+push "dhcp-option DNS 10.8.0.1"
+
+(where you might have to replace the IP if you found something different in the previous step) + +Finally, restart your OpenVPN server. +``` +sudo service openvpn restart +``` \ No newline at end of file