I have StrongSwan VPN server set up on a Debian host, and would like to run a custom script when a client connects to it. The only thing I have come up with is periodically checking the contents of the log file, but that seems clunky.
Is there any way to specify a script to execute upon connection, preferably with some way to infer the originating IP and login information used for that connection?