How to connect to the VPN automatically on System Startup ?

Everytime I use Vpn I need to connect to the VPN manually using different countries.

Is there a way to connect to the VPN automatically after the system starts on Ubuntu 18.04? Thanks.

4

2 Answers

To automatically connect to VPN

  • Launch nm-connection-editor or open Network Connections.
  • Choose you WiFi or LAN connection, click "Edit", select the "General" tab.
  • Enable "Automatically connect to VPN when using this connection".

Extra info on installing open VPN and use the same "settings, country" every time check this link.

5

In addition to AnOn's answer you might want to have a look at this answer. If you "Store the password for all users" then the VPN will also automatically connect after waking up from being suspended.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like