Discussion:
[strongSwan-dev] Querying Strongswan to get plugins configuration information
Ke Shang
2017-01-10 21:44:43 UTC
Permalink
Hi all,


I was just wondering if it is possible to query Strongswan at runtime to get plugins configuration information.


Thanks,
Ke
Andreas Steffen
2017-01-11 07:30:59 UTC
Permalink
Hi Ke,

ipsec statusall
or
swanctl --stats

lists all loaded plugins.

Regards

Andreas

On 11.01.2017 05:44, Ke Shang wrote:
> Hi all,
>
>
> I was just wondering if it is possible to query Strongswan at runtime to
> get plugins configuration information.
>
>
> Thanks,
> Ke
>
======================================================================
Andreas Steffen ***@strongswan.org
strongSwan - the Open Source VPN Solution! www.strongswan.org
Institute for Internet Technologies and Applications
University of Applied Sciences Rapperswil
CH-8640 Rapperswil (Switzerland)
===========================================================[ITA-HSR]==
Ke Shang
2017-01-11 16:10:44 UTC
Permalink
Thanks Andreas!


Is it possible to call some function to get the configuration information of my custom plugins?


For example:

myPlugin.conf

myPlugin {

load = yes
type = abc
}

I want to be able to do something like getConf("type"), and it returns abc.

Regards
Ke
________________________________
From: Andreas Steffen <***@strongswan.org>
Sent: January 11, 2017 2:30 AM
To: Ke Shang; ***@lists.strongswan.org
Subject: Re: [strongSwan-dev] Querying Strongswan to get plugins configuration information

Hi Ke,

ipsec statusall
or
swanctl --stats

lists all loaded plugins.

Regards

Andreas

On 11.01.2017 05:44, Ke Shang wrote:
> Hi all,
>
>
> I was just wondering if it is possible to query Strongswan at runtime to
> get plugins configuration information.
>
>
> Thanks,
> Ke
>
======================================================================
Andreas Steffen ***@strongswan.org
strongSwan - the Open Source VPN Solution! www.strongswan.org<http://www.strongswan.org>
Institute for Internet Technologies and Applications
University of Applied Sciences Rapperswil
CH-8640 Rapperswil (Switzerland)
===========================================================[ITA-HSR]==
Loading...