Rapsberry Pi OpenVPN Server: Difference between revisions

From munkjensen.net/wiki
No edit summary
No edit summary
Line 5: Line 5:
On a side note:  I have installed this on the RPi that is running my PiHole. This gives me (and you if you do the same) the option to use the Ablocking DNS server ANYWHERE !!
On a side note:  I have installed this on the RPi that is running my PiHole. This gives me (and you if you do the same) the option to use the Ablocking DNS server ANYWHERE !!


 
==== To let VPN clients automatically get the PiHole as Primary DNS server do as follows: ====
== To let VPN clients automatically get the PiHole as Primary DNS server do as follows: ==


# Open the file ''/etc/openvpn/server.conf'' in your favorite editor using the sudo command. Example: ''sudo vi /etc/openvpn/server.conf''
# Open the file ''/etc/openvpn/server.conf'' in your favorite editor using the sudo command. Example: ''sudo vi /etc/openvpn/server.conf''
Line 14: Line 13:
# Reboot your Raspberry Pi
# Reboot your Raspberry Pi
# Connect and enjoy AdFree DNS functionalities ANYWHERE !!
# Connect and enjoy AdFree DNS functionalities ANYWHERE !!


[[See my Pi-Hole]] for more information ;-)
[[See my Pi-Hole]] for more information ;-)

Revision as of 19:26, 24 May 2016

Go here and do as described in the README. It is super simple... if you follow the instructions precisely (RTFM)

I can connect all my OpenVPN capable devices to this server, and it is super simple to create certificates for alle the devices you will allow access !

On a side note: I have installed this on the RPi that is running my PiHole. This gives me (and you if you do the same) the option to use the Ablocking DNS server ANYWHERE !!

To let VPN clients automatically get the PiHole as Primary DNS server do as follows:

  1. Open the file /etc/openvpn/server.conf in your favorite editor using the sudo command. Example: sudo vi /etc/openvpn/server.conf
  2. Above the line containing the text push "dhcp-option DNS 8.8.8.8" insert a new line. (The IP 8.8.8.8 may differ in your setup)
  3. Copy the line push "dhcp-option DNS 8.8.8.8" into the new line.
  4. Change the ip address in the new line so it contains the IP address of your Raspberry Pi LAN interface.
  5. Reboot your Raspberry Pi
  6. Connect and enjoy AdFree DNS functionalities ANYWHERE !!

See my Pi-Hole for more information ;-)