How to install the Pritunl client on Fedora 25


Having recently installed a VPN server (Pritunl), I needed it’s client on my workstation. If you look around this page, you’ll see that there is a repository for CentOS 7, which works a treat on Fedora 25. This is how you install the Pritunl client on Fedora 25.

I’ll replicate the steps here just because.

$ sudo tee -a /etc/yum.repos.d/pritunl.repo << EOF
[pritunl]
name=Pritunl Stable Repository baseurl=https://repo.pritunl.com/stable/yum/centos/7/ gpgcheck=1 enabled=1 EOF
$ gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 7568D9BB55FF9E5287D586017AE645C0CF8E292A
$ gpg --armor --export 7568D9BB55FF9E5287D586017AE645C0CF8E292A > key.tmp; sudo rpm --import key.tmp; rm -f key.tmp
$ sudo yum install pritunl-client-gtk

And it’s done! The client is installed, nothing too hard or too fancy. You should get an icon to launch it.
Click it and import your profile to the client. Hit Connect .

Voilà.

But that’s not the reason why I’m writing this post. I’m writing it because soon you’ll realize that you can’t connect to your servers. I mean, you can, but you’ll have to use their IP address, since you can’t resolve their names. The reason for this is that the Pritunl client relies on openresolv to update your DNS servers when you connect to the VPN, and it’s looking for the binary resolvconf, that is not included in Fedora 25.

So you’ll have to install it:

$ cd ~
$ wget https://roy.marples.name/downloads/openresolv/openresolv-3.9.0.tar.xz
$ tar xf openresolv-3.9.0.tar.xz
$ cd openresolv-3.9.0
$ ./configure
$ sudo make
$ sudo make install
$ cd..
$ rm -rf openresolv-3.9.0*

Please note that the openresolv link points to the latest version available at the time of writing.

Disconnect and reconnect your VPN again. It should work.

Leave a Reply

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