[strongSwan] how to get the virtual ip in a program

Nitin Verma nitin.jndm at gmail.com
Mon Jun 4 14:48:18 CEST 2012


Hi Martin,
Can you guide me how to read the virtual ip that strongSwan uses directly
from interface at the client's side.

Regds,
Nitin


On Fri, Jun 1, 2012 at 5:08 PM, Martin Willi <martin at strongswan.org> wrote:

> Hi Nitin,
>
> > I want to know is there any system level variable or container that
> > stores the virtual IP assigned by the strongSwan server to the
> > strongSwan client's interface.
>
> When using the attr-sql [1] pool backend, you can use "ipsec pool
> --leases" on the server to list all leases. When using a pool directly
> defined in ipsec.conf, "ipsec leases" lists all IP leases.
>
> If you need that information on the client itself, you'd have to read
> the IP directly from the interface, parse "ipsec statusall" or extend
> the stroke (or any other) interface by such a function.
>
> Regards
> Martin
>
> [1]http://wiki.strongswan.org/projects/strongswan/wiki/AttrSQL
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/users/attachments/20120604/b18222a1/attachment.html>


More information about the Users mailing list