On Mon, Apr 1, 2013 at 10:29 AM, Arne Schwabe <a...@rfc2549.org> wrote:
>
> Am 01.04.13 15:26, schrieb Jonathan K. Bullard:
>
>> On Mon, Apr 1, 2013 at 7:12 AM, Gert Doering <g...@greenie.muc.de> wrote:
>>>
>>> Hi,
>>>
>>> On Sun, Mar 31, 2013 at 10:43:29PM +0200, Arne Schwabe wrote:
>>>>
>>>> Mac OS X 10.7+ natively supports tun devices (called utun). The
>>>> "standard" utun.ko driver is sometimes problematic (e.g. VmWare Fusion 5 
>>>> and
>>>> tun.ko do not work together).
>>>>
>>>> When OpenVPN is compiled with utun support it will if no dev-node is
>>>> given first try to use utun and if that is not available will try the
>>>> traditional tun devices
>>
>>
>> The "utun" stuff is new to me; all I can find is the source code for
>> it. Is this one of the "hidden features" of iOS that that OpenVPN for
>> iOS app uses, and that is also in OS X 10.7 and up?
>
> Basically yes.
>
>> Most configuration files I've seen do not include a dev-node option.
>> Does a "dev tun" option in the file imply, for this purpose, "dev-type
>> tun"?
>>
>> If I understand this correctly, a user who updates to 10.7+ will be
>> using utun instead of tun. That may be problematic (I don't know).
>>
>> Wouldn't it be better to use the legacy tun if it exists, and if not,
>> then use the utun? That would be backward-compatible with such
>> configuration files.
>
>
> Currently the patch tries to open utun first and if that fails it will try
> to open tun. If you specify something like dev-node tun17 or dev-node utun23
> it will only try to open that specific kind of tun node.

Yes. The point I was trying to make was that most configuration files
that I've seen don't have 'dev-node' options, so they will try utun
first and only if that fails will they try try to open tun. So when
they update to 10.7+, OpenVPN will start to use utun instead of tun
(since it will be available in 10.7+), and that may break backward
compatibility if the utun doesn't work exactly the same way that tun
works, which I gather from the comment that

>>>> The "standard" utun.ko driver is sometimes problematic (e.g. VmWare Fusion 
>>>> 5 and tun.ko do not work together).

If it is the other way around (use tun if it is available and if not,
try utun) then anybody who has loaded tun will continue to work with
that tun, and anybody who hasn't loaded tun will get utun if it is
available. So nothing breaks.

It's hard for a GUI like Tunnelblick that doesn't parse the
configuration file to detect the situation (no dev-type option) to add
a "dev-type tun" to force the use of tun.

But if we know that utun works for OpenVPN, then I don't have any
problem with the patch. But that utun "is sometimes problematic" makes
me worried that this may not be the case.

Reply via email to