diff --git a/HowtoOpenVPN.md b/HowtoOpenVPN.md index 5e83f43a..129b1f0f 100644 --- a/HowtoOpenVPN.md +++ b/HowtoOpenVPN.md @@ -212,6 +212,21 @@ Le service s'active et se démarre ensuite via : # systemctl start openvpn@server.service ~~~ +Rotation des logs, en créant un fichier `/etc/logrotate.d/openvpn` : + +~~~ +/var/log/openvpn.log +{ + weekly + rotate 52 + missingok + notifempty + delaycompress + compress + copytruncate +} +~~~ + ### Serveur sous OpenBSD On autorise la connexion au serveur VPN en modifiant `/etc/pf.conf` :