I have two OpenVPN config files that I am using, one is my personal VPN so I can access my unit when offsite, and the other is a VPN for private internet access.
These two work flawless when used apart, but I'm having trouble getting my internal VPN to work but still routing all internet traffic through the security VPN as well.
Here are the two configs. Internal VPN Config:
remote {IP}
comp-lzo
dev tun
auth-user-pass /etc/openvpn/ovpn.txt
ca /etc/openvpn/ca.crt
client
route 0.0.0.0 192.0.0.0 net_gateway
route 64.0.0.0 192.0.0.0 net_gateway
route 128.0.0.0 192.0.0.0 net_gateway
route 192.0.0.0 192.0.0.0 net_gateway
Private internet VPN Config:
client
dev tun
proto udp
remote us-east.privateinternetaccess.com 1198
resolv-retry infinite
nobind
persist-key
persist-tun
cipher aes-128-cbc
auth sha1
tls-client
remote-cert-tls server
auth-user-pass auth.txt
comp-lzo
verb 1
reneg-sec 0
crl-verify crl.rsa.2048.pem
ca ca.rsa.2048.crt
disable-occ
redirect-gateway def1
All I need to do is keep my internal VPN working for me to access remotely, my local network working, and then route all internet traffic through the private VPN.
If I start the private VPN by itself leaving the internal VPN off, it all works perfectly fine without a problem.
openvpn auth.conf