Useful Commands for Managing OpenVPN (PiVPN)

Once PiVPN is installed, to see the list of all available commands, simply type the following command in the terminal:

pivpn -command

Now let’s look at the most commonly used commands in detail;

pivpn -h
Displays the help file;

pivpn -a
Adds a new client: you will be asked for the name you want to give it and then for the password you want to assign to it.
If you want to add a client without a password, simply type pivpn -a nopass

pivpn -l
displays a list of all the clients in your configuration;

pivpn -r
This command “revokes” a client; after running it, type the name of the client to revoke;

pivpn -c
To view the clients currently connected

pivpn -bk
To back up the OpenVPN configuration and the configured clients (for restoring, see this site).

pivpn -d
To enable debug mode.

pivpn -u
To uninstall OpenVPN

Enjoy!

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top