load ipfw table addresses from file

From: Alex Keda <admin_at_lissyara.su>
Date: Fri, 09 Apr 2010 10:57:31 +0400
hi!
is there any plans to implement such opportunities?
for large files (we have 60k lines) it's very slow work

srv1# sh -E
# wc -l /root/scripts/db/table.25.txt
    61073 /root/scripts/db/table.25.txt
# date && for i in `cat /root/scripts/db/table.25.txt`; do ipfw table 25 
add $i; done && date
пятница,  9 апреля 2010 г. 10:42:01 (MSD)
пятница,  9 апреля 2010 г. 10:52:43 (MSD)
#
it took more than 10 minutes on busy server =(
Received on Fri Apr 09 2010 - 04:57:34 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:02 UTC