Hello maikcat.
I've already achieved what I wanted: Connect branch offices to central office and make a VPN for accessing companys servers.
But to clarify the things. That is servers main configuration:
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 192.168.3.0 255.255.255.0
ifconfig-pool-persist ipp.txt
route-delay 60 60
push "route x.x.0.0 255.255.0.0" # Server's internal network
client-config-dir ccd
client-to-client
keepalive 10 120
comp-lzo
persist-key
persist-tun
ip-win32 ipapi
script-security 2
route x1.y1.0.0 255.255.0.0 # Branch office 1's internal network
push "route x1.y1.0.0 255.255.0.0"
route x2.y2.0.0 255.255.0.0 # Branch office 2's internal network
push "route x2.y2.0.0 255.255.0.0"
Client's configuration:
client
dev tun
proto udp
remote a.b.c.d
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
ns-cert-type server
comp-lzo
keepalive 10 120
route-delay 20 60
Yes, I know that adapter is connected when service is runnig. 🙂
In Kerio Winroute routing rules are defined per adapter, not per IP it gets. When windows APIPA is enabled, after OpenVPN service is started, routes are added to route table. But when APIPA is disabled, after starting OpenVPN service routes are not added to route table. I'm not sure who adds routes to route table: kerio or windows. Most likely is kerio's job.