1.1 KiB
1.1 KiB
HowTo: OpenVPN
Installing OpenVPN Server on Ubuntu 20.04
I used the excellent all-in-one OpenVPN Install script to do the heavy lifting for this. There were a few caveats that weren't immediately apparent, mostly because of my ignorance in setting up OpenVPN.
I also made sure to open UDP port 1194 on the my Router/Modem and forward that port to Phaedrus
Afterwards, I was able to use the ovpn file to connect to my LAN
Specifying a DNS with OpenVPN
After installing OpenVPN on a VM recently I decided I wanted it to use my local Pi-Hole instance as its DNS so I can block ads while connected to the VPN.
It's as easy as specifying the DNS in /etc/openvpn/server/server.conf, like so:
push "dhcp-option DNS 192.168.0.206"
Then restart openvpn with sudo systemctl restart openvpn-server@server
- Setup OpenVPN Server - Pi Hole Reference
- The same guy that made the all-in-one script for OpenVPN made one for WireGuard: wireguard-install