On 2/13/2024 1:13 PM, Peter Davis via Openvpn-users wrote:
Hello,
1- Is there a way to report when clients connect and disconnect?
2- Is it possible to notify the connection of a specific client to the
server through email?
On the server, you can use the client-connect/disconnect config. Just
fire whatever script you want from there to do whatever notification you
want. Various environment vars get populated (e.g. X509_0_CN) that you
can save as needed and tune your notifications to match what you need.
client-connect "/usr/local/etc/openvpn/connect.sh"
client-disconnect "/usr/local/etc/openvpn/disconnect.sh"
---Mike
Thank you.
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users