Page 1 of 1

Connect / Disconnect Email alert

Posted: Thu Aug 17, 2017 4:15 pm
by robturner80
Originally posted under access server and got moved to Access Server Requests by mods.

However, this was a more generic question on how this can be achieved.

The below links indicate this is possible:
https://www.snbforums.com/threads/tutor ... ons.20828/ <-WRT router only

Re: Connect / Disconnect Email alert

Posted: Thu Aug 17, 2017 6:39 pm
by TinCanTech
--client-connect your_connect_script.sh --client-disconnect your_disconnect_script.sh

Re: Connect / Disconnect Email alert

Posted: Sat Aug 19, 2017 10:35 pm
by robturner80
Is it possible to elaborate on this?

Im testing on an AS server with no luck.

I have added numerous entries into the as.conf file, with variations of below:

--client-connect /usr/local/openvpn_asa/etc/up.sh

up.sh has a basic script to send an email