From owner-freebsd-questions@FreeBSD.ORG Tue May 15 13:41:26 2012 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C699A1065678 for ; Tue, 15 May 2012 13:41:26 +0000 (UTC) (envelope-from cknipe@savage.za.org) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 894F28FC08 for ; Tue, 15 May 2012 13:41:26 +0000 (UTC) Received: by obcni5 with SMTP id ni5so11815891obc.13 for ; Tue, 15 May 2012 06:41:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-originating-ip:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=JDkmgcnO0PVEQSnT9IfEziPQyVbgCfGeEdU3EdDE+l8=; b=mryhgfx/hv81AhqYWS7TeF/xs/zKbR3KVokPYbL9qW8n7UjBQzJFCjilyDou1+ZexO COLxYooaWchDOTmn5hIUfe1NfPfZxfTmmsd14E8yEclF79L0yo3dfjWlijvrpDV0RkZM 4CiQITOnCi62cRuzG9e/vEgBBN+PYRpt09flLp+aHaXcG3HFXpIg78GI+d37WiiT3ukA Pto+ViopEYRycMvnaefFS2kaSzz9LPm6lq5lndK7i6+vjGVftvvdNMXBXsIXEYTaNXjt xGD0y5XThxTkp0aFhl0mgVMpvUor+gud7LbKSYow2gRRtYHCvAsAtnPvxDsjd/qojL1e 587Q== MIME-Version: 1.0 Received: by 10.182.207.41 with SMTP id lt9mr6664154obc.41.1337089285961; Tue, 15 May 2012 06:41:25 -0700 (PDT) Sender: cknipe@savage.za.org Received: by 10.182.169.103 with HTTP; Tue, 15 May 2012 06:41:25 -0700 (PDT) X-Originating-IP: [196.43.208.60] In-Reply-To: <201205140109.TAA06712@lariat.net> References: <201205140109.TAA06712@lariat.net> Date: Tue, 15 May 2012 15:41:25 +0200 X-Google-Sender-Auth: 9iaF78C9neZcPBHvawqSxVNnx_0 Message-ID: From: Chris Knipe To: Brett Glass Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQkScINvh8zXsZGBa6K/k9RLQxhb9bBSls0r0SFGHoWztFwJjsmmVZJBZcO6OZo9R+L63ycJ Cc: questions@freebsd.org Subject: Re: Maximum number of "tun" pseudo-devices X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2012 13:41:26 -0000 On Mon, May 14, 2012 at 3:09 AM, Brett Glass wrote: > I'm running a busy FreeBSD-based that may handle large numbers of > simultaneous connections. I'm currently using software that creates a "tun" > device for each connection. However, after it hits tun127 (128 > pseudo-devices), it doesn't seem to want to create any more. What sets the > limit on the number of "tun" devices that can exist in the system, and how > can the limit be adjusted? Is there a similar limit on, say, "ng" devices? You don't say which version of FreeBSD you're using, but older versions of FreeBSD had the option to specify a maximum number of pseudo-device to allow. For example pseudo-device tun 1 # Tunnel driver(user process ppp) In your kernel would only allow for 1 tun device to be created. If you're using an older (5.x / 4.x) version of FreeBSD, I'd say check your kernel config. Nut sure whether this is still relevant in newer versions of FreeBSD, but documentation suggest that it is no longer the case with newer versions. -- Regards, Chris Knipe