Where are the logs for OpenVPN stored?
Where are the logs for OpenVPN stored?
I'd like to know where the logs (if any) are stored for OpenVPN on the hda server. I want to see information about who is connecting from where. Thanks.
Re: Where are the logs for OpenVPN stored?
i think it puts info messages in two places:
and
not exactly who and from where, but if you find a place where it's clean (or a script/program/tool to show it), it would be good to incorporate that to show it in the setup area!
Code: Select all
/var/log/openvpn-status.log
Code: Select all
/var/log/messages
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1
Re: Where are the logs for OpenVPN stored?
Thanks for the hints cpg. I found this command worked reasonably well to figure out who authenticated when, and from where:
cat /var/log/messages | grep vpn | grep authentication | grep Username
There might be a more savvy way to do it using regular expressions, but that worked for me. Also, I'm not sure if that catches any authentication failures.
cat /var/log/messages | grep vpn | grep authentication | grep Username
There might be a more savvy way to do it using regular expressions, but that worked for me. Also, I'm not sure if that catches any authentication failures.
Who is online
Users browsing this forum: No registered users and 3 guests