OpeVPN log connecting client IPs

Posted by TossUser on Server Fault See other posts from Server Fault or by TossUser
Published on 2014-06-08T12:57:39Z Indexed on 2014/06/08 15:29 UTC
Read the original article Hit count: 167

Filed under:
|
|

I looking for the best solution to log all connecting client's ip to either a text file or a database who logs into my VPN server. Under the IP I mean the public WAN IP on the internet where they are connecting from.

A hack could definitely be to make the openvpn server log to a separate logfile and run logtail periodically to extract the necessary information. So the database I want to build would look like:

  Client_Name | Client_IP    | Connection_date
  roadwarr1   | 72.84.99.11  | 03/04/14 - 22:44:00 Sat

Please don't recommend me to use the commercial Openvpn Access Server. That's not a real solution here. If the disconnection date could be determined that would be even better so I could see how long a client was connected and from where!

Thank you

© Server Fault or respective owner

Related posts about security

Related posts about logging