From owner-freebsd-ipfw@freebsd.org Tue Aug 4 07:40:08 2015 Return-Path: Delivered-To: freebsd-ipfw@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 77D389B3DAB for ; Tue, 4 Aug 2015 07:40:08 +0000 (UTC) (envelope-from melifaro@ipfw.ru) Received: from forward20h.cmail.yandex.net (forward20h.cmail.yandex.net [87.250.230.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2C3281A89; Tue, 4 Aug 2015 07:40:07 +0000 (UTC) (envelope-from melifaro@ipfw.ru) Received: from web5h.yandex.ru (web5h.yandex.ru [84.201.186.34]) by forward20h.cmail.yandex.net (Yandex) with ESMTP id EBBEA21BE5; Tue, 4 Aug 2015 10:39:56 +0300 (MSK) Received: from 127.0.0.1 (localhost [127.0.0.1]) by web5h.yandex.ru (Yandex) with ESMTP id F32F5384122F; Tue, 4 Aug 2015 10:39:55 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfw.ru; s=mail; t=1438673996; bh=s6dyabYG8e+UQZWo4BQr41y9/AIs1KiNVNNR7MwsIfE=; h=From:To:Cc:In-Reply-To:References:Subject:Date; b=pCOl7L0szAfoHTibIXuNoL1MvuOMzvHVZw2E4yhgy494VMwp0VKp71q/hB6LGGGnq ILi49Xlb7aDNKCRtXp2lKpr3eNePklVTxAISQDVG7xjWdyq7pusPNBiwhRWFrkpnAQ ti3To2v3c9wy3uZTdwfuOO4z94g0dW82bSi6m0FM= Received: by web5h.yandex.ru with HTTP; Tue, 04 Aug 2015 10:39:55 +0300 From: Alexander V. Chernikov To: Julian Elischer , Ian Smith , Julian Elischer Cc: "freebsd-ipfw@freebsd.org" In-Reply-To: <55BFC7A7.2000907@freebsd.org> References: <55BF368A.60004@elischer.org> <20150803234952.O17327@sola.nimnet.asn.au> <925201438613458@web7h.yandex.ru> <55BFC7A7.2000907@freebsd.org> Subject: Re: ipfw delete 100-300 MIME-Version: 1.0 Message-Id: <252361438673995@web5h.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Tue, 04 Aug 2015 10:39:55 +0300 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=koi8-r X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Aug 2015 07:40:08 -0000 03.08.2015, 22:57, "Julian Elischer" : > On 8/3/15 10:50 PM, Alexander V. Chernikov wrote: >> š03.08.2015, 17:14, "Ian Smith" : >>> šOn Mon, 3 Aug 2015 17:38:18 +0800, Julian Elischer wrote: >>> ššš> my reading of the code I can see that 'ipfw delete 100-300' doesn't >>> ššš> work (well I know it doesn't work, but I had thought it was a bug), >>> ššš> Now I see that its just 'not supported' >> šI implemented the kernel range deletion, but converted userland part as-is. >> šShould work on HEAD now (r286232). > > great! > Pitty I'm stuck working on 8.0 :-) maybe I can back-port it. Well, I'm afraid you will have to do it in a slightly different way since there was no "ranged delele" support in kernel (so you would probably need to fetch the ruleset and delete matching rules one-by-one). > >>> ššš> >>> ššš> It may be my imagination but (distant) past? >>> >>> šI was surprised too; ISTR having used that before too, but I may >>> šmisremember remembering .. >> šI also had a feeling that this syntax should work (maybe because it silently accepted "ranged" queries) but I couldn't find any presence of real ranged deletion support in SVN. >>> šOn 9.3 with rules 100-1000 in 100's, 'ipfw delete 600-800' deletes only >>> š600 .. without complaint, returning 0 if 600 existed. NG for scripts. >>> >>> šcheers, Ian >>> š_______________________________________________ >>> šfreebsd-ipfw@freebsd.org mailing list >>> šhttp://lists.freebsd.org/mailman/listinfo/freebsd-ipfw >>> šTo unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org" >> š_______________________________________________ >> šfreebsd-ipfw@freebsd.org mailing list >> šhttp://lists.freebsd.org/mailman/listinfo/freebsd-ipfw >> šTo unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org"