I have a really wired problem with the `client-connect`..
I'm trying to create very simple script called `test.sh`(with +x mode):
Code: Select all
#!/bin/bash
echo "User connected!" > test.log
Code: Select all
script-security 3 system
client-connect /etc/openvpn/test.sh
This very simple script always throws error status 2 for some reason, and prevent me from connection: WARNING: Failed running command (--client-connect): external program exited with error status: 1.
When i'm trying to add `exit 0` at the end, i'm able to connect but it not creates the file.
Does someone have an idea?