Disable SoftEther server_log

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
cmd wh0ami
Posts: 125
Joined: Sun Jul 16, 2017 6:58 pm

Disable SoftEther server_log

Post by cmd wh0ami » Thu Nov 01, 2018 10:33 pm

Is it possible to disable the server_log @ "/usr/local/vpnserver/server_log"? If so, how?
VPN Discord invite: https://discord.gg/QByKXA9

cmd wh0ami
Posts: 125
Joined: Sun Jul 16, 2017 6:58 pm

Re: Disable SoftEther server_log

Post by cmd wh0ami » Fri Nov 02, 2018 5:12 pm

I tried dropping the privileges on the server_log dir...

Code: Select all

drwx------. 2 root root    4096 Nov  2 01:16 server_log

Code: Select all

chmod 600 /usr/local/vpnserver/server_log

Code: Select all

drw-------. 2 root root    4096 Nov  2 15:47 server_log
But since vpnserver is in the root dir it doesn't prevent SoftEther from making server logs.

How would I go about redirecting the logs to dev/null?
VPN Discord invite: https://discord.gg/QByKXA9

cmd wh0ami
Posts: 125
Joined: Sun Jul 16, 2017 6:58 pm

Re: Disable SoftEther server_log

Post by cmd wh0ami » Sat Nov 03, 2018 2:20 am

Ok, I figured out how to disable the server_log

Dropping permissions doesn't work... At least not for me.

I was able to disable it by protecting the directory from root by "change attribute & adding immutable"

Code: Select all

chattr +i server_log

Code: Select all

usr/local/vpnserver
[root@raspberrypi vpnserver]# chattr +i server_log
[root@raspberrypi vpnserver]# service vpnserver restart
Stopping the SoftEther VPN Server service ...
SoftEther VPN Server service has been stopped.
The SoftEther VPN Server service has been started.
[root@raspberrypi vpnserver]# cd server_log
[root@raspberrypi server_log]# ls
[root@raspberrypi server_log]# cd -
/usr/local/vpnserver
[root@raspberrypi vpnserver]# chattr -i server_log
[root@raspberrypi vpnserver]# service vpnserver restart
Stopping the SoftEther VPN Server service ...
SoftEther VPN Server service has been stopped.
The SoftEther VPN Server service has been started.
[root@raspberrypi vpnserver]# cd server_log
[root@raspberrypi server_log]# ls
vpn_20181103.log
Then to remove the protection if you want to save logs again

Code: Select all

chattr -i server_log
VPN Discord invite: https://discord.gg/QByKXA9

Post Reply