Hi,

On Wed, Sep 14, 2022 at 09:33:46AM +0200, David Sommerseth wrote:
> > +  What happens if the device name is not :code:`tun` or :code:`tap` is
> > +  platform dependent.
> > +
> > +  On most platforms, :code:`tunN` (e.g. tun2, tun30) and :code:`tapN`
> > +  (e.g. tap3) will create a numbered tun/tap interface with the number
> > +  specified - this is useful if multiple OpenVPN instances are active,
> > +  and the instance-to-device mapping needs to be known.  Some platforms
> > +  do not support "numbered tap", so trying ``--dev tap3`` will fail.
> > +
> > +  Arbitrary names (e.g. ``--dev home``) will not work on most platforms,
> > +  with the exception of Linux and FreeBSD with the DCO kernel driver.
> > +
> > +  There, arbitrary names are allowed, and will create a tun or DCO
> > +  device named as requested.
> > +
> 
> This is confusing and not quite right.  I've used "--dev home" for a 
> long time on Linux with tun devices.  But it requires "--dev-type tun". 
> There are no dependencies on DCO in this use case.

The sentence above should have read "Linux and (FreeBSD with the DCO driver)".

FreeBSD *with* DCO can do arbitrary names, without, it's "tun<N>" and
"tap<N>" only.

Suggestions how to word this better?

I'll add "if the arbitrary device name does not start with 'tun' or 'tap',
Linux needs a --dev-type tun/tap to tell".


> [...snip...]
> 
> > @@ -93,6 +112,11 @@ routing.
> >     both the network connections control panel name and the GUID for each
> >     TAP-Win32 adapter.
> >   
> > +  On other platforms, ``--dev-node node`` will influence the naming of the
> > +  created tun/tap device, if supported on that platform.  If OpenVPN cannot
> > +  figure out whether ``node`` is a TUN or TAP device based on the name,
> > +  you should also specify ``--dev-type tun`` or ``--dev-type tap``.
> 
> IIRC correctly on Windows (too many years since last time with a more 
> advanced setup there), --dev-node does not influence the naming of the 
> tap-windows6 interface, but is a reference to the pre-created interface. 

Windows is not part of "other platforms" here, but covered in the preceding
paragraph -> so, yes, that's what it says there :-)

gert
-- 
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             g...@greenie.muc.de

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to