OpenVPN Logon and Logoff scripts

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
jhaines
OpenVpn Newbie
Posts: 3
Joined: Mon Feb 19, 2018 8:23 am

OpenVPN Logon and Logoff scripts

Post by jhaines » Mon Feb 19, 2018 8:27 am

Hi,

I am trying to implement a login and logoff script that emails me when someone connects to my OpenVPN server but when I add the lines below to my server.conf users are unable to authenticate anymore.

I am using certificate, user account & PAM for two factor authentication,

client-connect /etc/openvpn/statuschange.sh
client-disconnect /etc/openvpn/statuschange.sh
script-security 2

Any thoughts?

Thanks
Julian

Post Reply