Hi!
I run a bunch of openvpn servers from a gentoo fw, for a large amount of different configurations.
I also run a central syslog server.
I have this in each server config:
script-security 3
client-connect "/usr/local/bin/vpn ais CONNECT"
client-disconnect "/usr/local/bin/vpn ais DISCONNECTED"
The /usr/local/bin/vpn script uses the binary "logger" to send custom syslog entries to central server:
logger -n rex -P 999 -t VPNx[${1}${action}${action}] -- ${action}${rhostname} ${ifconfig_pool_remote_ip}" ("${trusted_ip}/${proto}")" ${signal} ${time_duration};;
And these are the entries I get on that one (edited public IP only):
20160215 114423 fw2 VPNx[ais--] 20º aisl.ais.vpn.region.ou 10.21.9.36 (1**.*0.4*.*9*/) 1797
20160215 114425 fw2 VPNx[ais++] 20º aisl.ais.vpn.region.ou 10.21.9.36 (1**.*0.4*.*9*/)
Nothing in $proto in both lines (first is a disconnect, last a connect), $signal also empty on disconnect.
Any hint as to why? man page doesn't seem very clear to me over if this is somehow scoped.
Many thanks.