Results 1 to 3 of 3
  1. #1
    Newbie Hypnotoad's Avatar
    Join Date
    Jul 2008
    Posts
    5

    Default Show date & time in OpenVPN log

    I'm on UT6.0.1 stand-alone and mostly loving it. However, one issue has come up:

    I am on the lookout for a connection attempt from a laptop that was stolen from one of our users. The laptop is running Ubuntu and has been configured to automatically initiate its VPN connection. Therefore, I am standing by to supply the police with the source IP address when it appears in the OpenVPN log when the thief connects to the internet for the first time.

    Now the problem: it may be very important to note the exact time of the connection, but the new interface appears not to supply the connect/disconnect time as it used to do. Is there any way to restore that functionality? Or if not, where may I find the raw OpenVPN log file?

    Clarification: The OpenVPN log shows date, of course, but no longer shows the time. C'mon, guys, show me some love here...

    Thanks in advance to all you groovy UT cats.
    Last edited by Hypnotoad; 01-06-2009 at 02:28 PM. Reason: clarification of question

  2. #2
    Newbie Hypnotoad's Avatar
    Join Date
    Jul 2008
    Posts
    5

    Default

    This is NOT an insignificant issue. Knowing the exact connect/disconnect times for VPN (as opposed to just the date of connection) is potentially crucial in troubleshooting connection issues as well as for forensic purposes.

    I have no idea why this functionality was removed in the new version, but I believe that it was a major oversight. Someone PLEASE respond to this thread!!!!

  3. #3
    Untangle Ninja sky-knight's Avatar
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Posts
    16,913

    Default

    Sorry man that took some digging...

    Get into the terminal and use the following command.

    Code:
    echo "select * from n_openvpn_connect_evt;" | psql -U postgres uvm > /tmp/openvpn_connections.txt
    That will put all the raw database stuff into a text file for you to look at manually. It has a full time and date stamp of each connection.

    If you don't want to output the stuff to a file and instead just want to look at it on the screen take off everything after the > and do...

    Code:
    echo "select * from n_openvpn_connect_evt;" | psql -U postgres uvm
    Rob Sandling, BS:SWE, MCP
    Intouch Technology
    Phone: 480-272-9889
    rob@intouchtechllc.com

    UntangleAppliances.com
    Phone: 866-794-8879

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO 3.6.0 PL2