Re: Client history
Peter Davis via Openvpn-users <[email protected]>
| Newsgroups | gmane.network.openvpn.user |
|---|---|
| Message-ID | <i-o44aCEc2qGCermVin6_CiCC-dLJs0KmgwzK2D8BDSyLmE_oTqAk_LoS_LgD_oDXw2dGzb132mtnmXWSq4dTd8fSbBHzDNLF6ivsmDY25o=@proton.me> |
> On Wednesday, February 21st, 2024 at 5:18 PM, Bo Berglund <[email protected]> wrote: > On Wed, 21 Feb 2024 11:04:48 +0000, Peter Davis via Openvpn-users > [email protected] wrote: > > > Hello, > > I use Debian. I used "bash" instead of "sh": > > > > # bash script-events.sh > > script-events.sh: line 6: [: ==: unary operator expected > > > > I changed "[" to "[[": > > > > # bash script-events.sh > > # > > > > Seems OK? > > > You also need to change "]" to "]]"... > > https://www.baeldung.com/linux/bash-single-vs-double-brackets > > > -- > Bo Berglund > Developer in Sweden > > > > _______________________________________________ > Openvpn-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/openvpn-users Hello, Sure, I changed it too. I added the script in the "client-connect" section, then I created a file called "Connections.log" under the "/var/log/openvpn/" directory and changed the "LOG_FILE" address as follows: LOG_FILE="/var/log/openvpn/Connections.log" I restarted the OpenVPN service and connected to the OpenVPN server with a client. I checked the file, but it was empty and nothing was registered. What is wrong?