OpenVPN-Setup


Revision [15603]

This is an old revision of OpenVPN-Setup made by daveraver on 2017-01-14 11:52:06.

 

I want to share my experience creating a vpn server on openpli 4.0


First of all, install openvpn


opkg install openvpn


https://community.openvpn.net/openvpn/wiki/Easy_Windows_Guide

I saw that doing openvpn --help on box command line, all files have to be .pem extension. Let's to convert the files:


local 192.168.xxx.xxx (local network IP)
server 10.8.0.0 255.255.255.0 (for example)
tls-server
proto udp
port 443 (sample port)
dev tun
ca ca.pem
dh dh2048.pem
cert server.crt.pem
key server.key.pem
extra-certs 01.pem
extra-certs 02.pem
ifconfig-pool-persist ipp.txt
comp-lzo
float
ping-timer-rem
persist-key
persist-tun
status openvpn-status.log
log openvpn.log
verb 3
keepalive 10 120


Client profile *.ovpn (tested on android openvpn app).


client
dev tun
proto udp
remote 'hostname(NOIP) or Public IP' 443 (sample port)
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
ca /file_path/ca.crt
cert /file_path/client.crt
key /file_path/client.key
ns-cert-type server
cipher bf-cbc
comp-lzo
verb 3
mute 20


The port we are going to use to vnp connection have to be opened, of course, and you can forward to other external different port as you know
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki