> On Monday, February 26th, 2024 at 5:06 PM, Bo Berglund 
> <bo.bergl...@gmail.com> wrote:

> On Mon, 26 Feb 2024 10:07:14 +0000, Peter Davis via Openvpn-users
> openvpn-users@lists.sourceforge.net wrote:
> 
> > Hi,
> > Thanks again.
> > I changed "LOG_FILE" to LOG_FILE="/tmp/Connections.log" and executed the 
> > script:
> > 
> > # ./script-events.sh
> > #
> > # cat /tmp/Connections.log
> > 2024-02-26 13:32:19 - CommonName connected with IP 192.168.129.253
> > 
> > The script worked, but where is the problem!
> 
> 
> Your description seems a bit odd, you should have started the test script
> testlogging, which in turn calls the script-events.sh script...
> 
> > Test script testlogging:
> > -----------------------
> > #!/bin/bash
> > export script_type="client-connect"
> > export common_name="CommonName"
> > export trusted_ip="192.168.129.253"
> > ./server-events.sh <== HERE a call is made to the main script!
> > exit 0
> > ------------------------
> 
> 
> And you are way too unspecific since "where is the problem" gives nothing to
> help you by...
> 
> 
> --
> Bo Berglund
> Developer in Sweden
> 
> 
> 
> _______________________________________________
> Openvpn-users mailing list
> Openvpn-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openvpn-users

Hello,
I did the test script:

# #!/bin/bash
# export script_type="client-connect"
# export common_name="CommonName"
# export trusted_ip="192.168.129.253"
# ./server-events.sh

The "LOG_FILE" in "server-events.sh" file is LOG_FILE="/tmp/Connections.log".

After it, the "Connections.log" file is created and its contents are as follows:

# cat /tmp/Connections.log 
2024-02-28 16:16:51 - CommonName connected with IP 192.168.129.253

So, why is the script not working in OpenVPN?


_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to