Inside /etc/openvpn/server.conf i have:
port 1194
proto udp
dev tun
sndbuf 0
rcvbuf 0
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-auth ta.key 0
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
cipher AES-256-CBC
comp-lzo
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem
note the line:
status openvpn-status.log
i am curious if and how i can disable this log file being used/written?
In the meantime i did:
$ sed -i '/openvpn-status.log/d' /etc/openvpn/server.conf;sed -i '/verb /d' /etc/openvpn/server.conf;echo -e "log /dev/null\nstatus /dev/null\nverb 0" >> /etc/openvpn/server.conf
$ service openvpn restart
first comand deletes:
status openvpn-status.log
verb 3
and adds:
log /dev/null
status /dev/null
verb 0
Is it all needed and correct?
Also i wanted to ask for what functions is this file necessary by OpenVPN server? Thank you