Re: Client history

Peter Davis via Openvpn-users <[email protected]>
Newsgroups gmane.network.openvpn.user
Message-ID <8fNkttKkh1pJxCwZg4BXLU1ETsYo9dTo415eYddGkpOQ9BugFCDGw-4vRl55phD2XWAcD6FJJk1vdkHtTJnmsDwjH6ctrpj68rvl4xhREr0=@proton.me>
> On Friday, February 23rd, 2024 at 10:58 AM, Gert Doering <[email protected]> wrote:

> Hi
> 
> On Fri, Feb 23, 2024 at 07:05:46AM +0000, Peter Davis wrote:
> 
> > log_file="/tmp/Connections.log"
> 
> 
> Don't use /tmp in systemd environments - that was bad advice by one of
> the other posters. Systemd likes to do per-service /tmp directories,
> so your log file is likely somewhere in /tmp/systemd-private-.../tmp/
> 
> gert
> --
> "If was one thing all people took for granted, was conviction that if you
> feed honest figures into a computer, honest figures come out. Never doubted
> it myself till I met a computer with a sense of humor."
> Robert A. Heinlein, The Moon is a Harsh Mistress
> 
> Gert Doering - Munich, Germany [email protected]

Hi,
Thanks again.
You right. Logs are under "/tmp/systemd-private-0b76fd773c1b491090b475708960936b-openvpn\@server.service-kEyUKj/tmp/Connections.log".

Why is nothing written to the file when I create it in the "/var/log/openvpn directory"?

# ls -l /var/log/openvpn/
total 40
-rw-r--r-- 1 root root     0 Feb 23 10:16 Connections.log
-rw------- 1 root root   603 Feb 23 11:41 openvpn-status.log
-rw------- 1 root root 30242 Feb 23 11:40 openvpn.log
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.