mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-29 04:24:29 +02:00
Created OpenVPN server: Setup server (markdown)
parent
8233649225
commit
8d0c2c8535
1 changed files with 26 additions and 0 deletions
26
OpenVPN-server:-Setup-server.md
Normal file
26
OpenVPN-server:-Setup-server.md
Normal file
|
@ -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
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue