Where are the logs for OpenVPN stored?

tep47
Posts: 7
Joined: Mon Dec 08, 2008 2:19 pm

Where are the logs for OpenVPN stored?

Postby tep47 » Tue Jan 13, 2009 9:47 am

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.

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Where are the logs for OpenVPN stored?

Postby cpg » Tue Jan 13, 2009 1:19 pm

i think it puts info messages in two places:

Code: Select all

/var/log/openvpn-status.log
and

Code: Select all

/var/log/messages
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!
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

tep47
Posts: 7
Joined: Mon Dec 08, 2008 2:19 pm

Re: Where are the logs for OpenVPN stored?

Postby tep47 » Tue Jan 13, 2009 8:07 pm

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.

Who is online

Users browsing this forum: No registered users and 20 guests