Message-ID: <5596980F.6010600@...1147...> Date: Fri, 03 Jul 2015 16:11:27 +0200 From: Jan Just Keijser MIME-Version: 1.0 References: <55966BE0.5090400@...1147...> <55966F4A.7010008@...1114...> <559672D0.1030904@...1147...> <20150703115639.GC57772@...2041...> <20150703131545.GZ382@...1296...> In-Reply-To: <20150703131545.GZ382@...1296...> Subject: Re: [Openvpn-devel] Adding routes on Windows using DHCP List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: quoted-printable To: Gert Doering , =?windows-1252?Q?J=C1K=D3_Andr=E1?= =?windows-1252?Q?s?= Cc: openvpn-devel@lists.sourceforge.net Hi, On 03/07/15 15:15, Gert Doering wrote: > On Fri, Jul 03, 2015 at 01:56:39PM +0200, J=C1K=D3 Andr=E1s wrote: >>> yes this is possible; it's possible to push multiple gateways and >>> multiple (classless) routes (dhcp options 121 & 249). >>> If the metric on the tap-win adapter is set manually and is set low >>> enough the redirecting the gateway will also work. >>> However, changing the metric requires evelated access... >> Sorry for the noise if that has been discussed before: Instead of >> modifying the metric, how about pushing two /1 routes (0.0.0.0/1 and >> 128.0.0.0/1)? > Would work *if* windows supports the "classless routes" option (which > I'm not sure of) - and if it accepts DHCP on tap to provide a host > route for the VPN server to the original gateway on the normal LAN > interface. Without that host route, routing would loop (we'd send > packets *to* the VPN server into the tunnel, encapsulate, send > to the VPN server, into the tunnel, encapsulate, ... *boom*) > AFAICT windows does support that option (that's what I was referring to=20 with options 121 or 249) . OTOH, I am *not* sure if it allows you to set=20 a 0.0.0.0/1 route using that option, but I guess there's only one way to=20 find out. As for IPv6: that is going to be a problem indeed, although a draft=20 exists for handing out IPv6 routes over DHCP(v6); not sure how much work=20 that would entail though. I think Heiko's interactive service is "the way forward" but it does=20 look like the "DHCP route" is too interesting to ignore. I will have=20 more time next week to explore it, so I'll get back to the list then. JJK