OpenVPN Server Connection Notifications?

  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

sone

Occasional Visitor
Hi all, thanks to this helpful community I’ve used several notification scripts to send me emails on certain situations: WAN or VPN down, Skynet reports etc. Is there such a script that would email me for connections to my OpenVPN server and also email on “attempted” connections with wrong passwords etc? I’ve searched the forum but I didn’t see any unless I had the wrong search syntax.
Thanks
 

Yota

Senior Member
You can add the following content in the "Custom Configuration" of the OpenVPN server:
client-disconnect /jffs/scripts/your_notification_script
client-connect /jffs/scripts/your_notification_script

However, according to the manual, it will not run the script when a client that enters the wrong password tries to connect.
Read more: https://openvpn.net/community-resources/reference-manual-for-openvpn-2-4/
 

sone

Occasional Visitor
Saweet! I didn't realize you could add the custom config scripts like that. Thank you so much for this!
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top