{"id":8258,"date":"2021-03-17T19:21:47","date_gmt":"2021-03-17T16:21:47","guid":{"rendered":"https:\/\/kifarunix.com\/?p=8258"},"modified":"2024-03-19T18:53:41","modified_gmt":"2024-03-19T15:53:41","slug":"install-pritunl-vpn-client-on-debian-ubuntu","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-pritunl-vpn-client-on-debian-ubuntu\/","title":{"rendered":"Install Pritunl VPN client on Debian\/Ubuntu"},"content":{"rendered":"\n
In our previous guide, we learnt how to Install and Setup Pritunl VPN Server on Debian<\/a>. This tutorial will take you through how to install Pritunl VPN client on Debian\/Ubuntu systems so that you can be able to connect to your VPN server and be able to access your other systems in a remote LAN.<\/p>\n\n\n\n In order to install Pritunl VPN client, you need to first install the Pritunl repositories by running the commands below;<\/p>\n\n\n\n Install Pritunl repository on Ubuntu\/Debian;<\/p>\n\n\n\n Install Pritunl repository on Ubuntu\/Debian;<\/p>\n\n\n\n Run system update;<\/p>\n\n\n\n Once the repos are in place, run the command below to install Pritunl.<\/p>\n\n\n\n On desktop systems, you can install On server systems, you can simply use pritunl-client VPN client package;<\/p>\n\n\n\n Before you can connect to Pritunl VPN server from the client, you need to have created the users and organizations. Follow the link below to create Pritunl VPN server users and organization.<\/p>\n\n\n\n Add Users and Organizations on Pritunl VPN Server<\/a><\/p>\n\n\n\n If you are running on servers without the GUI interface, you can use The basic command line usage for the So, for example, in our Pritunl VPN server, we added two demo users as show above.<\/p>\n\n\n\n Let us say you want to connect to Pritunl VPN server as one of the users above, say demo user from your Ubuntu\/Debian server, using pritunl-client, then you would simply run the command below;<\/p>\n\n\n\n Where So if you are using trusted SSL certificate with your Pritunl VPN server, then you can import the profile directly using the sample command below;<\/p>\n\n\n\n List available profiles by running the command;<\/p>\n\n\n\n Start the profile using the From desktop systems, you can connect to Pritunl VPN server using the Pritunl client. Just launch it from the application menu. It looks like this;<\/p>\n\n\n Download the user’s profile from Pritunl server and import on the client.<\/p>\n\n\n\n You can as well get the profile URI and import from URI.<\/p>\n\n\n\n In our demo, we downloaded the profile for demo user and imported as follows.<\/p>\n\n\n\n So we have the ovpn profile file.<\/p>\n\n\n\n To import the profile, simply click Import Profile<\/strong> and select your The Pritunl client then shows like as shown below once the profile is imported;<\/p>\n\n\n To connect, click on the menu lines at the right top and click connect<\/strong>.<\/p>\n\n\n Connection status from the client;<\/p>\n\n\n Verify IP address;<\/p>\n\n\n\n Connection status from the Pritunl VPN Server;<\/p>\n\n\n\n You can connect using Using Network Manager command line tool;<\/p>\n\n\n\n Similarly, you can as well import a saved .ovpn configuration from Gnome or KDE network connection settings.<\/p>\n\n\n\n Pritunl VPN connection<\/a><\/p>\n\n\n\n Pritunl Gnome Client<\/a><\/p>\n\n\n\n Connect to VPN Automatically on Ubuntu 20.04\/18.04<\/a><\/p>\n\n\n\n Install FortiClient VPN Client on Ubuntu 20.04\/Ubuntu 18.04<\/a><\/p>\n\n\n\n Connect to OpenVPN using Network Manager on CentOS 8\/Ubuntu 18.04<\/a><\/p>\n\n\n\n Connect to Cisco VPN Using PCF file on Ubuntu<\/a><\/p>\n\n\n\nInstalling Pritunl VPN client on Debian\/Ubuntu<\/h2>\n\n\n\n
Install Pritunl APT Repository on Debian\/Ubuntu<\/h3>\n\n\n\n
echo \"deb https:\/\/repo.pritunl.com\/stable\/apt $(lsb_release -sc) main\" > \/etc\/apt\/sources.list.d\/pritunl.list<\/code><\/pre>\n\n\n\n
apt install apt-transport-https dirmngr<\/code><\/pre>\n\n\n\n
apt-key adv --keyserver hkp:\/\/keyserver.ubuntu.com --recv 7568D9BB55FF9E5287D586017AE645C0CF8E292A <\/code><\/pre>\n\n\n\n
apt update<\/code><\/pre>\n\n\n\n
Install Pritunl VPN client<\/h3>\n\n\n\n
pritunl-client-electron<\/strong><\/code> VPN client package;<\/p>\n\n\n\n
apt install pritunl-client-electron<\/code><\/pre>\n\n\n\n
apt install pritunl-client<\/pre>\n\n\n\n
Connecting to Pritunl VPN Server<\/h3>\n\n\n\n
Add Users and Organizations on Pritunl VPN Server<\/h4>\n\n\n\n
<\/figure>\n\n\n\n
Connect to Pritunl VPN Server from Servers with no Desktop Environment<\/h4>\n\n\n\n
pritunl-client<\/strong><\/code> to connect to Pritunl VPN server.<\/p>\n\n\n\n
pritunl-client<\/strong><\/code> is;<\/p>\n\n\n\n
pritunl-client<\/code><\/pre>\n\n\n\n
Pritunl Client Command Line Tool\n\nUsage:\n pritunl-client [flags]\n pritunl-client [command]\n\nAvailable Commands:\n add Add profile\n completion generate the autocompletion script for the specified shell\n help Help about any command\n list List profiles\n logs Show logs for profile\n remove Remove profile\n start Start profile\n stop Stop profile\n version Show version\n watch Watch profiles\n\nFlags:\n -h, --help help for pritunl-client\n\nUse \"pritunl-client [command] --help\" for more information about a command.<\/code><\/pre>\n\n\n\n
pritunl-client add [profile_uri]<\/code><\/pre>\n\n\n\n
[profile_uri]<\/strong><\/code> is the uri for the user profile on Pritunl VPN server. You can get the user’s profile URI from Pritunl VPN server, user’s profile. See screenshots below;<\/p>\n\n\n\n
pritunl-client add pritunl:\/\/pritunl.kifarunix-demo.com\/ku\/pw6pDiJZ<\/code><\/pre>\n\n\n\n
pritunl-client list<\/code><\/pre>\n\n\n\n
pritunl-client start<\/strong><\/code> command;<\/p>\n\n\n\n
pritunl-client start -h<\/code><\/pre>\n\n\n\n
Start profile\n\nUsage:\n pritunl-client start [profile_id] [flags]\n\nFlags:\n -h, --help help for start\n -m, --mode string VPN mode (ovpn, wg)\n -p, --password string VPN password<\/code><\/pre>\n\n\n\n
Connect to Pritunl VPN Server from Desktop Systems<\/h4>\n\n\n\n
<\/figure><\/div>\n\n\n
wget -P ~\/Downloads\/ https:\/\/pritunl.kifarunix-demo.com\/key\/guxJ2EedzAC8dkodgKoYJTtjGpYpFnp3.tar --no-check-certificate<\/code><\/pre>\n\n\n\n
cd ~\/Downloads<\/code><\/pre>\n\n\n\n
tar xf guxJ2EedzAC8dkodgKoYJTtjGpYpFnp3.tar<\/code><\/pre>\n\n\n\n
ls -alh .<\/code><\/pre>\n\n\n\n
...\n-rw-r--r-- 1 koromicha koromicha 20K Mar 17 01:59 guxJ2EedzAC8dkodgKoYJTtjGpYpFnp3.tar\n-rw------- 1 koromicha koromicha 9.7K Mar 17 01:59 kifarunix-demo.com_demo_kifarunix-demo-vpn.ovpn<\/strong><\/code><\/pre>\n\n\n\n
.ovpn<\/code><\/strong> file from your specific system location.<\/p>\n\n\n\n
<\/figure><\/div>\n\n\n
<\/figure><\/div>\n\n\n
<\/figure><\/div>\n\n\n
ip add<\/code><\/pre>\n\n\n\n
4: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 100\n link\/none \n inet 192.168.241.2\/24 brd 192.168.241.255 scope global tun0\n valid_lft forever preferred_lft forever\n inet6 fe80::8906:20df:b6f4:ef97\/64 scope link stable-privacy \n valid_lft forever preferred_lft forever<\/code><\/pre>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
Connect Using OpenVPN client;<\/h4>\n\n\n\n
openvpn<\/code> client;<\/p>\n\n\n\n
sudo openvpn ~\/Downloads\/kifarunix-demo.com_demo_kifarunix-demo-vpn.ovpn<\/code><\/pre>\n\n\n\n
Other connection methods<\/h4>\n\n\n\n
nmcli connection import type openvpn file ~\/Downloads\/kifarunix-demo.com_demo_kifarunix-demo-vpn.ovpn<\/code><\/pre>\n\n\n\n
Reference and Further Reading<\/h4>\n\n\n\n
Related Tutorials<\/h4>\n\n\n\n