I have a VPN configured in Ubuntu and set to autoconnect when the system starts. But when I come back from the suspend state, the VPN is always disconnected and I have to reconnect manually.
Is there a native way to make the VPN connection start again automatically in this transition? If not, is there any kind of script or package that could help me configure this?
With
nm-connection-editor
, in the General tab for the Ethernet/Wireless connection you're using, there should be an option to automatically connect the VPN when the interface is brought up.