OPNsense Forum

Archive => 19.1 Legacy Series => Topic started by: Gandalf123 on July 01, 2019, 10:24:46 pm

Title: Sending Email when Openvpn client ist connecting
Post by: Gandalf123 on July 01, 2019, 10:24:46 pm
hello,

it is possible in Opnsense to send a email when a Opnvpn User is connecting to the Server? I have see that OPNsense has integratet a Monitor System with Email function, it is possible to create a simple solution with this?

Thank you in Advanced
Gandalf123
Title: Re: Sending Email when Openvpn client ist connecting
Post by: bartjsmit on July 02, 2019, 08:10:30 am
You can run scripts when clients connect or disconnect: https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage

Look into:
script-security 2
client-connect

You need to do this largely in the command line.

Bart...