[strongSwan] how to get the virtual ip in a program
nitin.jndm at gmail.com
Mon Jun 4 14:48:18 CEST 2012
Can you guide me how to read the virtual ip that strongSwan uses directly
from interface at the client's side.
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  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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users