Source > https://whattheserver.me/softether-vpn-log-purging/
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.
https://www.softether.org/4-docs/1-manu ... 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 > https://whattheserver.me/softether-scri ... ogpurge.sh
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.
Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
1 post • Page 1 of 1