Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

Clientconnect is serverwide config which helps sending email out or executing any script while connection is triggered.

client-connect /etc/openvpn/scripts/

#Send an email when a client connects with today's time and date
NOW="$(date +"%H:%M:%S - %Y-%m-%d")"

mysql -uxxxxx -pxxxxxxx -e "INSERT INTO vpn_connect.vpn_audit (user, IP, port, mtu, verification, date, triggerType, sessionStart, sessionDuration, bytesSent, bytesRecieved, sessionEnd) VALUES ('$common_name', '$trusted_ip', '$trusted_port', '$tun_mtu', '$password', '$NOW', 'clientConnect', '$NOW', 'NA', '0', '0', 'NA')"

/usr/sbin/sendmail <