xubuntu - OpenVPN two configs routing traffic for only one - Ask Ubuntu


i have 2 openvpn config files using, 1 personal vpn can access unit when offsite, , other vpn private internet access.

these 2 work flawless when used apart, i'm having trouble getting internal vpn work still routing internet traffic through security vpn well.

here 2 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 need keep internal vpn working me access remotely, local network working, , route internet traffic through private vpn.

if start private vpn leaving internal vpn off, works fine without problem.

openvpn auth.conf 

both vpn configs explicitly want route traffic through them.

route 0.0.0.0 192.0.0.0 net_gateway

and in other profile:

redirect-gateway def1

since seem explicitly route other networks in internal vpn config profile, removing:

route 0.0.0.0 192.0.0.0 net_gateway

should remove conflicting routes , allow reach hosts behind networks explicitly route other route commands.

a note worth mentioning though there has been bug around in network manager preventing using 2 openvpn connections simultaneously.

not sure if solved yet

but can run 1 of 2 vpn connections terminal make sure not tripping on potential problem


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User