Finding the right interface on FreeBSD

Guus Sliepen guus at tinc-vpn.org
Wed Jun 7 09:59:05 CEST 2006


On Thu, Jun 01, 2006 at 08:54:43PM +0200, Gaël Roualland wrote:

> >> The following patch makes it try to open the various available tun
> >> devices before giving up.
> > [...]
> > 
> > Why not just change your Device entry in tinc.conf to point to a free
> > tun device?
> 
> I tried that indeed, buf for some reason, some devices stay busy after
> being used (eg if tinc crashes, cf my other report).
> I have not investigated this a great length (could be a freebsd bug
> instead perhaps) but I found it usefull that tinc could try to find an
> inetrface on its own, just like it does on Linux for instance.

It doesn't do that on Linux. On Linux, there is only one /dev/tun, but
multiple programs can open it simultaneously. But it seems very odd to
me that a crashing program can keep a tun device busy on FreeBSD. Maybe
you can try "ifconfig tun0 down" before restarting tinc (with 0 replaced
by the actual number it used)?

If that doesn't help either, I'd say it is a kernel bug.

-- 
Met vriendelijke groet / with kind regards,
     Guus Sliepen <guus at tinc-vpn.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://brouwer.uvt.nl/pipermail/tinc-devel/attachments/20060607/357a964f/attachment.pgp


More information about the tinc-devel mailing list