Re: Client history

Peter Davis via Openvpn-users <[email protected]>
Newsgroups gmane.network.openvpn.user
Message-ID <EGOg5NaKOdhzl0tXApYITKxhoF5Z8UmHy6p5bvwY6NuIf_d6kSSbQ-dtY-mQJDd2NAOj-2ghKZSud8xcI4m7RAciv-1Ujua79GdlyuAJ4AM=@proton.me>
> On Monday, February 26th, 2024 at 5:06 PM, Bo Berglund <[email protected]> wrote:

> 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
> 
> 
> 
> _______________________________________________
> Openvpn-users mailing list
> [email protected]
> 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?
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.