Managing PiVPN
Take a look at what PiVPN can do. Run:
pivpn — help
That will retrun:
::: Control all PiVPN specific functions!
:::
::: Usage: pivpn <command> [option]
:::
::: Commands:
::: -a, add [nopass] Create a client ovpn profile, optional nopass
::: -c, clients List any connected clients to the server
::: -d, debug Start a debugging session if having trouble
::: -l, list List all valid and revoked certificates
::: -r, revoke Revoke a client ovpn profile
::: -h, help Show this help dialog
::: -u, uninstall Uninstall PiVPN from your system!
This is a good time to talk about ovpn profiles. These .ovpn
files have all the settings and keys for clients to connect to the server. You should create a new profile for each device that will connect. For example, I want to connect my cell phone. I run:
pivpn add nopass
It will ask for a name:
Enter a Name for the Client:
I am goint to call it jasonphone
This will create a new .ovpn
file that we need to transfer to our device.
We can also create a profile that requires password with
pivpn add
We can list the profiles with:
pivpn list
And we delete profiles with:
pivpn revoke jasonphone
Connecting Clients
So now you have yourself a .ovpn
file for a device. You will need software on that device that will use that file. I recommend the OpenVPN Connect app for both iOS and Android. On Linux you can use the OpenVPN software. For Windows use the OpenVPN Desktop Clients. More details can be found on the OpenVPN site.