I have it like this.
/etc/openvpn
-rwxrwxrwx 1 root root 216 May 8 2018 down.sh
-rwxrwxrwx 1 root root 216 May 8 2018 up.sh
just note: if you run openvpn instance under some non-root account, you have to change also the ownership (at least on group level. chmod root:nobody ./down.sh
) . And also such user must have shell allowed/defined. So in case you use nobody:nogroup at use, that is usually with no-shell …But in default setup (you just used Foris) this is not case …
Also if you change /etc/config/openvpn
, you have to restart the service to apply it ( /etc/init.d/openvpn restart
).
ad_script: not only down.sh/up.sh, but you have to have rights to use “create_notification” and “notifier” tools. You can make it dummy just write the “message” to some file instead of sending it via notification.
aside i would increase verbosity of logging and log to extra file and inspect it …
you can do that on client side as well …