Re: Client history

Bo Berglund <[email protected]>
Newsgroups gmane.network.openvpn.user
Message-ID <[email protected]>
On Mon, 26 Feb 2024 10:07:14 +0000, Peter Davis via Openvpn-users
<[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.