From owner-freebsd-net@FreeBSD.ORG Tue Dec 23 15:42:53 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 19377A37 for ; Tue, 23 Dec 2014 15:42:53 +0000 (UTC) Received: from mail-la0-x22f.google.com (mail-la0-x22f.google.com [IPv6:2a00:1450:4010:c03::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8ECBC64122 for ; Tue, 23 Dec 2014 15:42:52 +0000 (UTC) Received: by mail-la0-f47.google.com with SMTP id hz20so5570366lab.6 for ; Tue, 23 Dec 2014 07:42:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=ChB420XS7ORVQ1UHRd2AkiOjfVmynFkWvBUwvTmeFR8=; b=XNa0vCGPitk8JZ7j/K4n+DUjXathwD2BSkdv+zFNa2Brd7aBI24T+d/XvZB03zbIdY g/aRxf1pHqBiz491Vr5D4Cn+sdLMrRam4DIzai3SYXQvF06Zud00VIEOEctoiAN1aDZI jZDnjsvzDTeft+0WvTDzxpQWoIH/LPIPFzg7y41PlUfpAkL5IkJgB+JMiwZKa0rv/vsx U+3KUvxnZDGqvoRK/a9OaHYIZ78Q31FxCQ4zM27g7A47b6N063lF6J/pB/81N8ElNsvS YBe2uNnHpsgT2EbPJkQmHHRa48RlkptRykJGaSoPSWMnbwx68z/whamsIV/N9uOpENPF v2pg== MIME-Version: 1.0 X-Received: by 10.152.5.7 with SMTP id o7mr11857054lao.26.1419349369484; Tue, 23 Dec 2014 07:42:49 -0800 (PST) Sender: rizzo.unipi@gmail.com Received: by 10.114.174.169 with HTTP; Tue, 23 Dec 2014 07:42:49 -0800 (PST) In-Reply-To: <20141223130201.83220.333300601.swift@crm.aknet.kg> References: <20141223130201.83220.333300601.swift@crm.aknet.kg> Date: Tue, 23 Dec 2014 16:42:49 +0100 X-Google-Sender-Auth: 1jvxNNNRvQAd3TYlxTCnkgNqoco Message-ID: Subject: Re: Netmap-ipfw, how to fill a table by 15K entries ? From: Luigi Rizzo To: "IT Department, AkNet ISP" Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 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, 23 Dec 2014 15:42:53 -0000 please take the code from code.google.com/p/netmap-ipfw/ The symptoms you describe seem related to a bug that i fixed a couple of months ago. cheers luigi On Tue, Dec 23, 2014 at 2:02 PM, IT Department, AkNet ISP wrote: > Hello to All > > Can anybody tell, how to fill a table with large number of entries ? > > Sure, It can be done by standard method by ./ipfw table 10 add > xxx.xxx.xxx.xxx in a script, but each entry takes couple of seconds to > be placed into a table: > > ./ipfw table 10 add 192.168.10.50 > connected to 127.0.0.1:5555 > > And takes many hours to do all job. > > May be there is a way to open a socket and place a bulk commands, for > example: > telnet localhost 5555 > table 10 add xxx.xxx.xxx.xxx > > But it doesn't work as written above. > > May be Senior Luigi can explane how to do such work as fast as it > done by ordinary ipfw ? > > Best regards > Azamat > AkNet ISP > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" -- -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL +39-050-2211611 . via Diotisalvi 2 Mobile +39-338-6809875 . 56122 PISA (Italy) -----------------------------------------+-------------------------------