How to Install PiVPN on Debian
VPN is a method to keep your internet active and confidential in addition to letting you extend your private network online. It can be difficult to set up for an inexperienced user. You can easily set up a VPN server on Debian using PiVPN. PiVPN is an installer and manager for OpenVPN. This tool lets you control your VPN server with simple commands.
In the following article, we’ll demonstrate an easier way for you to set up PiVPN
Set up a user first. You can give this user any name you like, however, in this example we will call him/her “testuser“.
Fill in the required information,
[email protected]:~# adduser testuser Adding user `testuser' ... Adding new group `testuser' (1002) ... Adding new user `testuser' (1002) with group `testuser' ... Creating home directory `/home/testuser' ... Copying files from `/etc/skel' ... Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Changing the user information for testuser Enter the new value, or press ENTER for the default Full Name : Room Number : Work Phone : Home Phone : Other : Is the information correct? [Y/n]
PiVPN installation and configuration
Run the command,
curl -L https://install.pivpn.io | bash
You’ll be prompted a few times as it installs, so it’s likely that you should leave the settings as they are. Once it has located your new user(testuser), it will make it the default storage location for the VPN profiles.
It has been installed,
A VPN profile can now be added or removed. Run the following command to add a profile. You can create a profile by entering the name and password. This will store the profile in the “testuser” user’s directory.
Revocation of a user can be accomplished using the following commands,
pivpn revoke testuser
Connecting to the VPN is as simple as using the *.ovpn files stored in /home/vpn/ovpns. You can then copy these to your client of choice using your chosen method, and then import the OpenVPN client.
Get the most out of learning with VPSie.com