Here are my two server configs:
local WAN1.IP.Add.rr
port 1194
proto udp
#create routed IP tunnel
dev tun
ca ca.pem
cert testfw.pem
key testfw.pem
dh dh2048.pem
topology subnet
server 10.3.0.0 255.255.0.0
ifconfig-pool-persist ipp.txt
push "route 192.168.2.0 255.255.255.0"
client-config-dir ccd
route 192.168.1.0 255.255.255.0
keepalive 10 120
persist-key
persist-tun
verb 4
ccd:
iroute 192.168.1.0 255.255.255.0
ifconfig-push 10.3.0.62 255.255.0.0
server2.conf:
local WAN2.IP.Add.rr
port 1194
proto udp
#create routed IP tunnel
dev tun
ca ca.pem
cert testfw.pem
key testfw.pem
dh dh2048.pem
topology subnet
server 10.4.0.0 255.255.0.0
ifconfig-pool-persist ipp.txt
push "route 192.168.2.0 255.255.255.0"
client-config-dir ccd2
route 192.168.1.0 255.255.255.0
keepalive 10 120
persist-key
persist-tun
verb 4
ccd2:
iroute 172.30.65.0 255.255.255.0
ifconfig-push 10.4.0.62 255.255.0.0
Both servers are running on the same server at the same time - note route 192.168.1.0 255.255.255.0 in both conf files - the second vpn process to start fails to insert this into the kernel routing table because it is already there from the first process. What I am after is a way to add/remove routes based on when the client cn connects/disconnects.
Thanks, Eric