wrong "connected since" time in Server

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
dremwilly
OpenVpn Newbie
Posts: 1
Joined: Sat Sep 10, 2011 7:41 am

wrong "connected since" time in Server

Post by dremwilly » Sat Sep 10, 2011 8:18 am

Hi,
we use the Access Server version 1.8.3 on a Debian based system. Everthink works fine but the Server show me always a wrong connection time:
on the Current user list on the WEB page of the server:
Connected Since Sat Sep 10 08:11:57 2011

and the Client (on MAC/Windows/Linux) show the right time:
verbunden: Samstag, 10. September 2011 10:11:59

any idea? The date/time of the Server and Clients are OK (same time zone - time sync with ntp)
new info:
looks like a 2 hour offset after install the virtual network adapter?!?

here what i found inside the log file:
the time changed after this line (-2hours)

Code: Select all

2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 10:38:45 2011 /sbin/ifconfig as0t0 10.8.0.1 netmask 255.255.255.0 mtu 1500 broadcast 10.8.0.255'
Here more info before and after the line:

Code: Select all

2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 10:38:45 2011 OpenVPN 2.1.8 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on Jul 27 2011'
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 10:38:45 2011 MANAGEMENT: client_uid=0'
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 10:38:45 2011 MANAGEMENT: Connected to management server at /usr/local/openvpn_as/etc/sock/omisock-VKNdcew7SX'
2011-09-10 10:38:45+0200 [-] (Port None Closed)
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 10:38:45 2011 MANAGEMENT: CMD 'state on''
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 10:38:45 2011 MANAGEMENT: CMD 'echo on''
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 10:38:45 2011 MANAGEMENT: CMD 'bytecount 300''
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 10:38:45 2011 MANAGEMENT: CMD 'env-filter 1''
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 10:38:45 2011 MANAGEMENT: CMD 'hold off''
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 10:38:45 2011 MANAGEMENT: CMD 'hold release''
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 10:38:45 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables'
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 10:38:45 2011 NOTE: --fast-io is disabled since we are not using UDP'
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 10:38:45 2011 Diffie-Hellman initialized with 1024 bit key'
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 10:38:45 2011 Control Channel Authentication: tls-auth using INLINE static key file'
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 10:38:45 2011 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication'
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 10:38:45 2011 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication'
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 10:38:45 2011 Socket Buffers: R=[87380->200000] S=[16384->200000]'
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 10:38:45 2011 TUN/TAP device as0t0 opened'
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 10:38:45 2011 TUN/TAP TX queue length set to 200'
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 10:38:45 2011 MANAGEMENT: >STATE:1315643925,ASSIGN_IP,,10.8.0.1,'

-------------------------------------------------

2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 10:38:45 2011 /sbin/ifconfig as0t0 10.8.0.1 netmask 255.255.255.0 mtu 1500 broadcast 10.8.0.255'
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 08:38:45 2011 chroot to '/dev/shm/openvpn_as' and cd to '/' succeeded'

---------------------------------------------------

2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 08:38:45 2011 GID set to openvpn_as'
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 08:38:45 2011 UID set to openvpn_as'
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 08:38:45 2011 Listening for incoming TCP connection on 10.1.12.15:1194'
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 08:38:45 2011 TCPv4_SERVER link local (bound): 10.1.12.15:1194'
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 08:38:45 2011 TCPv4_SERVER link remote: [undef]'
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 08:38:45 2011 PORT SHARE PROXY: proxy starting'
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 08:38:45 2011 MULTI: multi_init called, r=4096 v=4096'
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 08:38:45 2011 MULTI: TCP INIT maxclients=2048 maxevents=2052'
2011-09-10 10:38:45+0200 [-] OVPN 0 OUT: 'Sat Sep 10 08:38:45 2011 Initialization Sequence Completed'
thank you for the help!

undejj
OpenVpn Newbie
Posts: 5
Joined: Mon Sep 12, 2011 12:49 pm

Re: wrong "connected since" time in Server

Post by undejj » Tue Sep 13, 2011 12:51 am

I also have this issue with time discrepancy. All devices on our network sync to the same time source and all devices have the same time. Even when I login via CLI to the OVPNAS server, the time is correct. However, the "connected since" time is different by four hours. Where does this time setting come from?

cd084
OpenVpn Newbie
Posts: 1
Joined: Fri Nov 25, 2011 9:26 pm

Re: wrong "connected since" time in Server

Post by cd084 » Fri Nov 25, 2011 9:38 pm

Has anybody an answer to this problem? I to have the same issue with an approx +9 hour .
We are currently @ Openvpn 1.8.0 on Centos 5.6. The access server currently sync's NTP every 2min.

Post Reply