From: Albert S. <ap...@fr...> - 2010-05-12 16:21:08
|
All, I'm running into some problems when I combine topology subnet, start issuing IPs outside of the 'server pool' through ccd/ifconfig-push and subsequently want to push "route...". Server config ------------- server 10.8.0.0 255.255.255.0 dev tun topology subnet client-config-dir ccd push "route 10.10.10.0 255.255.255.0" route 10.8.1.0 255.255.255.0 File in server ccd directory ---------------------------- ifconfig-push 10.8.1.2 255.255.255.0 Client config ------------- client dev tun topology subnet Upon succesfully connecting with the server the client configures IP 10.8.1.2, as would be expected. However, adding the route (push "route") fails as the route command uses 10.8.0.1 as the gateway for the route. The client doesn't know about 10.8.0.1/24 as it's configured with 10.8.1.1/24. It doesn't seem possible to add an extra IP to the server tun interface with --ifconfig (e.g. 10.8.1.1) in order to e.g. issue a: push "route 10.10.10.0 255.255.255.0 10.8.1.1" It also doesn't seem possible to route to the tun device instead of the gateway IP either. I'm wondering if there is a solution to this or if one would need a /30 topology again for this to work, as I expect the route command will be able to use the server side /30 IP to push the route to. Cheers, Albert |