Install PiVPN using the standard method
masterThe quickest way to install PiVPN is to use the one-line installer script. This will guide you through the setup process for either WireGuard or OpenVPN.
curl -L https://install.pivpn.io | bashrepository·master·Indexed 27 days ago
https://github.com/pivpn/pivpnA set of shell scripts to turn a Raspberry Pi or Debian/Ubuntu-based VPS into a VPN server using WireGuard or OpenVPN protocols.
The quickest way to install PiVPN is to use the one-line installer script. This will guide you through the setup process for either WireGuard or OpenVPN.
curl -L https://install.pivpn.io | bashTo install the latest development or test versions of PiVPN, use the testing URL with the TESTING environment variable set.
curl -L https://test.pivpn.io | TESTING= bashIf you prefer not to use the standard installer, you can download the script directly from GitHub or clone the entire repository to run the installation locally.
# Method 2: Direct link
curl https://raw.githubusercontent.com/pivpn/pivpn/master/auto_install/install.sh | bash
# Method 3: Clone repo
git clone https://github.com/pivpn/pivpn.git
bash pivpn/auto_install/install.shWhen testing changes during development, you can specify a custom Git repository and branch. This prevents the script from defaulting to the master branch. You can also use these variables for unattended setups.
# Using CLI flags
git clone < customgitrepourl >
bash pivpn/auto_install/install.sh --giturl < customgitrepourl > --gitbranch < customgitbranch >
# Example
git clone https://github.com/userthatforked/pivpn.git
bash pivpn/auto_install/install.sh --giturl https://github.com/userthatforked/pivpn.git --gitbranch myfeaturebranch
# For unattended setup configuration
pivpnGitUrl="https://github.com/userthatforked/pivpn.git"
pivpnGitBranch="myfeaturebranch"