I have two OpenVPN servers set up in two locations.
And I have one Raspbian client with two client.conf files (one for each server). And they each connect to their respective server and create their respective tunnels (tun0 and tun1).
However, whichever tun connects first always gets all the traffic, even if it starts dropping packets or the connects just dies. It never seems to switch over to the other tun.
I'm thinking I've got something set wrong in my configs - or maybe it just doesn't' work that way?
Here are my two server.conf files:
ServerA
dev tun
server 10.8.0.0 255.255.255.0
ifconfig 10.8.0.1 10.8.0.2
push "route 10.8.0.1 255.255.255.255"
push "route 10.8.0.0 255.255.255.0"
push "route 192.168.1.246 255.255.255.0"
push "dhcp-option DNS 192.168.1.1"
push "redirect-gateway def1"
client-to-client
duplicate-cn
keepalive 10 120
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
persist-key
persist-tun
user nobody
group nogroup
cipher AES-256-CBC
tls-version-min 1.2
auth sha512
ServerB
dev tun
server 10.10.0.0 255.255.255.0
ifconfig 10.10.0.1 10.10.0.2
push "route 10.10.0.1 255.255.255.255"
push "route 10.10.0.0 255.255.255.0"
push "route 192.168.1.241 255.255.255.0"
push "dhcp-option DNS 192.168.1.1"
push "redirect-gateway def1"
client-to-client
duplicate-cn
keepalive 10 120
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
persist-key
persist-tun
user nobody
group nogroup
cipher AES-256-CBC
tls-version-min 1.2
auth sha512
And the two client.conf files on Rasbian:
ClientA
client
remote ServerA
verb 1
nobind
mute 20
dev tun0
persist-tun
persist-key
key-direction 1
cipher AES-256-CBC
tls-version-min 1.2
auth sha512
ns-cert-type server
mute-replay-warnings
resolv-retry 60
ClientB
client
remote ServerB
verb 1
nobind
mute 20
dev tun1
persist-tun
persist-key
key-direction 1
cipher AES-256-CBC
tls-version-min 1.2
auth sha512
ns-cert-type server
mute-replay-warnings
resolv-retry 60
Any pointers or sites to read to fix this?
Thanks!