Page 1 of 1

Disable SoftEther server_log

Posted: Thu Nov 01, 2018 10:33 pm
by cmd wh0ami
Is it possible to disable the server_log @ "/usr/local/vpnserver/server_log"? If so, how?

Re: Disable SoftEther server_log

Posted: Fri Nov 02, 2018 5:12 pm
by cmd wh0ami
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?

Re: Disable SoftEther server_log

Posted: Sat Nov 03, 2018 2:20 am
by cmd wh0ami
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