On Saturday June 4, ov_de...@l3h.de wrote:
> 
> I think, a real tun driver for Windows is a killer feature. This would make 
> large heterogenous VPN setups much easier, because you could provide your 
> clients a layer-3 VPN without "losing" 2 addresses per client.
> 

A "real" tun driver (by which I assume you mean one that support
point-to-point addressing) isn't needed to avoid "losing" 2 addresses
per client.
What is needed is for openvpn to understand that a multi-client
configuration is much more like a subnet than like a bunch of
point-to-point links.

I had a patch about 12 months ago that did that using a command
   devtype subnet
which James didn't like (or maybe, he felt cautious about it and I
didn't have the time to push it then).

The idea is that instead of treating every interface as a
point-to-point interface, with 2 addresses (one of which is wasted),
you assign a subnet to the VPN and each interface has an address on
that subnet.

The main change to the OpenVPN protocol is that when "ifconfig" is
"pushed" to the client, it pushes an address and a subnetmask, instead
of two addresses.  (It already does this for dev==tap, so it isn't a
big deal).

"tun" devices on Linux (or other unixes) are point-to-point and don't
have a subnet mask, but that isn't a big deal at all.  To make it
work, set the remote address to anything in the subnet (it really
doesn't matter what) and create a route to the subnet, with an
appropriate subnet mask, which has the remote end of the pointopoint
as the destination.  It then all simply works.

I can resurrect that patch if anyone is interested.


See http://openvpn.net/archive/openvpn-devel/2004-07/msg00056.html and
related messages.

NeilBrown


Reply via email to