qbittorrent, linux cli, nordvpn, openvpn, split tunnel!
I FINALLY got around to properly split tunneling. You know... to get my linux isos
Nothing here is specific to nordvpn. Just an example service.
- install openvpn
- Create
/etc/openvpn/nordvpn.authwith permissions ofroot:root 440(I think these permissions work lol, TODO: verify it works)
ServiceUsernameHere
ServicePasswordHere
- Download openvpn config file from nordvpn and put into
/etc/openvpn/ - Rename to
.ovpnto.conf. ex:/etc/openvpn/pt1234.nordvpn.udp.conf - edit to not be full tunnel:
- add
route-nopull - add
auth-nocache - change
auth-user-pass nordvpn.auth
- add
- Start service with
sudo systemctl start [email protected](dont add .conf)- ex:
sudo systemctl start [email protected] - note:
sudo service startwill not work!servicedoesn't take params like the@
- ex:
- check if it working with
sudo journalctl -xeu [email protected] - Make it stay on reboot with
sudo systemctl enable [email protected]
Note:
sudo systemctl restart [email protected]DOES NOT WORK! You must do STOP and then START.- I believe the
openvpnservice will just control all.conffiles it finds in the directory. Which means that just placing a .conf there will create/run that tunnel. Rename unused tunnels with a .off or something.
actual todo: look into doing wireguard instead. apparently you can use the nordvpn official program and extract the config file from nordlynx
changelog: 2023-07-10 added split tunnel lines, auth file permissions, openvpn service note, small formatting
→