pivpn
Simple OpenVPN and WireGuard server manager
TLDR
Add new client device
SYNOPSIS
pivpn [add|list|clients|revoke|uninstall|-d|-u]
DESCRIPTION
pivpn simplifies OpenVPN or WireGuard server management on Linux, particularly Raspberry Pi. It handles certificate generation, client configuration, and connection management through an interactive menu system.
Originally designed for Raspberry Pi, it works on any Debian-based system. It automates the complex setup of VPN servers with security-hardened configurations.
CONFIGURATION
/etc/pivpn/
PiVPN configuration directory with setup variables and protocol settings./etc/openvpn/ or /etc/wireguard/
VPN server configuration files managed by PiVPN depending on chosen protocol./home/\<user\>/ovpns/ or /home/\<user\>/configs/
Generated client configuration files for distribution.
COMMANDS
add
Create new client configurationlist
List all client configurationsclients
Show connected clients with statisticsrevoke
Revoke client certificateuninstall
Remove PiVPN installation-d, debug
Generate debug output for troubleshooting-u, update
Check for PiVPN updates
CAVEATS
Requires curl for installation script. Initial setup requires internet access. Port forwarding needed on router for external access. WireGuard mode requires kernel 5.6+ or DKMS module.
HISTORY
PiVPN was created to make VPN server setup accessible to home users, particularly those running Raspberry Pi. It evolved to support both OpenVPN and WireGuard protocols, providing security-focused default configurations.
