[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
T20P: VPN/OpenVPN - Just SIP or also RTP?
Author Message
ruiseixas Offline
Junior Member
**

Posts: 34
Joined: May 2013
Reputation: 0
Post: #2
RE: T20P: VPN/OpenVPN - Just SIP or also RTP?
Hi,

Now I realize that the phone isn't using the VPN for even the registration, so, despite it successfully established the OpenVPN connection the phone isn't using it!

I tried 2 configuration files, the first accordingly with the yealink documentation, and the second, that fully works in my PC redirecting all the traffic as expected!

Code:
# Specify that this is a client configuration:
client
# Check whether the server is using a TUN or TAP interface, use the same dev tun
dev tun0
# Check whether the server is using TCP or UDP protocol, use the same here:
proto udp
;proto tcp
# Specify the host name and OpenVPN port of the server:
remote [My Server Address] 1194
# Specify the file names of your certificates and key - these should not
# The path names must be exactly as detailed below:
ca /yealink/config/openvpn/keys/ca.crt
cert /yealink/config/openvpn/keys/client.crt
key /yealink/config/openvpn/keys/client.key

# The rest of these settings should be unchanged:
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
ns-cert-type server
comp-lzo
verb 3
mute 10


Code:
##############################################
# Sample client-side OpenVPN 2.0 config file #
# for connecting to multi-client server.     #
#                                            #
# This configuration can be used by multiple #
# clients, however each client should have   #
# its own cert and key files.                #
#                                            #
# On Windows, you might want to rename this  #
# file so it has a .ovpn extension           #
##############################################

# Specify that we are a client and that we
# will be pulling certain config file directives
# from the server.
client

# Use the same setting as you are using on
# the server.
# On most systems, the VPN will not function
# unless you partially or fully disable
# the firewall for the TUN/TAP interface.
;dev tap0
dev tun0

# Windows needs the TAP-Win32 adapter name
# from the Network Connections panel
# if you have more than one.  On XP SP2,
# you may need to disable the firewall
# for the TAP adapter.
;dev-node MyTap

# Are we connecting to a TCP or
# UDP server?  Use the same setting as
# on the server.
;proto tcp
proto udp

# The hostname/IP and port of the server.
# You can have multiple remote entries
# to load balance between the servers.
remote [My Server Address] 1194
;remote my-server-2 1194

# Choose a random host from the remote
# list for load-balancing.  Otherwise
# try hosts in the order specified.
;remote-random

# Keep trying indefinitely to resolve the
# host name of the OpenVPN server.  Very useful
# on machines which are not permanently connected
# to the internet such as laptops.
resolv-retry infinite

# Most clients don't need to bind to
# a specific local port number.
nobind

# Downgrade privileges after initialization (non-Windows only)
;user nobody
;group nobody

# Try to preserve some state across restarts.
persist-key
persist-tun

# If you are connecting through an
# HTTP proxy to reach the actual OpenVPN
# server, put the proxy server/IP and
# port number here.  See the man page
# if your proxy server requires
# authentication.
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]

# Wireless networks often produce a lot
# of duplicate packets.  Set this flag
# to silence duplicate packet warnings.
;mute-replay-warnings

# SSL/TLS parms.
# See the server config file for more
# description.  It's best to use
# a separate .crt/.key file pair
# for each client.  A single ca
# file can be used for all clients.
ca /yealink/config/openvpn/keys/ca.crt
cert /yealink/config/openvpn/keys/client.crt
key /yealink/config/openvpn/keys/client.key

# Verify server certificate by checking
# that the certicate has the nsCertType
# field set to "server".  This is an
# important precaution to protect against
# a potential attack discussed here:
#  http://openvpn.net/howto.html#mitm
#
# To use this feature, you will need to generate
# your server certificates with the nsCertType
# field set to "server".  The build-key-server
# script in the easy-rsa folder will do this.
ns-cert-type server

# If a tls-auth key is used on the server
# then every client must also have the key.
;tls-auth ta.key 1

# Select a cryptographic cipher.
# If the cipher option is used on the server
# then you must also specify it here.
;cipher x

# Enable compression on the VPN link.
# Don't enable this unless it is also
# enabled in the server config file.
;comp-lzo

# Set log file verbosity.
verb 3

# Silence repeating messages
mute 20

# Extra Fields
;fast-io
;pull
route-delay 2
redirect-gateway

The only difference here is the device, that here is 'tun0' while in the documentation is referred as just 'tun'!

Does any one knows why the phone doesn't redirects the traffic despite successful VPN connection? Huh

Ok, the second version works as intended after all Smile

I think the main difference is the 'redirect-gateway' attribute...

Thanks any way,
Rui
(This post was last modified: 10-25-2013 09:20 AM by ruiseixas.)
10-25-2013 09:04 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Messages In This Thread
RE: T20P: VPN/OpenVPN - Just SIP or also RTP? - ruiseixas - 10-25-2013 09:04 AM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  T28P - OpenVPN TLS error: Unsupported protocol 1sae 0 1,139 07-18-2023 06:50 AM
Last Post: 1sae
  T19PE2 openvpn? bozko 0 5,173 10-11-2020 11:43 AM
Last Post: bozko
  how to connect yealink T23G to mikrotik openvpn server m.taghavi 4 14,080 10-11-2020 11:31 AM
Last Post: bozko
  openvpn[1205]: RESOLVE: Cannot resolve host address: myfake.dns.net:1194 rafael.catelecom 2 8,135 11-07-2019 02:24 PM
Last Post: rafael.catelecom
  How to change voice when busy, waiting and other.. T20P marin 0 4,256 04-11-2019 12:53 PM
Last Post: marin
  T20P Issues uploading VPN configuration mikeymike20 1 7,004 06-13-2018 07:24 AM
Last Post: Michael_Yealink
  Yealink Phones + OpenVPN Ramkumar 0 5,547 05-28-2018 06:14 AM
Last Post: Ramkumar
  SIP T20P unlock help afsfwmw90rfj 1 8,364 06-23-2017 08:24 AM
Last Post: Klaus_Yealink
  T19 E2 with openvpn TLS handshake failed Samcotec 2 10,204 04-28-2017 02:59 PM
Last Post: Michael_Yealink
  T21P E2 OpenVPN Disconnects acca 1 9,357 11-02-2016 07:53 PM
Last Post: acca

Forum Jump:


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

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