Starting and Stopping VPN from Command Line in Ubuntu

List all NM connections:
$ nmcli con

Start connection (wifi, vpn, etc)
$ nmcli con up id ConnectionName

Stop connection:
$ nmcli con down id ConnectionName

Leave a Reply