From owner-freebsd-net@FreeBSD.ORG Tue Dec 23 16:04:13 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 16DE23BA for ; Tue, 23 Dec 2014 16:04:13 +0000 (UTC) Received: from mx.aknet.kg (mx.aknet.kg [212.112.96.8]) by mx1.freebsd.org (Postfix) with ESMTP id B24BF64CC9 for ; Tue, 23 Dec 2014 16:04:12 +0000 (UTC) Received: from mx.aknet.kg (localhost.aknet.kg [127.0.0.1]) by mx.aknet.kg (Postfix) with ESMTP id 17D1A1CCEC for ; Tue, 23 Dec 2014 22:04:11 +0600 (KGT) Received: (from nobody@localhost) by mx.aknet.kg (8.13.8/8.13.8/Submit) id sBNG4AlF023868; Tue, 23 Dec 2014 22:04:10 +0600 (KGT) (envelope-from info@aknet.kg) X-Authentication-Warning: mx.aknet.kg: nobody set sender to info@aknet.kg using -f To: Subject: Re: Netmap-ipfw, how to fill a table by 15K entries =?UTF-8?Q?=3F?= X-PHP-Originating-Script: 501:main.inc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Tue, 23 Dec 2014 22:04:10 +0600 From: info@aknet.kg In-Reply-To: References: <20141223130201.83220.333300601.swift@crm.aknet.kg> Message-ID: X-Sender: info@aknet.kg User-Agent: Roundcube Webmail/0.7.2 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 16:04:13 -0000 Dear Luigi Today I installed the last distribution of FreeBSD-Stable 10.1 and took netmap-ipfw from your place by: git clone https://code.google.com/p/netmap-ipfw/ (hope the latest version) netmap compiled into kenel by device netmap Test computer i7-3770 (3.4Ghz), network card Intel DA-520 (2x10G) Test shown that it needs much more than a hour to put 15K entries to a table by standard ./ipfw table 10 add xxx.xxx.xxx.xxx from sh script. With standard version of ipfw in one of my tables I currently have: ipfw table 0 list | wc -l 27358 and server operates with such tables without problems concerning ipfw part. It will be great to have ability to open connection once to localhost:5555 and than to push commands from a file by this pipe. Regards Azamat Luigi Rizzo писал 2014-12-23 21:42: > 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"