PIVPN: Simplest way to setup a VPN PiVPN should be, bar none, the simplest and fastest way to Install and set up an extremely secure OpenVPN or Wireguard server on your raspberry pi You won't need a guide or tutorial as PiVPN will do it all for you in a fraction of the time with hardened security settings in place by default
Wireguard - docs. pivpn. io You can safely install PiVPN on the same Raspberry Pi as your Pi-hole install, and point your VPN clients to the IP of your Pi-hole so they get ad blocking, etc (replace 192 168 23 211 with the LAN IP of your Raspberry Pi)
Installation - docs. pivpn. io If at any point you wish to remove PiVPN from your Pi and revert it to a pre-installation state, such as if you want to undo a failed installation to try again or you want to remove PiVPN without installing a fresh Raspbian image, just run pivpn uninstall
Home - docs. pivpn. io After the installation is complete you can use the command pivpn to manage the server Have a look at the OpenVPN or WireGuard wiki for some example commands, connection instructions, FAQs, troubleshooting steps
FAQ - docs. pivpn. io PiVPN will ask you what intend to do and setup everything for you After the installation is finished all you have to do is to use pivpn wg [options] and pivpn ovpn [options] to manage each protocol
OpenVPN - docs. pivpn. io You can safely install PiVPN on the same Raspberry Pi as your Pi-hole install, and point your VPN clients to the IP of your Pi-hole so they get ad blocking, etc (replace 192 168 23 211 with the LAN IP of your Raspberry Pi)
PIVPN # Add a custom hosts file for VPN clients so they appear # as 'name pivpn' in the Pi-hole dashboard as well as resolve # by their names echo "addn-hosts= etc pivpn hosts ${VPN}" \ | ${SUDO} tee "${dnsmasqConfig}" > dev null # Then create an empty hosts file or clear if it exists ${SUDO} bash -c "> etc pivpn hosts ${VPN}" # shellcheck
Dynamic DNS with DuckDNS - docs. pivpn. io Head to DuckDNS Install and select Linux CRON and your domain name and follow the install instructions; you can run this on the same Raspberry Pi that you run PiVPN
Tutorials Related Projects - docs. pivpn. io The links below showcase some good write-ups and tutorials that use PiVPN Some other decent information may also be contained regarding VPNs and security in general
Cloud instance user data - docs. pivpn. io This info is focused at more advanced users that wish to have their own VPN in the cloud or spin up VPN servers on demand with PiVPN You should be comfortable reading bash and understanding what the provided scripts below are doing