I am trying to connect 3 sites together with 3 ddwrt routers and openvpn. The 3 routers are connected just fine but there is something strange that I just can't quite understand.
Site 1:
ddwrt with openvpn client
Behind that router, I have 2 PCs
Site 2:
ddwrt with openvpn server
Behind that I have 1 PC and 1 server
Site 3:
ddwrt with openvpn client
Behind that I have 2 PC and 1 server
My goal is that each PC and server can access/ping/RDP/whatever every other PC or server in every sites.
Right now:
Site 1 can see everything in Site 2.
Site 3 can see everything in Site 2.
Site 2 doesn't seem to see anything in site 1 and 3 anymore... hmmm
I don't like that because Site2 and Site3 have been connected together for the past 2 years. I'm basically trying to add Site1
Here are my configs:
Client1:
Code: Select all
ca /tmp/openvpncl/ca.crt
cert /tmp/openvpncl/client.crt
key /tmp/openvpncl/client.key
management 127.0.0.1 5001
management-log-cache 50
verb 4
mute 5
log-append /var/log/openvpncl
client
tls-client
resolv-retry infinite
nobind
persist-key
persist-tun
mtu-disc yes
dev tun1
proto udp
cipher bf-cbc
auth sha1
remote XX.XX.XX.XX 1194
tun-mtu 1500
comp-lzo adaptive
ns-cert-type server
fast-io
tun-ipv6
float
script-security 3 system
Client2:
Code: Select all
client
dev tun
proto udp
remote XX.XX.XX.XX 1194
resolv-retry infinite
nobind
persist-key
persist-tun
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ca /tmp/openvpncl/ca.crt
cert /tmp/openvpncl/client.crt
ns-cert-type server
key /tmp/openvpncl/client.key
comp-lzo
Server:
Code: Select all
push "route 192.168.0.0 255.255.255.0"
push "route 192.168.1.0 255.255.255.0"
push "route 192.168.2.0 255.255.255.0"
server 192.168.66.0 255.255.255.0
route 192.168.2.0 255.255.255.0
route 192.168.0.0 255.255.255.0
dev tun0
proto udp
keepalive 10 120
verb 5
comp-lzo
client-to-client
float
client-config-dir /tmp/openvpn/ccd
dh /tmp/openvpn/dh.pem
ca /tmp/openvpn/ca.crt
cert /tmp/openvpn/cert.pem
iroute 192.168.2.0 255.255.255.0
iroute 192.168.0.0 255.255.255.0
I hope you guys can help me!