Skip to content

Instantly share code, notes, and snippets.

@supermarsx
Last active April 27, 2024 22:02
Show Gist options
  • Save supermarsx/c4b25ef9e66d4a3966d063c898c227f5 to your computer and use it in GitHub Desktop.
Save supermarsx/c4b25ef9e66d4a3966d063c898c227f5 to your computer and use it in GitHub Desktop.
Yealink Phone OpenVPN configuration

.tar archive structure

phone.tar

| `vpn.cnf` main configuration
| `keys` keys folder
 \
  | `ca.crt` CA certificate
  | `phonecert.crt` Phone certificate
  | `phonekey.key` Phone key
  | `ta.key` easy rsa generated key

vpn.cnf file

client
nobind
dev tun
remote-cert-tls server

remote REMOTEHOST REMOTEPORT udp

ca /config/openvpn/keys/ca.crt
cert /config/openvpn/keys/phonecert.crt
key /config/openvpn/keys/phonekey.key

key-direction 1
tls-auth /config/openvpn/keys/ta.key
redirect-gateway def1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment