Client to Server OpenVPN
From KlavoWiki
Work in Progress
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.
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