Re: Maximum number of tun pseudo-devices
i would rather look at software that uses tun interfaces instead of FreeBSD which seems to support more than 128 tuns out of the box: this: # x=1;while [ $x -lt 2000 ];do ifconfig tun$x create;x=$[x+1];done worked fine. ifconfig shows 2000 tun interfaces # x=1;while [ $x -lt 2000 ];do ifconfig tun$x destroy;x=$[x+1];done worked fine too. what software do you use for tun interfaces? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Maximum number of tun pseudo-devices
On Mon, May 14, 2012 at 3:09 AM, Brett Glass br...@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 tun1 # 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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Maximum number of tun pseudo-devices
Everyone: 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? --Brett Glass ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org