OpenWrt Forum Archive

Topic: How to do logging with openvpn?

The content of this topic has been archived on 7 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

As per an earlier post, I have an file called /etc/init.d/S60openvpn which contains the statement to run openvpn.

Since I have verbosity set to 3, I have lots of output. Where does this go? Could I mount a windows disk and direct the output to a windows disk? Is there a better way? This might not work too well if that windows machine is not booted when the router reboots.

Thanks,
Siegfried

syslog is your friend.

Greets, Alex

in conf file:

verb 3
log /var/openvpn.log
status /var/openvpn.status

/var is ramdisk, so it can take quite a bit of log. File is truncated every restart of openvpn. When you got everything the way you want, you better turn down verb.

The discussion might have continued from here.