Created OpenVPN server: Setup server (markdown)

DL6ER 2017-01-26 13:47:30 +01:00
parent 8233649225
commit 8d0c2c8535

@ -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
<pre>
<b>inet addr:10.8.0.1</b> P-t-P:10.8.0.1 Mask:255.255.255.0
</pre>
Afterwards, change your settings in `/etc/openvpn/server.conf` from
```
push "dhcp-option DNS 8.8.8.8"
```
to
<pre>
push "dhcp-option DNS <b>10.8.0.1</b>"
</pre>
(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
```