[strongSwan] Listing Pool Lease Info

Eliguzel, Cem cem.eliguzel at siemens.com
Tue Oct 20 06:59:36 CEST 2015


Thanks a lot Tobias. Let me look into it. :)

-----Original Message-----
From: Tobias Brunner [mailto:tobias at strongswan.org] 
Sent: Monday, October 19, 2015 5:23 PM
To: Eliguzel, Cem; users at lists.strongswan.org
Subject: Re: [strongSwan] Listing Pool Lease Info

Hi Cem,

> root at something:~# ipsec leases
> no pools found
> 
> root at something:~# ipsec leases rw_pool pool 'rw_pool' not found
> 
> Apparently I’m doing something wrong.

Not really.  It's just that the `ipsec leases` utility is limited to listing leases handed out by the in-memory pools managed by the stroke plugin.  So it does not list any information related to pools provided via databases (which may be queried via the `ipsec pool` utility) or by the vici plugin (configured via swanctl.conf/VICI).  The latter may be queried via the `swanctl --list-pools/-A` command, but as you saw this currently only gets you general status information.  We'd have to extend this command to include the leases.  I pushed a couple of patches to the vici-list-leases branch of our repository [1].  I also saw your other email and added the assigned virtual IPs to the `--list-sas` command.

Regards,
Tobias

[1]
https://git.strongswan.org/?p=strongswan.git;a=shortlog;h=refs/heads/vici-list-leases



More information about the Users mailing list