joshhboss
Full disclosure.. total Noob and i got my server setup with a script lol. i was able to get the configs and work them with computers and they work just fine. What my goal was to setup an OpenVPN server on digital ocean so i could get my edge routers that are behind NATs to communicate with each other through this server. After creating this server i was able to bring the .ovpn file over to my router but then the at times i lose internet on my local lan and i can not even communicate with the openvpn network even when applying routes. I will post what i have done. Any help will be apprecaited. i have tried reddit-- subreddit of ubiquiti and openvpn and the ubiquiti forums and crickets. 🙁
--also what seems to happen are these kernel routes are added to my routing table 0.0.0.0/1 via vtun3 (openvpn)..
anyways here is the server
port 443
proto tcp
dev tun
user nobody
group nogroup
persist-key
persist-tun
keepalive 10 120
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
#push "redirect-gateway def1 bypass-dhcp"
#push "route 10.55.0.0 255.255.255.0"
#push "route 10.8.0.0 255.255.255.0"
route 10.55.1.0 255.255.255.0 10.8.0.2 1
dh none
ecdh-curve prime256v1
tls-crypt tls-crypt.key
crl-verify crl.pem
ca ca.crt
cert server_RuIq0po5d1S6uKBC.crt
key server_RuIq0po5d1S6uKBC.key
auth SHA256
cipher AES-128-GCM
ncp-ciphers AES-128-GCM
tls-server
tls-version-min 1.2
tls-cipher TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
client-config-dir /etc/openvpn/ccd
status /var/log/openvpn/status.log
verb 3
and here is the ovpn of edge router
client
proto tcp-client
remote public.ip 443
dev tun
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
verify-x509-name server_RuIq0po5d1S6uKBC name
auth SHA256
auth-nocache
cipher AES-128-GCM
tls-client
tls-version-min 1.2
tls-cipher TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
ignore-unknown-option block-outside-dns
setenv opt block-outside-dns # Prevent Windows 10 DNS leak
verb 3
and my static route.
set protocols static interface-route 10.8.0.0/24 next-hop-interface vtun3