location of VPNs config file

Vyhlidal, David David.Vyhlidal at charter.com
Thu Aug 25 00:32:25 PDT 2016


Thank you for your fast respond.

I  was unable to come up with export all VPN connection command using just nmlci syntax.
I used this line to export all connection in individual exports:
for x in `nmcli con show |awk '{print $1}'|grep -v NAME`; do echo $x:;nmcli con export $x > $x-VPN.conf ;done

Could you please provide me with syntax using nmlci to export and import all VPN connection currently configured?


Thank you .


    David Vyhlidal| Implementation - System Engineer II
    924 Ellis Rd. Suite 101|Durham, NC 27703|Direct (919) 287-3855
    david.vyhlidal at charter.com


-----Original Message-----
From: David Woodhouse [mailto:dwmw2 at infradead.org] 
Sent: Thursday, August 25, 2016 2:21 AM
To: Vyhlidal, David <David.Vyhlidal at charter.com>; openconnect-devel at lists.infradead.org
Subject: Re: location of VPNs config file

On Thu, 2016-08-25 at 04:07 +0000, Vyhlidal, David wrote:
> What is the location of VPN config file so I can backup my configured
> VPN servers on client  on Ubuntu 16.04, OpenConnect version v7.06 ?

OpenConnect itself doesn't have a config file in a defined location.
It just takes arguments on the command line. One of those argument
*can* be a config file, containing more options... but it just looks
where you tell it.

If you're using NetworkManager then that'll be where your configuration
is stored; try 'nmcli con export' or 'nmcli con show'.

-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse at intel.com                              Intel Corporation



More information about the openconnect-devel mailing list