ipsec pool

Synopsis

ipsec pool --status|--add|--del|--resize|--purge [options]

Options

--status

Show a list of installed pools with statistics.

--add <name> --start <start> --end <end> [--timeout <timeout>]

Add a new pool to the database.

name: Name of the pool, as used in ipsec.conf rightsourceip=%name

start: Start address of the pool

end: End address of the pool

timeout: Lease time in hours, 0 for static leases

--del <name>

Delete a pool from the database.

name: Name of the pool to delete

--resize <name> --end <end>

Grow or shrink an existing pool.

name: Name of the pool to resize

end: New end address for the pool

--leases <name> [--filter <filter>] [--utc]

Show lease information using filters:

name: Name of the pool to show leases from

filter: Filter string containing comma separated key=value filters,

pool: name of the pool
id: assigned identity of the lease
addr: lease IP address
tstamp: UNIX timestamp when lease was valid, as integer
status: status of the lease: online|valid|expired

utc: Show times in UTC instead of local time

--purge <name>

Delete expired leases of a pool:

name: Name of the pool to purge

Examples