

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.
