From nobody@FreeBSD.org  Thu Dec 15 01:43:03 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E734F16A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Dec 2005 01:43:03 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id BADF043D67
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Dec 2005 01:43:02 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id jBF1h2ha095626
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Dec 2005 01:43:02 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id jBF1h27x095625;
	Thu, 15 Dec 2005 01:43:02 GMT
	(envelope-from nobody)
Message-Id: <200512150143.jBF1h27x095625@www.freebsd.org>
Date: Thu, 15 Dec 2005 01:43:02 GMT
From: Guido Boehm <send-pr.fbsd@lenix.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: tap0 interface not configured at boot-time
X-Send-Pr-Version: www-2.3

>Number:         90413
>Category:       conf
>Synopsis:       tap0 interface not configured at boot-time
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bms
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 15 01:50:02 GMT 2005
>Closed-Date:    Sun Mar 04 14:46:38 GMT 2007
>Last-Modified:  Sun Mar 04 14:46:38 GMT 2007
>Originator:     Guido Boehm
>Release:        6.0-STABLE
>Organization:
>Environment:
FreeBSD xyz.unixuni.net 6.0-STABLE FreeBSD 6.0-STABLE #2: Fri Dec  9 01:44:12 CET 2005 root@xyz.unixuni.net:/usr/obj/usr/src/sys/XYZ  i386
>Description:
adding a "tap0"-interface to "network_interfaces" or "cloned_interfaces" in 
"/etc/rc.conf" results in this message repeated two times during system startup:
  "ifconfig: interface tap0 does not exist"

"device tap" is in kernel-configuration, "openvpn" can open and utilize "tap0"
without any problems.

i use "/etc/start_if.tap0" as a workaround:
 $ cat /etc/start_if.tap0 
 #!/bin/sh
 echo 1 > /dev/tap0

for me this is important since "named" couldn't bind to that interface/ip 
otherwise, by the time "openvpn" allocates it "named" has already dropped 
priviliges (running as user "bind")
>How-To-Repeat:
see description
>Fix:
              
>Release-Note:
>Audit-Trail:

From: Bruce M Simpson <bms@incunabulum.net>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: conf/90413: tap0 interface not configured at boot-time
Date: Fri, 02 Feb 2007 21:38:55 +0000

 this is a side-effect of not using the if_clone interface; PR 
 kern/105228 contains a possible fix.
Responsible-Changed-From-To: freebsd-bugs->bms 
Responsible-Changed-By: bms 
Responsible-Changed-When: Sat Feb 3 03:04:10 UTC 2007 
Responsible-Changed-Why:  
I'm looking into this 

http://www.freebsd.org/cgi/query-pr.cgi?pr=90413 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/90413: commit references a PR
Date: Sun,  4 Feb 2007 16:33:10 +0000 (UTC)

 bms         2007-02-04 16:32:46 UTC
 
   FreeBSD src repository
 
   Modified files:
     sys/net              if_tap.c if_tun.c 
     share/man/man4       tap.4 tun.4 
   Log:
   Implement ifnet cloning for tun(4)/tap(4).
   Make devfs cloning a sysctl/tunable which defaults to on.
   
   If devfs cloning is enabled, only the super-user may create
   tun(4)/tap(4)/vmnet(4) instances. Devfs cloning is still enabled by
   default; it may be disabled from the loader or via sysctl with
   "net.link.tap.devfs_cloning" and "net.link.tun.devfs_cloning".
   
   Disabling its use affects potentially all tun(4)/tap(4) consumers
   including OpenSSH, OpenVPN and VMware.
   
   PR:             105228 (potentially also 90413, 105570)
   Submitted by:   Landon Fuller
   Tested by:      Andrej Tobola
   Approved by:    core (rwatson)
   MFC after:      4 weeks
   
   Revision  Changes    Path
   1.18      +32 -5     src/share/man/man4/tap.4
   1.24      +33 -4     src/share/man/man4/tun.4
   1.69      +126 -32   src/sys/net/if_tap.c
   1.162     +77 -7     src/sys/net/if_tun.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->patched 
State-Changed-By: bms 
State-Changed-When: Sun Feb 4 18:26:11 UTC 2007 
State-Changed-Why:  
kern/105228 applied in -CURRENT solves this 

http://www.freebsd.org/cgi/query-pr.cgi?pr=90413 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/90413: commit references a PR
Date: Sun,  4 Mar 2007 14:34:49 +0000 (UTC)

 bms         2007-03-04 14:34:42 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_6)
     sys/net              if_tun.c if_tap.c 
     share/man/man4       tap.4 tun.4 
   Log:
   MFC:
     Implement ifnet cloning for tun(4)/tap(4).
     Make devfs cloning a sysctl/tunable which defaults to on.
   
     If devfs cloning is enabled, only the super-user may create
     tun(4)/tap(4)/vmnet(4) instances. Devfs cloning is still enabled by
     default; it may be disabled from the loader or via sysctl with
     "net.link.tap.devfs_cloning" and "net.link.tun.devfs_cloning".
   
     Disabling its use affects potentially all tun(4)/tap(4) consumers
     including OpenSSH, OpenVPN and VMware.
   
     Revision  Changes    Path
     1.18      +32 -5     src/share/man/man4/tap.4
     1.24      +33 -4     src/share/man/man4/tun.4
     1.69      +126 -32   src/sys/net/if_tap.c
     1.162     +77 -7     src/sys/net/if_tun.c
   
   PR:             105228 (potentially also 90413, 105570)
   Submitted by:   Landon Fuller
   Tested by:      Andrej Tobola
   Approved by:    core (rwatson)
   
   Revision   Changes    Path
   1.17.2.1   +32 -5     src/share/man/man4/tap.4
   1.21.2.2   +33 -4     src/share/man/man4/tun.4
   1.55.2.9   +137 -36   src/sys/net/if_tap.c
   1.152.2.6  +95 -29    src/sys/net/if_tun.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: bms 
State-Changed-When: Sun Mar 4 14:46:25 UTC 2007 
State-Changed-Why:  
MFC of PR 105228 eliminates the need for this hack 

http://www.freebsd.org/cgi/query-pr.cgi?pr=90413 
>Unformatted:
