[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] topology subnet and assigning routes towards clients - not working?


  • Subject: Re: [Openvpn-users] topology subnet and assigning routes towards clients - not working?
  • From: Florin Andrei <florin@xxxxxxxxxxxxxxx>
  • Date: Wed, 22 Aug 2007 20:43:20 -0700

Florin Andrei wrote:
> With the default mode (the implicit "topology net30") I used to do this 
> to assign static routes towards a given client:
> 
> $ cat /etc/openvpn/ccd/some-client
> iroute 10.20.1.0 255.255.255.0
> iroute 10.250.0.0 255.255.255.0
> $ cat /etc/openvpn/server.conf
> [...]
> route 10.20.1.0 255.255.255.0
> route 10.250.0.0 255.255.255.0
> [...]
> 
> When the tunnel was established, the static routes were set towards that 
> particular client. Everything worked fine.
> 
> With "topology subnet" it doesn't seem to work. Is there any magic 
> incantation that needs to be performed to make it work in this case?

I have a solution. It's enough to explicitly add the client's (*) VPN 
address after the netmask:

route 10.20.1.0 255.255.255.0 192.168.2.20
route 10.250.0.0 255.255.255.0 192.168.2.20

(*) - it's the client that is connected to those networks for which I'm 
adding the static routes

With the default mode, the client's address is not necessary. "topology 
subnet" seems to require to specify the gateway for those networks.

Hopefully this will help someone.

-- 
Florin Andrei
______________________
OpenVPN mailing lists
https://lists.sourceforge.net/lists/listinfo/openvpn-users