Maximum number of "tun" pseudo-devices
savage at savage.za.org
Tue May 15 13:41:26 UTC 2012
On Mon, May 14, 2012 at 3:09 AM, Brett Glass <brett at lariat.net> 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.
More information about the freebsd-questions