Disable SoftEther server_log
-
- Posts: 125
- Joined: Sun Jul 16, 2017 6:58 pm
Disable SoftEther server_log
Is it possible to disable the server_log @ "/usr/local/vpnserver/server_log"? If so, how?
-
- Posts: 125
- Joined: Sun Jul 16, 2017 6:58 pm
Re: Disable SoftEther server_log
I tried dropping the privileges on the server_log dir...
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?
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
How would I go about redirecting the logs to dev/null?
-
- Posts: 125
- Joined: Sun Jul 16, 2017 6:58 pm
Re: Disable SoftEther server_log
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"
Then to remove the protection if you want to save logs again
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
Code: Select all
chattr -i server_log