X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-in-04.arcor-online.net (mail-in-04.arcor-online.net [151.189.21.44]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 06005DC1360 for ; Sat, 7 Apr 2012 17:12:07 +0000 (UTC) Received: from mail-in-04-z2.arcor-online.net (mail-in-04-z2.arcor-online.net [151.189.8.16]) by mx.arcor.de (Postfix) with ESMTP id B3736AA536; Sat, 7 Apr 2012 19:12:05 +0200 (CEST) Received: from mail-in-17.arcor-online.net (mail-in-17.arcor-online.net [151.189.21.57]) by mail-in-04-z2.arcor-online.net (Postfix) with ESMTP id A6E6C1F92AC; Sat, 7 Apr 2012 19:12:05 +0200 (CEST) Received: from [192.168.6.209] (85-127-182-57.dynamic.xdsl-line.inode.at [85.127.182.57]) (Authenticated sender: panthera.tigris@arcor.de) by mail-in-17.arcor-online.net (Postfix) with ESMTPA id 5B61BCC882; Sat, 7 Apr 2012 19:12:05 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-17.arcor-online.net 5B61BCC882 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arcor.de; s=mail-in; t=1333818725; bh=gg4eIWidXuwrQ/fc3+PTrAGXQwxCepL+NiVk1E3v99g=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=Vu2TegY8bXG6W+iQZ12tdUaiWjGbWXGAGlb6dt/16RipYF3qwgtAqKBtr2d7iLhKU u8u4dqhbS7mKcE2yYvj+M8mMfwfS6UI8W5+vtpkaFVzYgjAK9qLJH7oQdss7ViboBv jsgg/RlEx8cGCnvy9QsNbf+8erzITjtkgR7AkxMQ= Message-ID: <4F807561.4040407@arcor.de> Date: Sat, 07 Apr 2012 19:12:01 +0200 From: Der Tiger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 To: Ted Trask CC: "alpine-devel@lists.alpinelinux.org" Subject: Re: [alpine-devel] [Patch] acf-iptables: fixing model References: <4F6E1119.8080306@arcor.de> <1333732837.18993.YahooMailNeo@web130105.mail.mud.yahoo.com> In-Reply-To: <1333732837.18993.YahooMailNeo@web130105.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit ReHi Ted, Thank you for your extensive fixing! I'm going to test the changes as soon as I got my router to forward packets proberly and will report back with the test results (hopefully soon). Regards, Tiger Am 2012-04-06 19:20, schrieb Ted Trask: > Thank you for the patch, and sorry for the long delay before properly > responding. Unfortunately, the bugs you found were not the only ones > present. I guess acf-iptables hadn't been tested in a while. Please > see http://git.alpinelinux.org/cgit/acf-iptables/commit/?id=ce765fba9cf9fd1c4b1981ab137df35c4b662b04 > for the changes I committed. Please try using the file > http://git.alpinelinux.org/cgit/acf-iptables/tree/iptables-model.lua to > make sure I fixed your reported problems. Once I hear back from you, > I'll feel more confident in bumping the package version. > > Ted > > ------------------------------------------------------------------------ > *From:* Der Tiger > *To:* alpine-devel@lists.alpinelinux.org > *Sent:* Saturday, March 24, 2012 2:23 PM > *Subject:* [alpine-devel] [Patch] acf-iptables: fixing model > > Hi, > > There are two bugs causing the web interface to malfunction when either > a protocol selection is negated using a exclamation mark (!) or a > comment is entered in the appropriate field of the form. > > PLEASE, make sure removing the escaping of the spec string does not > cause problems with certain data entered in the form! So far, I had no > troubles while testing, because the fields are checked in > validate_rule(), anyway. > > Regards, Tiger > > --- /usr/share/acf/app/iptables/iptables-model.lua.orig > +++ /usr/share/acf/app/iptables/iptables-model.lua > @@ -147 +147 @@ > - addparameter(rule.value.protocol.value, "-p") > + addparameter(rule.value.protocol.value, "-p", true) > @@ -520 +520 @@ > - local cmd = path .. "iptables -t " .. > format.escapespecialcharacters(rule.value.table.value) .. " -R " .. > format.escapespecialcharacters(rule.value.chain.value) .. " " .. > format.escapespecialcharacters(rule.value.position.value) .. " " .. > format.escapespecialcharacters(spec) .. " 2>&1" > + local cmd = path .. "iptables -t " .. > format.escapespecialcharacters(rule.value.table.value) .. " -R " .. > format.escapespecialcharacters(rule.value.chain.value) .. " " .. > format.escapespecialcharacters(rule.value.position.value) .. " " .. spec > .. " 2>&1" > > > > --- > Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org > > Help: alpine-devel+help@lists.alpinelinux.org > > --- > > > --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---