[How-to] Set up VPN on Yealink Phone
Some Yealink phones allow VPN connection with the FreePBX server. Here we will describe how to set up VPN connection between FreePBX and Yealink Phone. At the time this article was written, I used FreePBX 15.0.16.38 and Yealink T46S with Firmware Version 66.84.0.80
Step-by-step guide
Enable VPN Server in FreePBX
Create VPN Client
Download the client files: sysadmin_ca.crt, sysadmin_client1.conf, sysadmin_client1.crt, sysadmin_client1.key, and sysadmin_client1.ovpn.
Open a text editor and create a file and name it `vpn.cnf` and put the following:
client
dev tun
proto udp
remote [SERVER_IP]
port [SERVER_PORT]
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
key-direction 1
cipher AES-128-CBC
auth SHA256
comp-lzo
verb 3<ca>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</ca>
<cert>
Certificate:
...
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----
</key>
Compress the file to TAR.
In the Yealink phone go to Network >> Advanced >> Upload VPN Config >> Browse the TAR file >> Click Upload >> then Click Enable >> Confirm.
Go back to FreePBX VPN Server to confirm the connection of the phone
Related articles
FreePBX VPN Setup from FreePBX wiki