From owner-freebsd-net@FreeBSD.ORG Sat Jun 12 05:36:23 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 247C116A4CE for ; Sat, 12 Jun 2004 05:36:23 +0000 (GMT) Received: from diaspar.rdsnet.ro (diaspar.rdsnet.ro [213.157.165.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F5CB43D31 for ; Sat, 12 Jun 2004 05:36:22 +0000 (GMT) (envelope-from dudu@diaspar.rdsnet.ro) Received: (qmail 58720 invoked by uid 89); 12 Jun 2004 05:35:55 -0000 Received: from unknown (HELO diaspar.rdsnet.ro) (213.157.165.224) by 0 with AES256-SHA encrypted SMTP; 12 Jun 2004 05:35:55 -0000 Date: Sat, 12 Jun 2004 08:35:55 +0300 (EEST) From: Vlad GALU To: freebsd-net@freebsd.org Message-ID: <20040612082817.A10245@qvnfcne.eqfarg.eb> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: tun(4) issues X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: dudu@diaspar.rdsnet.ro List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jun 2004 05:36:23 -0000 Hello. I've been trying to set up a VPN server which should serve a large number of clients. Let's say something between 500 and 1000. I'd like to use the tun interface to do it. Now, what I observed when I tried to create 1000 tun devices, was that their minor numbers started to cycle every once in a while. So I guess there are replicas of my initial tun devices. Am I wrong ? Anyway, I only see these repeating minor numbers when browsing /dev/ from midnight commander. 'ls' shows a whole different kind of minor numbers, written in hex. Casting those to integers results in way larger numbers than usual, for example 196610. Before I start testing, am I doing something wrong here ? Should I stop now and find another implementation ? Thanks in advance for any feedback. ---- If it's there, and you can see it, it's real. If it's not there, and you can see it, it's virtual. If it's there, and you can't see it, it's transparent. If it's not there, and you can't see it, you erased it.