client-connect/client-disconnect scripts bypassed/overwritten
-
SG-3100
23.01-RELEASE (arm)I created two scripts to email me when a client connects/disconnects, which has been discussed here and other forums before... However when I add the following lines to "Custom Options" int he server config, it fails:
client-connect /root/notify.sh
client-disconnect /root/disconnect.shLooking at the logs, those lines are bypassed when the openvpn server is started/restarted because those lines are appended to openvpn's config, further up in the config are these lines which get processed first:
client-connect /usr/local/sbin/openvpn.attributes.sh
client-disconnect /usr/local/sbin/openvpn.attributes.shI tried to just edit those lines but they get overwritten on start/restart. I am stuck, any help would be greatly appreciated!