Re: Client history

mike tancsa <[email protected]>
Newsgroups gmane.network.openvpn.user
Message-ID <[email protected]>
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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openvpn-users

_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.