Maximum PC

ONE BIG EDIT FOR MAN

-

Remember that line in the VPN configurat­ion file for auth-user-pass ? We need to change that so that the credential­s file we just created is called automatica­lly. This means that you need to change that line to:

auth-user-pass vpnlogin

You can do that manually for the three or four servers that you think you’ll use the most, and then just set up scripts to start those servers whenever you need them. But what if you want to pretend you’re in Sweden for a day, or South Africa? Can you even remember what the VPN password was?

Nord VPN supplies over 2,000 different config files—one for each server, with both TCP and UDP protocols. To edit all those files at once, open up an SSH connection to your Pi, and navigate to “etc/openvpn” again. Now run the following command to use SED for a batch edit of all the .ovpn files: find . -type f -name \*.ovpn -exec sed -i.bak ‘s|authuser-pass|auth-user-pass vpnlogin|g’ {} +

This has the added benefit of also creating a backup of the existing files.

Newspapers in English

Newspapers from United States