New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
How to disable logging on OpenVPN server?
Log files are taking up too much space.
http://hack.training/create-logless-vpn/
https://securityblog.gr/2185/disable-openvpn-logs-in-centos-2/
I have tried these two sites, but I have not. Could not connect to the server. Could you write a sample configuration file?
I'm waiting for your help.
Comments
The below works for me
@simonindia
This is my default config file.
What do I need to change here?
Should this be like this? Thank you. @simonindia
I solve the problem manually. I use the Angristan script. I downloaded the script and changed the contents of 'verb 3' to 'verb 0'.
in continuation..
status
openvpn.log(delete) to /dev/nullI just added it to the bottom.
log /dev/null
'Verb 0' must be at the end.
Save the file.
Thank you for the help. @simonindia
Following 2 commands seems to disable logging.
sed -i '/openvpn-status.log/d' /etc/openvpn/server.conf;sed -i '/verb /d' /etc/openvpn/server.conf;echo -e "log /dev/null\nstatus /dev/null\nverb 0" >> /etc/openvpn/server.conf
service openvpn restart
I've used this tutorial in the past: https://hack.training/create-logless-vpn/
Verb 0 is not good locally as you cannot see your own logs for checking for issues.
Why not just use log rotate?