Tag Archives: OpenVPN

Contoh : Config OpenVPN Server &  Client (CentOS)

Berikut adalah Contoh config server & client OPENVPN
——————–Server Side———————
local 66.96.xx.xx #- sesuaikan dengan IP anda
port 9999 #- ganti port sesuai dengan keinginan anda
proto udp #- bisa udp atau tcp
dev tun
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
key /etc/openvpn/easy-rsa/2.0/keys/server.key
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
server 1.2.3.0 255.255.255.0
#-ifconfig-pool-persist ipp.txt
push “redirect-gateway def1″
push “dhcp-option DNS 208.67.222.222″
push “dhcp-option DNS 208.67.220.220″
keepalive 5 30
comp-lzo
persist-key
persist-tun
status server-tcp.log
verb 3
——————–Server Side———————

——————–Client Side———————

client
dev tun
proto udp
remote 66.96.xx.xx 9999 #- sesuaikan dengan ip server dan port yang digunakan
resolv-retry infinite
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
ca ca.crt
;auth-user-pass
comp-lzo
verb 3
——————–Client Side———————