Connect / Disconnect Email alert

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
robturner80
OpenVpn Newbie
Posts: 12
Joined: Fri Dec 02, 2016 10:19 am

Connect / Disconnect Email alert

Post by robturner80 » Thu Aug 17, 2017 4:15 pm

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

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Connect / Disconnect Email alert

Post by TinCanTech » Thu Aug 17, 2017 6:39 pm

--client-connect your_connect_script.sh --client-disconnect your_disconnect_script.sh

robturner80
OpenVpn Newbie
Posts: 12
Joined: Fri Dec 02, 2016 10:19 am

Re: Connect / Disconnect Email alert

Post by robturner80 » Sat Aug 19, 2017 10:35 pm

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

Post Reply