Client to Server OpenVPN: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
Created page with "<font size="5" color="red">Work in Progress</font> My specific purpose of these instructions is so IP phones can establish a tunnel and communicate to a SIP server without th..."
 
No edit summary
Line 1: Line 1:
<font size="5" color="red">Work in Progress</font>
<font size="5" color="red">Work in Progress</font>


My specific purpose of these instructions is so IP phones can establish a tunnel and communicate to a SIP server without the need of worrying about NAT, STUN or port forwards.
My specific purpose for these instructions is so IP phones can establish a tunnel and communicate to a SIP server without the need of worrying about NAT, STUN or port forwards.  The Yealink SIP phones have inbuilt OpenVPN capabilities.


The following instructions were performed on CentOS 7.2
The following instructions were performed on CentOS 7.2

Revision as of 03:33, 1 August 2016

Work in Progress

My specific purpose for these instructions is so IP phones can establish a tunnel and communicate to a SIP server without the need of worrying about NAT, STUN or port forwards. The Yealink SIP phones have inbuilt OpenVPN capabilities.

The following instructions were performed on CentOS 7.2

Installing

Firstly install epel due to openvpn not been available in the default repository. Once epel has been install then...

yum -y install openssl lzo openvpn

Config Files

Examples of Configuration Files

/usr/share/doc/openvpn-2.3.11/sample/sample-config-files/server.conf

OpenVPN

/etc/openvpn/server.conf
local 203.185.211.122
port 1194
proto udp
dev tun

ca   /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key  /etc/openvpn/keys/key.pem
dh   /etc/openvpn/keys/dh2048.pem

server 172.21.18.0 255.255.254.0
ifconfig-pool-persist ipp.txt

push "route 172.21.18.0 255.255.254.0"

client-to-client
keepalive 10 120
comp-lzo
persist-key
persist-tun
verb 3
log access.log