Re: load ipfw table addresses from file

From: Julian Elischer <julian_at_elischer.org>
Date: Fri, 09 Apr 2010 01:06:46 -0700
On 4/9/10 1:02 AM, Alex Keda wrote:
> 09.04.2010 11:14, Hizel Ildar пишет:

>>> # 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 =(
>>> _______________________________________________
[...]

>> but file like:
>> table 25 add 192.168.0.36
>> table 25 add 192.168.0.37
>> table 25 add 192.168.0.38
> thanks, it is faster, but - this is a crutch =)

yes but it is a crutch that is 600 times faster.
Received on Fri Apr 09 2010 - 06:06:49 UTC

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