Yealink Forums
Autoprovision to include OpenVPN Configuration - Printable Version

+- Yealink Forums (http://forum.yealink.com/forum)
+-- Forum: IP Phone Series (/forumdisplay.php?fid=4)
+--- Forum: Auto Provisioning (/forumdisplay.php?fid=14)
+--- Thread: Autoprovision to include OpenVPN Configuration (/showthread.php?tid=33551)



Autoprovision to include OpenVPN Configuration - MattToner - 10-28-2016 09:41 PM

Hi All,

I want to auto provision all of our phones with a VPN configuration.

currently if i upload the tar file and reboot, it works fine, but I cannot get it to do this as part of the auto provision.

I have my (first) auto provision set as follows;

Code:
firmware.url = 10.0.0.1/28.80.0.108.rom
network.vpn_enable = 1
openvpn.url = http://10.0.0.1/$MAC.tar

Now I can see that on the TFTP Server it grabs all the correct files, including the VPN tar configuration, but after it reboots, the VPN is enabled, but the box underneath is blank (it normally says vpn.cnf) and the VPN doesnt come online.

If i browse and upload the tar file, it works fine.

What am I doing wrong?


RE: Autoprovision to include OpenVPN Configuration - Michael_Yealink - 12-10-2016 08:30 AM

hi Matt

would you mind upgrade to the newest firmware and test again :

http://download.support.yealink.com/download?path=upload%2Fattachment%2F2016-11-25%2F6%2F76eee2a5-6ea9-4a71-aefb-f21e15bbdf46%2FT46-28.81.0.20.zip

auto provision sentence :

static.network.vpn_enable =1
static.openvpn.url =

if all the above solution can't solve your issue, please provide us the trace file for future analysis,trace file including pcap file, config bin and syslog file , we need pcap file to check the communication of phone and server side , we need syslog file to know what happened to phone side , and we need config file to check if any configuration is missed, so we need three of them provide at one time.

as the phone will reboot , then it is advised to use a wireshark tool to get the pcap file , for how to download the tool and use it , please refer to the link below :
http://forum.yealink.com/forum/showthread.php?tid=15529

for the syslog, please export it to server side , before phone reboot , you can refer to the guide download from below link :
http://forum.yealink.com/forum/showthread.php?tid=15529

for the config.bin file , please refer to the FAQ below :
http://forum.yealink.com/forum/showthread.php?tid=1319

after you collect all the three files, just send them to me ASAP

let me know if any question

TKS & BR

Michael


RE: Autoprovision to include OpenVPN Configuration - MattToner - 01-05-2017 04:42 PM

Hi Michael,

I have tried on this and the 80 firmware and both have the same results.
it just doesnt seem to add the TAR file to the phone, if i manually log in to the handset, the VPN is enabled, but the box below is empty.

i know that the TAR format is correct, because if i upload the file it then works fine.

I have tried sending the file via HTTP and TFTP, both ways i can see either the file being sent or requested and sent ok to the handset, but it doesnt reboot with the VPN configuration file uploaded.

I can see the following error on the phone syslog;

ATP <3+error > md5 file(/config/openvpn/$MAC.tar.MD5) do not exist


RE: Autoprovision to include OpenVPN Configuration - MattToner - 01-06-2017 12:10 AM

Just an update, i now have this working fine i moved my tar file to a folder named the MAC address of the unit and then change the provisioning link to openvpn.url = 10.0.0.253/$MAC/openvpn.tar


RE: Autoprovision to include OpenVPN Configuration - syadnom - 03-24-2017 04:18 PM

I'd like this also