VPN setup

Finally got back around to setting up an openvpn on my new vpc.

Server conf

port 1194
proto udp
dev tun
ca /usr/share/easy-rsa/keys/ca.crt
cert /usr/share/easy-rsa/keys/neverlight.crt
key /usr/share/easy-rsa/keys/neverlight.key # This file should be kept secret
dh /usr/share/easy-rsa/keys/dh2048.pem
server 192.168.1.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
comp-lzo
persist-key
persist-tun
verb 4

Client conf

client
dev tun
proto udp
remote neverlight.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert mental.crt
key mental.key
ns-cert-type server
comp-lzo
verb 3

Leave a Reply