From owner-freebsd-net@FreeBSD.ORG Tue Dec 19 09:27:45 2006 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 1E7F816A403 for ; Tue, 19 Dec 2006 09:27:45 +0000 (UTC) (envelope-from mav@alkar.net) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECCC043CAC for ; Tue, 19 Dec 2006 09:27:41 +0000 (GMT) (envelope-from mav@alkar.net) Received: from [212.86.226.11] (account mav@alkar.net [212.86.226.11] verified) by cmail.optima.ua (CommuniGate Pro SMTP 5.0.11) with ESMTPA id 19124164; Tue, 19 Dec 2006 10:27:12 +0200 Message-ID: <4587A25F.2040408@alkar.net> Date: Tue, 19 Dec 2006 10:27:11 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8b) Gecko/20051108 MIME-Version: 1.0 To: nbg@stttelkom.ac.id References: <1166430186.00656388.1166419203@10.7.7.3> In-Reply-To: <1166430186.00656388.1166419203@10.7.7.3> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-net@freebsd.org" Subject: Re: maximum connections for mpd 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: Tue, 19 Dec 2006 09:27:45 -0000 Hi. Nyoman Bogi Aditya Karna wrote: > our VPN server is using mpd3.18 + freebsd6.1 > and currently we provide 250 VPN connections > for our students and it works well. > > but when i try to make 500 connections > the mpd failed to run. > > i suspect it was the freebsd > that can not provide ng more than 250. > > is there anything i should do ? > maybe tuning the freebsd ? mpd3 uses about 10 file descriptors per bundle. So you should increase file limit via sysctl. Another problem is dependence of mpd and libradius on select() call which will require increase of FD_SETSIZE constant in mpd/system and rebuilding mpd and libradius. But if you whish to reach 1-2K bundles and more, you may need mpd4. There are lot of changes done to remove that kind of limitations in mpd4.0b5. So if you don't use MSCHAP auth (which was broken in mpd4.0b5 and fixed later) I propose you to try mpd4. Or you can try latest CVS version from sourceforge.net which is stable enough for now and moving to release. -- Alexander Motin