I've searched a bunch and can't seem to find my exact issue anywhere. I'm hoping it's a simple thing I'm missing. I've been using OpenVPN for years using a single client to the server. I'm now trying to add another client, and I want to be able to do client-to-client routing.
The first client, and the server, are Linux. The new, 2nd, client is Win7. All of them were updated to 2.2 as part of my trying to make this work.
I can get everything connected, and when I have client-to-client commented out, I can see the server and access resources on it, but I can't see the other client, or access any of that client's networks. When I enable client-to-client, I get the opposite behavior. I can access all the other client's networks, but I lose connectivity from both clients to talk to anything on the server. There are no firewalls active on any of the hosts.
Is there something I've missed in a FAQ or something that something special has to happen? everything is using tun devices. I'm just curious if there's something else I need to set when I do client-to-client to still allow client-to-server at the same time. Here are the configs:
CLIENT 1:
Code: Select all
dev tun
remote vpn3 443
proto tcp
client
ca ca.crt
cert Office.crt
key Office.key
comp-lzo
persist-key
persist-tun
verb 3
log openvpn.log
Code: Select all
client
dev tun
proto tcp
remote vpn3 443
resolv-retry infinite
nobind
persist-key
persist-tun
ca C:\\Users\\user\\OpenVPN\\ca.crt
cert C:\\Users\\user\\OpenVPN\\WorkLappy.crt
key C:\\Users\\user\\OpenVPN\\WorkLappy.key
ns-cert-type server
comp-lzo
verb 3
log openvpn.log
Code: Select all
local 10.1.5.69
port 443
proto tcp
dev tun
ca ca.crt
cert vpn3.crt
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 10.1.2.0 255.255.255.0"
push "route 10.1.5.0 255.255.255.0"
client-config-dir ccd
route 10.142.128.0 255.255.240.0
route 172.16.0.0 255.240.0.0
route 10.0.0.0 255.0.0.0
route 192.168.0.0 255.255.0.0
route 10.142.142.0 255.255.255.0
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
log openvpn.log
log-append openvpn.log
verb 4
Code: Select all
iroute 10.142.142.0 255.255.255.0
iroute 10.142.128.0 255.255.240.0
iroute 172.16.0.0 255.240.0.0
iroute 10.0.0.0 255.0.0.0
iroute 192.168.0.0 255.255.0.0
Code: Select all
push "dhcp-option DNS 10.1.5.69"
push "route 10.142.128.0 255.255.240.0"
push "route 172.16.0.0 255.240.0.0"
push "route 10.0.0.0 255.0.0.0"
push "route 192.168.0.0 255.255.0.0"
push "route 10.142.142.0 255.255.255.0"