From 8d0c2c8535ff9a7885805f8a6706c87419dbeb6d Mon Sep 17 00:00:00 2001 From: DL6ER Date: Thu, 26 Jan 2017 13:47:30 +0100 Subject: [PATCH] Created OpenVPN server: Setup server (markdown) --- OpenVPN-server:-Setup-server.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 OpenVPN-server:-Setup-server.md 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