Set up a VPN using PiVPN
Vuyisile Ndlovu

Vuyisile Ndlovu @vndlovu

About: Software Developer interested in automation. Lover of dogs.

Joined:
May 15, 2021

Set up a VPN using PiVPN

Publish Date: Mar 21
0 0

PiVPN is an easy-to-use installer that configures a raspberry pi (or any other Debian based server) as a WireGuard or OpenVPN server. It securely configures the server using reasonable defaults.

Features

  • easily configure WireGuard or OpenVPN
  • run WireGuard and OpenVPN simultaneously
  • generate QR codes for WireGuard clients
  • configures defaults, allows you to modify them

Installation

curl -L https://install.pivpn.io | bash
Enter fullscreen mode Exit fullscreen mode

PiVPN can be setup in AWS User data

Commands

pivpn ovpn
pivpn wg
Enter fullscreen mode Exit fullscreen mode

PiVPN CLI

# If more than one VPN type enabled, pass the type in the flag
pivpn [ovpn|wg]
# e.g
pivpn wg add
Enter fullscreen mode Exit fullscreen mode

Add a new Client:

# Add new client
pivpn [ovpn|wg] add
Enter fullscreen mode Exit fullscreen mode

View Connected Clients

# View client list
pivpn [ovpn|wg] -c
Enter fullscreen mode Exit fullscreen mode

View All Clients

# List all clients
pivpn -l
Enter fullscreen mode Exit fullscreen mode

Create Client config file without password

# Create a new client config file without a password
pivpn -a nopass
Enter fullscreen mode Exit fullscreen mode

Comments 0 total

    Add comment