Updated File locations for Log files in Server.conf
This commit is contained in:
parent
526cd748a7
commit
d62213ddd9
1 changed files with 3 additions and 4 deletions
|
|
@ -842,12 +842,11 @@ ncp-ciphers $CIPHER
|
||||||
tls-server
|
tls-server
|
||||||
tls-version-min 1.2
|
tls-version-min 1.2
|
||||||
tls-cipher $CC_CIPHER
|
tls-cipher $CC_CIPHER
|
||||||
status /var/log/openvpn/status.log
|
status /var/log/openvpn/status.log 20
|
||||||
verb 3" >> /etc/openvpn/server.conf
|
verb 3" >> /etc/openvpn/server.conf
|
||||||
|
|
||||||
#Creating log files for Openvpn
|
#Creating log files for Openvpn
|
||||||
echo "status /var/log/openvpn-status.log 20
|
echo "status-version 3" >> /etc/openvpn/server.conf
|
||||||
status-version 3" >> /etc/openvpn/server.conf
|
|
||||||
echo "log-append /var/log/openvpn.log" >> /etc/openvpn/server.conf
|
echo "log-append /var/log/openvpn.log" >> /etc/openvpn/server.conf
|
||||||
|
|
||||||
# Create log dir
|
# Create log dir
|
||||||
|
|
@ -1266,7 +1265,7 @@ printf "\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
function showclients() {
|
function showclients() {
|
||||||
STATUS_LOG="/var/log/openvpn-status.log"
|
STATUS_LOG="/var/log/openvpn/status.log"
|
||||||
|
|
||||||
if [ ! -f "${STATUS_LOG}" ]; then
|
if [ ! -f "${STATUS_LOG}" ]; then
|
||||||
echo "The file: $STATUS_LOG was not found!"
|
echo "The file: $STATUS_LOG was not found!"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue