Hi, everyone.
It's been sometime since I installed my openvpn server and clients. It was configured to add VPN server's local LAN (
192.168.0.0/24) route to the client, in addition to the VPN server network (
10.0.0.0).
So, in my
ccd/client3, for example, it says:
ifconfig-push 10.0.0.9 10.0.0.10
iroute 192.168.0.0 255.255.255.224
while in server.conf it says:
server 10.0.0.0 255.255.255.0
route 192.168.0.0 255.255.255.224
Now what I expected was, once connected
client3 machine, the server's LAN
192.168.0.0/24 would became available via
10.0.0.1. But now it doesn't, so I have to manually add route on
client3 machine and THEN it works.
In the server log there is:
Sun Dec 15 01:50:40 2013 client3/188.32.0.91:39893 OPTIONS IMPORT: reading client specific options from: /etc/openvpn/ccd/client3
Sun Dec 15 01:50:40 2013 client3/188.32.0.91:39893 MULTI: Learn: 10.0.0.9 -> client3/188.32.0.91:39893
Sun Dec 15 01:50:40 2013 client3/188.32.0.91:39893 MULTI: primary virtual IP for client3/188.32.0.91:39893: 10.0.0.9
Sun Dec 15 01:50:40 2013 client3/188.32.0.91:39893 MULTI: internal route 192.168.0.0/27 -> client3/188.32.0.91:39893
Sun Dec 15 01:50:40 2013 client3/188.32.0.91:39893 MULTI: Learn: 192.168.0.0/27 -> client3/188.32.0.91:39893
Sun Dec 15 01:50:43 2013 client3/188.32.0.91:39893 PUSH: Received control message: 'PUSH_REQUEST'
Sun Dec 15 01:50:43 2013 client3/188.32.0.91:39893 SENT CONTROL [client3]: 'PUSH_REPLY,route 10.0.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.0.0.9 10.0.0.10' (status=1)
But on the client side there is only:
Sat Dec 14 22:26:22 2013 /sbin/route add -net 10.0.0.1 10.0.0.10 255.255.255.255
as much as adding routes is concerned, which is the VPN connection network.
What's the right way to "push" to client that additional route?
Or should it be done by local post-connect (custom) scripts?
Great thanks for everyone's help 🙂