From owner-freebsd-net@FreeBSD.ORG Sun Apr 22 11:45:33 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E6AC616A401 for ; Sun, 22 Apr 2007 11:45:33 +0000 (UTC) (envelope-from shoesoft@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 4480F13C458 for ; Sun, 22 Apr 2007 11:45:32 +0000 (UTC) (envelope-from shoesoft@gmx.net) Received: (qmail invoked by alias); 22 Apr 2007 11:18:50 -0000 Received: from h081217094222.dyn.cm.kabsi.at (EHLO taxman.pepperland) [81.217.94.222] by mail.gmx.net (mp017) with SMTP; 22 Apr 2007 13:18:50 +0200 X-Authenticated: #16703784 X-Provags-ID: V01U2FsdGVkX18uTfEGwcAuib2/sQUP89nSIIwCHZBtuYqEN+cjdW N6wG7tGjBdYxf7 From: Stefan Ehmann To: freebsd-net@freebsd.org Date: Sun, 22 Apr 2007 13:18:49 +0200 User-Agent: KMail/1.9.6 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704221318.50042.shoesoft@gmx.net> X-Y-GMX-Trusted: 0 Cc: "Bruce M. Simpson" Subject: tun devices and vpnc in CURRENT X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Apr 2007 11:45:34 -0000 On CURRENT, each time I stop/start vpnc a new tun device is created. Since I restart vpnc every time I re-connect to the network, my ifconfig output fills up with tun devices. On 6.2-RELEASE the tun0 device is reused each time I run vpnc. Reverting to src/sys/net/if_tun.c rev 1.162 shows the old behaviour. (It seems I'm noticing this a bit late) Is this a bug in either CURRENT or vpnc? If I set sysctl net.link.tun.devfs_cloning=0, vpnc doesn't work at all: # vpnc vpnc version 0.4.0 kldload: can't load if_tun: File exists can't initialise tunnel interface: No such file or directory This is a CURRENT as of today. Please tell me if you need more info. Stefan