[strongSwan] updown script + stats
kgardenia42 at googlemail.com
Thu Apr 4 16:10:35 CEST 2013
On Thu, Apr 4, 2013 at 9:13 AM, Martin Willi <martin at strongswan.org> wrote:
> > In an updown script it seems that $PLUTO_PEER gives me the public
> > address of the VPN user. Is there any way to get the VPN address
> > assigned to the user (i.e. the 10.x.x.x address).
> Yes, just have a look at the default updown script, it explains all
> variables supported. PLUTO_MY_SOURCEIP is the virtual IP, see .
Should I expect that to work in up-client:iptables event? I tried
writing it to a file and $PLUTO_MY_SOURCEIP came out blank:
echo "$PLUTO_PEER_ID, $PLUTO_MY_SOURCEIP" >> /tmp/vpn-up.log
> > On a related note, I would like to log usage stats for each
> > $PLUTO_PEER_ID as the disconnect. Are the usage stats for the
> > current session available in the updown script?
> No, updown script currently does not support usage stats for CHILD_SAs.
> > Is there any better way to record usage stats per connected id?
> The eap-radius backend supports the collection of statistics if RADIUS
> Accounting is enabled, but it requires an AAA backend, see . You can
> find the implementation at .
More information about the Users