From owner-freebsd-net@FreeBSD.ORG Tue Dec 23 13:34:21 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 0C6B69D0 for ; Tue, 23 Dec 2014 13:34:21 +0000 (UTC) Received: from mx.aknet.kg (mx.aknet.kg [212.112.96.8]) by mx1.freebsd.org (Postfix) with ESMTP id A9F321588 for ; Tue, 23 Dec 2014 13:34:20 +0000 (UTC) Received: from [192.168.0.218] (office.aknet.kg [212.112.96.6]) by mx.aknet.kg (Postfix) with ESMTP id DD0471CCF7 for ; Tue, 23 Dec 2014 19:02:01 +0600 (KGT) To: freebsd-net@freebsd.org From: "IT Department, AkNet ISP" Reply-To: "IT Department, AkNet ISP" Subject: Netmap-ipfw, how to fill a table by 15K entries ? Date: Tue, 23 Dec 2014 19:02:01 +0600 X-LibVersion: 3.3.2 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced by Group-Office 3.01-stable-5 X-Mailer: Group-Office 3.01-stable-5 Message-ID: <20141223130201.83220.333300601.swift@crm.aknet.kg> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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 13:34:21 -0000 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