Please uninstall PiVPN and upgrade to WireGuard Easy. It's much simpler and better! π
PiVPN Web is an open-source Web UI for PiVPN (when using WireGuard).
- A beautiful & easy to use UI
- Easy installation: just one command
- List, create, delete, enable & disable users
- Show a user's QR code
- Download a user's configuration file
- See which users are connected
- Log in with your Linux username & password
- Connects to your local PiVPN installation β or remote over SSH
- Gravatar support π
- Docker installed
- PiVPN installed (WireGuard, not OpenVPN)
- SSH enabled
# Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
# Add user 'pi' to group 'docker'
sudo usermod -aG docker picurl -L https://install.pivpn.io | bashSee https://pivpn.io for detailed instructions.
Run this command once to automatically start the service on boot.
docker run -d -p 51821:51821 --name pivpn-web --restart=unless-stopped weejewel/pivpn-webπ‘ Remove the
restart=alwaysflag to prevent auto-start on boot.
π‘ You can set the environment variable
SSH_HOSTto a hostname/IP to connect to a different PiVPN server than PiVPN Web is running on.
π‘ There's also a
docker-compose.ymlfile.
Open http://<ip-of-your-pi>:51821 and log in with your Raspberry Pi username & password.
π‘ The default Raspbian username is
piand the default password israspberry.
π‘ When a client's name is a valid Gravatar e-mail, they will be shown with their avatar.
| Variable | Default | Comment |
|---|---|---|
| PORT | 51821 | The listening port (number) |
| SSH_HOST | 172.17.0.1 | The SSH host to connect to (ip) |
| SSH_PORT | 22 | The SSH port to connect to (number) |
| ENABLE_2FA | no | Enable 2FA login support (yes/no) |
Run these commands to update to the latest version.
docker stop pivpn-web
docker rm pivpn-web
docker pull weejewel/pivpn-web
docker run -d -p 51821:51821 --name pivpn-web --restart=unless-stopped weejewel/pivpn-web