How to turn a Raspberry Pi into a VPN server Run PiVPN. Tell PiVPN whether you set up a static address (a DHCP reservation). Choose between OpenVPN or WireGuard. Select a communication protocol. ... Set the VPN port. ... Set the DNS provider. More items...