Changes in login procedure in newer NordVPN app versions (for Linux users only): Login command has been altered for newer NordVPN app versions.
This should fix most of the connection error issues. To remedy this, the list of websites used for the ip check has been updated.
Fixed ip check bug : script was unable to detect current ip due to an SSL cert.
Fix in nordvpn account check: only relevant if you'd like to login through NordVPN switcher.
Spelling error: 'Salk Late City' connection option has been changed to 'Salt Lake City'.
IP check - regex fix: website used for IP check has changed old regex pattern is unable to capture new IP.
In particular, I am not sure how much of a security risk it is to have the NordVPN-password written out in plain text in a file. Again, feel free to comment and suggest improvements. I hope this helps other people who want to use NordVPN on linux. If ! nmcli -t connection | grep eduroam | grep wlp3s0 then etc/NetworkManager/dispatcher.d/10-openvpn #!/bin/bash More info here.Īt my university, I connect to eduroam, which does not allow vpn. To activate the feature you need to enable and start the rvice. In order to automatically start and stop vpn when a network interface goes up/down, put the following in /etc/NetworkManager/dispatcher.d/10-openvpn. Starting=$(pgrep -f start-vpn) # this might not be the most accurate, but it works for me. If you do want to monitor it via i3blocks, put this in your i3blocks config: Īnd this in your i3blocks-scripts-directory (with name vpn): #!/bin/bash Profile = result.json() + 'tcp'Ĭommand = 'systemctl start + profile + '.service'įork_and_continue_notifying_in_background()įor convenience, I have two aliases in my ~/.bashrc: alias start-vpn='sudo start-vpn' # rename tcp config files and put them in /etc/openvpn/clientįor file in * do mv "$' # download config files, extract and clean up I'm running arch, this might be different on your system. Insert your NordVPN login credentials in the generate authentification file part. I have written a little script that downloads the config files, renames them and enables automatic authentification.