Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Thanks to the suggestion given by Bikehead, here's what worked for me, step-by-step:

  • ssh to the remote server
  • run:

    nmcli con list

This returns a list like the following which includes the UUID of the VPN connection

 NAME                   UUID                                     TYPE              TIMESTAMP-REAL                    
 System foobar (wlan2)  12323e-535e-c25b-43443-243434a6501   802-11-wireless   Mon 26 Dec 2011 05:56:45 PM EST   
 eth0 192.168.2.50      777776bd0-0bb0-7ffb-45f1-d6edd65f3e03   802-3-ethernet    Sun 17 Apr 2011 07:54:53 PM EDT   
 Connection to VPN from Outside e923399-0b97-4dbe-8199-434343437b   vpn               Mon 26 Dec 2011 05:56:45 PM EST
  • Actually activate the VPN using:

    nmcli con up uuid e923399-0b97-4dbe-8199-434343437b

  • Test logging into a server behind the VPN:

    ssh foobar@server.behind.vpn.com

click to hide/show revision 2
Needs root access for final connection step

Thanks to the suggestion given by Bikehead, here's what worked for me, step-by-step:

    1. ssh to the remote server
    2. run:

      run: nmcli con list

. This returns a list like the following which includes the UUID of the VPN connection

connection.
  NAME                   UUID                                     TYPE              TIMESTAMP-REAL                    
  System foobar (wlan2)  12323e-535e-c25b-43443-243434a6501   802-11-wireless   Mon 26 Dec 2011 05:56:45 PM EST   
  eth0 192.168.2.50      777776bd0-0bb0-7ffb-45f1-d6edd65f3e03   802-3-ethernet    Sun 17 Apr 2011 07:54:53 PM EDT   
  Connection to VPN from Outside e923399-0b97-4dbe-8199-434343437b   vpn               Mon 26 Dec 2011 05:56:45 PM EST
EST 
    1. Actually activate the VPN using:using (this seems to require root access):

      sudo nmcli con up uuid e923399-0b97-4dbe-8199-434343437b

    2. Test logging into a server behind the VPN:

      ssh foobar@server.behind.vpn.com

click to hide/show revision 3
VPN connection is short-lived

Thanks to the suggestion given by Bikehead, here's what worked for me, step-by-step:

  1. ssh to the remote server
  2. run: nmcli con list. This returns a list like the following which includes the UUID of the VPN connection.
    NAME                   UUID                                     TYPE              TIMESTAMP-REAL                    
    System foobar (wlan2)  12323e-535e-c25b-43443-243434a6501   802-11-wireless   Mon 26 Dec 2011 05:56:45 PM EST   
    eth0 192.168.2.50      777776bd0-0bb0-7ffb-45f1-d6edd65f3e03   802-3-ethernet    Sun 17 Apr 2011 07:54:53 PM EDT   
    Connection to VPN from Outside e923399-0b97-4dbe-8199-434343437b   vpn               Mon 26 Dec 2011 05:56:45 PM EST 
  1. Actually activate the VPN using (this seems to require root access):

    sudo nmcli con up uuid e923399-0b97-4dbe-8199-434343437b

  2. Test logging into a server behind the VPN:

    ssh foobar@server.behind.vpn.com

The only problem is that the connection appears to be short-lived. As soon as I disconnect as above, the VPN connection appears to stop.