[YMCS/YDMP Free Trial Program]Yealink would like to offer Free Trial Program of Yealink device management service for our current eligible customers. You can see the details below.
https://www.yealink.com/ydmp-freetrial-2020


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Time and VPN problems
Author Message
FreddyJones Offline
Junior Member
**

Posts: 4
Joined: Nov 2014
Reputation: 0
Post: #1
Time and VPN problems
I am having issues with a T22P running 7.72.0.51 and openvpn. I think I have it narrowed down to a time issue. The phone display shows the current local time, but looking at the what is being logged by syslog the openvpn daemon is using GMT so it thinks it is 6 hours ahead. In the settings I have DHCP time disabled, and the ntp servers are set to us.pool.ntp.org. How do I get openvpn process to use localtime so that it can establish connection?

Any one have any suggestions what I'm doing wrong ?
11-05-2014 12:39 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
James_Yealink Offline
Administrator
*******

Posts: 1,159
Joined: Aug 2014
Reputation: 8
Post: #2
RE: Time and VPN problems
Hi Freddy,

The syslog won't include the GMT time. It will only display a time with 0 timezone.

I think the problem may not related to time.
Would you mind sending us your tar file for a check? You can delete the remote ip address in cnf file or just mark it as xx,

Regards,
James
11-06-2014 09:03 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
FreddyJones Offline
Junior Member
**

Posts: 4
Joined: Nov 2014
Reputation: 0
Post: #3
RE: Time and VPN problems
(11-06-2014 09:03 PM)Yealink_James Wrote:  Hi Freddy,

The syslog won't include the GMT time. It will only display a time with 0 timezone.

I think the problem may not related to time.
Would you mind sending us your tar file for a check? You can delete the remote ip address in cnf file or just mark it as xx,

Regards,
James

Here is a short excerpt from my syslog. These messages came with in 30 seconds of each other at ~ 9:43 localtime:

Nov 7 09:43:53 SIP [439]: SUA <3+error > [000] [Server0]: try reg again after (30) s
Nov 7 15:44:14 phone1 openvpn[445]: TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Nov 7 15:44:14 phone1 openvpn[445]: TLS Error: TLS handshake failed
Nov 7 15:44:14 phone1 openvpn[445]: TCP/UDP: Closing socket

Here is the vpn.cnf, pretty simple:

client
rport 1193
dev tun
remote XXX.XXX.XXX.XXX
tls-client
ca /yealink/config/openvpn/keys/cacert.pem
cert /yealink/config/openvpn/keys/phone1.crt
key /yealink/config/openvpn/keys/phone1.key
pull
verb 5
script-security 2
ping 30
persist-tun
comp-lzo
resolv-retry infinite

Here is the output from the openvpn trying to connect:

Nov 7 15:58:59 phone1 openvpn[445]: TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Nov 7 15:58:59 phone1 openvpn[445]: TLS Error: TLS handshake failed
Nov 7 15:58:59 phone1 openvpn[445]: TCP/UDP: Closing socket
Nov 7 15:58:59 phone1 openvpn[445]: SIGUSR1[soft,tls-error] received, process restarting
Nov 7 15:58:59 phone1 openvpn[445]: Restart pause, 2 second(s)
Nov 7 15:59:01 phone1 openvpn[445]: WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Nov 7 15:59:01 phone1 openvpn[445]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Nov 7 15:59:01 phone1 openvpn[445]: WARNING: file '/yealink/config/openvpn/keys/phone1.key' is group or others accessible
Nov 7 15:59:01 phone1 openvpn[445]: LZO compression initialized
Nov 7 15:59:01 phone1 openvpn[445]: Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Nov 7 15:59:01 phone1 openvpn[445]: Socket Buffers: R=[114688->131072] S=[114688->131072]
Nov 7 15:59:01 phone1 openvpn[445]: Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Nov 7 15:59:01 phone1 openvpn[445]: Local Options String: 'V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Nov 7 15:59:01 phone1 openvpn[445]: Expected Remote Options String: 'V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Nov 7 15:59:01 phone1 openvpn[445]: Local Options hash (VER=V4): '41690919'
Nov 7 15:59:01 phone1 openvpn[445]: Expected Remote Options hash (VER=V4): '530fdded'
Nov 7 15:59:01 phone1 openvpn[445]: UDPv4 link local (bound): [undef]:1194
Nov 7 15:59:01 phone1 openvpn[445]: UDPv4 link remote: XXX.XXX.XXX.XXX:1193
Nov 7 15:59:01 phone1 openvpn[445]: TLS: Initial packet from XXX.XXX.XXX.XXX:1193, sid=994d83a6 57ef8d40
Nov 7 15:59:02 phone1 openvpn[445]: VERIFY OK: depth=1, /C=US
Nov 7 15:59:02 phone1 openvpn[445]: VERIFY OK: depth=0, /C=US

Here is the remainder after the timeout:

Nov 7 16:01:53 phone1 openvpn[445]: TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Nov 7 16:01:53 phone1 openvpn[445]: TLS Error: TLS handshake failed


I can attach to the same VPN connection with a pc without any problems.

Thanks for the help.
(This post was last modified: 11-08-2014 02:50 AM by FreddyJones.)
11-08-2014 12:04 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
James_Yealink Offline
Administrator
*******

Posts: 1,159
Joined: Aug 2014
Reputation: 8
Post: #4
RE: Time and VPN problems
Hi Freddy,

Can you change the cacert.pem to a cacert.crt format and try again?

Regards,
James
11-14-2014 08:08 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
FreddyJones Offline
Junior Member
**

Posts: 4
Joined: Nov 2014
Reputation: 0
Post: #5
RE: Time and VPN problems
(11-14-2014 08:08 PM)Yealink_James Wrote:  Hi Freddy,

Can you change the cacert.pem to a cacert.crt format and try again?

Regards,
James

When I do this It looks like openvpn isn't even trying to run any more. I no longer get any information in the logs about openvpn.
12-03-2014 02:06 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Karl_Yealink Offline
Super Moderator
******

Posts: 673
Joined: Apr 2015
Reputation: 5
Post: #6
RE: Time and VPN problems
(12-03-2014 02:06 AM)FreddyJones Wrote:  
(11-14-2014 08:08 PM)Yealink_James Wrote:  Hi Freddy,

Can you change the cacert.pem to a cacert.crt format and try again?

Regards,
James

When I do this It looks like openvpn isn't even trying to run any more. I no longer get any information in the logs about openvpn.
Hi,

About your T23G issue, I had sent email to you, do you receive? If not, please tell me your email address, I will give you respond.
(This post was last modified: 10-20-2015 01:35 PM by Karl_Yealink.)
10-20-2015 01:34 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Dial-Now fails to recognize time-out braymond 2 10,463 01-31-2023 05:33 PM
Last Post: eddie79it
Exclamation T28P Handset Noise Problems fdtcloud 18 62,719 01-14-2019 04:23 PM
Last Post: dtgriscom
  T21P E2 manual time issue DmitryTsyganov 1 6,597 09-11-2017 07:02 AM
Last Post: Lucia_Yealink
  Wrong date and time ginopilotino 4 12,584 11-03-2015 03:38 PM
Last Post: James_Yealink
Question T26 v6.72 Time zones and DST Lansalot 1 5,983 07-10-2015 02:20 AM
Last Post: Yealink_Michael
  A single T22P not getting correct time jayg30 0 5,933 07-03-2015 09:52 PM
Last Post: jayg30
  Problems T28P+EXP38 Mauro 21 73,650 11-19-2014 09:59 PM
Last Post: Mauro
Bug Local Phonebook problems with XML in x.71.0.149 pavlinic 5 23,703 07-29-2014 08:10 PM
Last Post: dschmid
  2.72.0.50 problems Raffles 10 28,521 05-27-2014 07:04 PM
Last Post: Raffles
  Problems with t20 Frederick 1 6,926 05-27-2013 11:40 AM
Last Post: Yealink Support

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us   Yealink   Return to Top   Return to Content   Lite (Archive) Mode   RSS Syndication