How to Disable Logs in OpenVPN for a Logless Vpn

How to Disable Server Logs in OpenVPN to Keep Your Internet Traffic Secure and Anonymous

Create A Logless VPN

Create A Logless VPN

Have you ever wanted to start up your personal VPN and make sure no logs are kept? This article will show you a simple series of Linux commands and FTP options that will help you achieve creating a logless VPN. This Tutorial applies to creating an OpenVPN server connection only, which you can use in the OpenVPN client found on the OpenVPN website here: https://openvpn.net/index.php/open-source/downloads.html

Logless VPN Prerequisites for recommended SSH method:

  1. A Linux machine running OpenVPN on Centos 5 or 6
  2. Root access to the server
  3. An SSH connection

Logless VPN Prerequisites for FTP method:

  1. A Linux machine running OpenVPN on Centos 5 or 6
  2. Root access to the server
  3. An FTP connection

Method 1: SSH into OpenVPN Server

Once you have SSH setup and running with your Centos 5 or 6 based OpenVPN installation, you can run the following command to access the server file

nano /etc/openvpn/server.conf

At the end of the config file simply add the next two lines, and it will disable logging so that you will have a logless VPN.

log /dev/null
status /dev/null

After adding, push ctrl+x to save and restart the OpenVPN service

service openvpn restart

Once all steps are completed, your VPN connection will be anonymous, secure and you will have a logless VPN.

Method 2: FTP into Server to Disable Logs

Open up your server via FTP and go to and edit /etc/openvpn/server.conf

Add these to the end of the file:

log /dev/null

status /dev/null

Also, change verb 3 to verb 0 if you want to completely disable logging, including local logging for troubleshooting. (Not recommended)

Then you will need to restart OpenVPN with Putty or VNC

“service openvpn restart”

Once this is complete, you will have a logless VPN. If you change Verb 3 to Verb 0, it will stop all logs including connection logs in the local client. Not recommended if you want to troubleshoot issues in the future.

 

You may also like...