20.04LTS NetworkManager VPN - Всегда включен

У меня есть работающая настройка VPN-соединения в Ubuntu 20.04LTS. Как настроить так, чтобы он автоматически подключался, когда Wi-Fi подключен к определенному SSID?

Например, я всегда частый «This_wifi_network». Я хотел бы, чтобы VPN автоматически включалась при подключении Wi-Fi к этой общедоступной сети.

TIA!

1
задан 20 July 2020 в 16:53

1 ответ

Open the hidden Network Connection Editor

There is a hidden app that does not show when you search for it. To open this app, open a terminal by pressing Ctrl+Alt+T and enter:

nm-connection-editor

This will open the Network Connection Editor as below:

enter image description here

  1. Select your WiFi Network
  2. Click on the Settings "cog" icon below

See the picture below for the next screen:

enter image description here

  1. Select the General tab
  2. Check the box next to Automatically connect to VPN when using this connecion
  3. Select the VPN from the drop-down menu below.
  4. Click the Save button below to save the changes.

Unhide Network Connection Editor

To make Network Connection Editor show up in applications searches in Gnome, do the following:

Go to /usr/share/applications and find the icon for “Network Connections”. Right click and edit as administrator. Comment out the line: NotShowIn=KDE;GNOME; to:

#NotShowIn=KDE;GNOME;

Now it will show up in the “Show Application”

Hope this helps

1
ответ дан 30 July 2020 в 22:05

Другие вопросы по тегам:

Похожие вопросы: