[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:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DHCP not working on T26P when OpenVPN is enabled.
Author Message
mfvianna Offline
Junior Member
**

Posts: 1
Joined: Jul 2016
Reputation: 0
Post: #11
RE: DHCP not working on T26P when OpenVPN is enabled.
(02-24-2016 09:59 PM)pdugas Wrote:  I'm getting bit by this little nasty as well. Can't reliably switch from using a FQDN to an IP because our VPN server is on a dynamic circuit. Need a fix for this ASAP please.

Oh, I'm using a T22P running the current 7.73.0.50 firmware. Pls fix.

I had to fight with this bug for a few hours before getting into an acceptable workaround.

The bug seems to happen because OpenVPN tries to resolve the FQDN before the phone gets its IP and for some reason it then avoids the phone to get the IP, even if we tell OpenVPN to not attepmt indefinitely (i.e., resolv-retry infinite).

The workaround that worked for me is to fool OpenVPN in the first attempt so that the next time, when it retries 5 seconds later, the network is already available:

Here is the trick:

Where you define your remote in the vpn.cnf like this:
remote whatever-fqdn.you.use port-number

You add a line before it containing a loopback interface reference:
remote 127.0.0.1 any-port-number
remote whatever-fqdn.you.use port-number

For obvious reasons the first server will fail and after 5 secs, OpenVPN will try the second. At this point, the network will already be functional and the FQDN resolution will work.

Hope it works for you too.
(This post was last modified: 07-03-2016 04:58 AM by mfvianna.)
07-03-2016 04:42 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Messages In This Thread
RE: DHCP not working on T26P when OpenVPN is enabled. - mfvianna - 07-03-2016 04:42 AM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  MWI not working with Fritzbox frappy 0 849 10-05-2020 08:34 PM
Last Post: frappy
  Solved Openvpn.tar creating the right size file compsos 3 2,164 08-20-2020 06:49 AM
Last Post: complex1
  OpenVPN and QoS/TOS roelvanmeer 0 1,671 02-19-2019 09:27 AM
Last Post: roelvanmeer
  OpenVPN Timeout connecting p2xt 3 4,250 07-13-2018 07:37 PM
Last Post: jolouis
  openvpn w52p setup rafael 4 11,215 08-10-2017 02:03 PM
Last Post: indicato
  can't setup openvpn with t48g zzz 8 13,154 07-18-2017 09:04 AM
Last Post: sj
  T42G dhcp issue Neway 1 4,213 06-15-2017 03:01 AM
Last Post: Karl_Yealink
  T46G Hostname not registering on DHCP fraukas 2 7,492 10-27-2016 12:34 AM
Last Post: fraukas
Sad T41P BLF ligth not working goHelpDesk.com 2 5,101 10-15-2016 02:10 AM
Last Post: CWR
  OpenVPN in T27P arcsistemes 1 4,035 07-13-2016 04:50 PM
Last Post: Klaus_Yealink

Forum Jump:


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

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