Hi, I am using FreeBSD 12.1-RELEASE-p3 as security/openvpn server.
I configured this in order to keep very old data about security/openvpn accesses:
and it works fine.
I would like to log accounting too (I mean: bytes received/bytes sent), and it this is logged in /var/log/openvpn/openvpn-status.log.
The problem is: it seems that such file is re-created every time openvpn(8) service is restarted.
I would like to have it in "append" mode, so I can configure
How can I do this?
Thank you
My configuration:
I configured this in order to keep very old data about security/openvpn accesses:
Code:
/var/log/openvpn/openvpn.log root:network 640 72 * $M1D0 JC
and it works fine.
I would like to log accounting too (I mean: bytes received/bytes sent), and it this is logged in /var/log/openvpn/openvpn-status.log.
The problem is: it seems that such file is re-created every time openvpn(8) service is restarted.
I would like to have it in "append" mode, so I can configure
newsyslog
to rotate it regularly.How can I do this?
Thank you
My configuration:
Code:
local 192.168.1.100
port 1194
proto udp
dev tun
ca /usr/local/etc/openvpn/keys/ca.crt
cert /usr/local/etc/openvpn/keys/server.crt
key /usr/local/etc/openvpn/keys/server.key # This file should be kept secret
dh /usr/local/etc/openvpn/keys/dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
tls-auth ta.key 0 # This file is secret
cipher AES-256-CBC
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
verb 3
explicit-exit-notify 1
remote-cert-tls client