How to disable all logging for your OpenVPN server
James Ensor•
You may not wish to store logs for your OpenVPN server. You can disable logging on your server through the OpenVPN server.conf file
vim /etc/openvpn/server/server.confEnsure the config includes the following:
verb 0log /dev/null
status /dev/nullWhat do each of these do?
- verb 0 sets log verbosity to level to only fatal errors
- log and status immediately discards what is written on linux (effectively a black hole)
Restart your OpenVPN server.
systemctl restart openvpn-server@server.service