PDA

View Full Version : [ViX_Misc] How to enable OpenVPN log feature?



MarsArtis
10-02-14, 19:22
If Install OpenVPN from seed I can see on the VIX gui that a log menu is avilable.
But even after many days of use no log is created.

Is there a way to enable logging for openvpn on vix? And where should it store the log file?

rossi2000
10-02-14, 20:21
you need to enable logging in openvpn.

in your conf file you can use these options:-

status /etc/openvpn/openvpn-status.log
log /etc/openvpn/openvpn.log
log-append /etc/openvpn/openvpn.log

this is on linux but on your box id probably save the log to usb drive.

MarsArtis
10-02-14, 21:08
you need to enable logging in openvpn.

in your conf file you can use these options:-

status /etc/openvpn/openvpn-status.log
log /etc/openvpn/openvpn.log
log-append /etc/openvpn/openvpn.log

this is on linux but on your box id probably save the log to usb drive.

Thx for your tip.
But looking at what you wrote I'd rather say that the log path will write in etc/... so in flash.
Am I wrong?

MarsArtis
10-02-14, 21:17
@rossi2000

can you explain me please what are status and log-append for?

rossi2000
11-02-14, 00:17
Thx for your tip.
But looking at what you wrote I'd rather say that the log path will write in etc/... so in flash.
Am I wrong?


yes thats off debian not an STB. ideally you want to change the log location to /media/usb on your STB.


# Output a short status file showing
# current connections, truncated
# and rewritten every minute.
status openvpn-status.log

# By default, log messages will go to the syslog (or
# on Windows, if running as a service, they will go to
# the "\Program Files\OpenVPN\log" directory).
# Use log or log-append to override this default.
# "log" will truncate the log file on OpenVPN startup,
# while "log-append" will append to it. Use one
# or the other (but not both).
;log openvpn.log
;log-append openvpn.log


OpenVPN DOCS:-
http://openvpn.net/index.php/open-source/documentation/howto.html