SoftEther Log Purging Tutorial

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
Posts: 4
Joined: Sat Jun 09, 2018 5:37 am

SoftEther Log Purging Tutorial

Post by whattheserver » Sat Jun 09, 2018 5:56 am

Source >

Just posting up a cool script I made for ensuring not even server level logs are saved for SoftEther.

In the SoftEther documentation it tells how to disable the logs per VPN hub which we have done, but when doing the initial testing prior to launch we wanted to ensure absolutely no logs would ever be saved which would allow us to identify our users we noticed some without an option to disable. ... ng_Service

“3.10.2 Server Log

The server log is saved under the [server_log] directory. The entire VPN Server operating log is saved in the server log, which saves detailed operating records including event records upon the launch & termination of the VPN Server and when & what type of connections were received. Therefore, subsequent analysis of this log enables the tracing of unauthorized access and the cause of problems.

In addition, copies of each of the Virtual Hubs’ security logs are saved together in the server log so that even if a Virtual Hub Administrator sets the security log not to be saved, it is always saved automatically in the server log. Accordingly, even when the Virtual Hub Administrator does not save the Virtual Hub logs or deletes them, their contents can still be accessed from the VPN Server’s server log.”

So we set about to ensure that would not be possible even if enabled they would forcibly be removed every single minute via cron.

We wrote a bash script to use in a cron. Feel free to use and share if setting up your own SoftEther node this is an awesome easy way to ensure no logs.

Script > ...

The main takeaway is to setup a cron with the below command modified for the path of the softether installation location.

#Delete softether empty log file names
cd /usr/local/vpnserver/; find -name '*.log' -delete

Hope this is helpful.
What The Server- Your Privacy Solution Specialist

Post Reply