[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
[SOLVED-ish] OpenVPN reconnect
Author Message
mo5 Offline
Junior Member
**

Posts: 2
Joined: Feb 2014
Reputation: 0
Post: #1
[SOLVED-ish] OpenVPN reconnect
OpenVPN connection dose not reconnect if remote phone loses connectivity for more than 30 seconds. Are there any vpn.cnf settings or phone setting to have continuously try to reconnect or reboot the phone.



T26p
Firmware Version 6.72.0.25
Hardware Version 4.0.0.38
(This post was last modified: 02-16-2014 02:25 PM by mo5.)
02-11-2014 07:41 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Yealink Support Offline
Administrator
*******

Posts: 2,683
Joined: Dec 2012
Reputation: 25
Post: #2
RE: OpenVPN reconnect
Hi mo5,

Please edit the server.ovpn file with below syntax.
---------------------------
keepalive 20 30
# 20 means that the phone will ping server every 20 seconds, the phone will reconnect server after 30 seconds loosing ping.

----------------------------
02-12-2014 04:07 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
mo5 Offline
Junior Member
**

Posts: 2
Joined: Feb 2014
Reputation: 0
Post: #3
[SOLVED-ish] OpenVPN reconnect
I was able to get it working better with "auth-nocache" and "script-security 2" but not without some caveats.

  1. Dose not to seem clear openvpn 'push "dhcp-option DNS 10.10.0.1"' if connection is dropped resulting in DNS resolve error on reconnect attempts (using domain for remote), removed option as was unnecessary, openvpn only used for phones. May be related to resolv-retry infinite
  2. Dose not seem to reconnect to openvpn if ethernet cable is reseated, it reconnects to openvpn server, log shows "SIGUSR1[soft,ping-restart] received, client-instance restarting" but dose not restart session, phone has to be power cycled.
  3. Dose work if WAN connection is dropped for some amount of time (tested 5 minute drop out) as long as connection between phone and switch/router is maintained


vpn.cnf
Code:
client
proto udp
dev tun
nobind
remote corp.x.com 1194
ca /yealink/config/openvpn/keys/ca.crt
cert /yealink/config/openvpn/keys/phone1.crt
key /yealink/config/openvpn/keys/phone1.key
dh /yealink/config/openvpn/keys/dh2048.pem
cipher AES-128-CBC
reneg-sec 604800
sndbuf 100000
rcvbuf 100000
verb 5
mute 20
keepalive 10 30
auth-nocache
script-security 2
persist-key
persist-tun
float
resolv-retry infinite
auth-retry nointeract
ns-cert-type server
(This post was last modified: 02-16-2014 02:33 PM by mo5.)
02-16-2014 02:21 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Yealink Support Offline
Administrator
*******

Posts: 2,683
Joined: Dec 2012
Reputation: 25
Post: #4
RE: [SOLVED-ish] OpenVPN reconnect
Hi mo5, thanks to your kindly sharing.
02-17-2014 11:10 AM
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
  Passing only LDAP traffic through OPENVPN Commensus 0 2,737 02-23-2022 09:47 PM
Last Post: Commensus
  Configuring OPENVPN with Yealink Commensus 0 3,224 02-23-2022 09:45 PM
Last Post: Commensus
  DHCP not working on T26P when OpenVPN is enabled. LandonL 11 39,966 05-12-2021 10:46 AM
Last Post: 1sae
  Solved Openvpn.tar creating the right size file compsos 3 9,763 08-20-2020 06:49 AM
Last Post: complex1
  OpenVPN and QoS/TOS roelvanmeer 0 5,144 02-19-2019 09:27 AM
Last Post: roelvanmeer
  OpenVPN Timeout connecting p2xt 3 11,627 07-13-2018 07:37 PM
Last Post: jolouis
  openvpn w52p setup rafael 4 20,954 08-10-2017 02:03 PM
Last Post: indicato
  can't setup openvpn with t48g zzz 8 27,087 07-18-2017 09:04 AM
Last Post: sj
  [SOLVED] T46G one way audio on outgoing calls Kamik 3 14,478 08-16-2016 06:22 PM
Last Post: Kamik
  OpenVPN in T27P arcsistemes 1 8,282 07-13-2016 04:50 PM
Last Post: Klaus_Yealink

Forum Jump:


User(s) browsing this thread:

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