Discussion:
[strongSwan-dev] Failed to create configuration in swanctl.conf
Sreenivas Reddy
2017-02-14 08:43:17 UTC
Permalink
Hi everyone,

I am creating a pool in swanctl.conf using VICI plugin in python, But the
pool is creating into in-memory. How can i create swanctl.conf file using
VICI plugin and which methos do i need to use.

Can please help me any one

my code is

import vici
s = vici.Session()
s.load_pool({"testpool": {"addrs": "10.0.0.0/24"}})
--
*Thanks & Regards*

*------------------------*

*G.Sreenivas ReddySenior Software Engineer*
* Mobile : +919966360928*
Tobias Brunner
2017-02-15 11:11:31 UTC
Permalink
Hi Sreenivas,
Post by Sreenivas Reddy
I am creating a pool in swanctl.conf using VICI plugin in python, But
the pool is creating into in-memory. How can i create swanctl.conf file
using VICI plugin and which methos do i need to use.
swanctl.conf is the configuration file parsed by the swanctl tool, which
in turn uses VICI to configure the IKE daemon. Using VICI directly
(e.g. via Python) has absolutely nothing to do with swanctl or
swancl.conf and simply configures the daemon at runtime like swanctl
does, see [1] for details. So when using VICI directly you have to
persist the config yourself. Alternatively, but not recommended, write
swanctl.conf files that you then load into the daemon with swanctl.

Regards,
Tobias

[1] https://wiki.strongswan.org/projects/strongswan/wiki/Vici

Loading...