Latest news from 5wire Networks

How to disable all logging for your OpenVPN server

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.conf

Ensure the config includes the following:

verb 0

log /dev/null

status /dev/null

What 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