From owner-freebsd-stable@FreeBSD.ORG Tue Nov 19 21:21:47 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 85E196A1; Tue, 19 Nov 2013 21:21:47 +0000 (UTC) Received: from mail-ob0-x235.google.com (mail-ob0-x235.google.com [IPv6:2607:f8b0:4003:c01::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 43B7B2D5A; Tue, 19 Nov 2013 21:21:47 +0000 (UTC) Received: by mail-ob0-f181.google.com with SMTP id uy5so1217520obc.40 for ; Tue, 19 Nov 2013 13:21:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Y936zrRXVQzkFHjnwi3FBy+CUSQLW9Axo/9ajfXdtA8=; b=FMoxHpNbovvgFB+qi1/9XQUI9G0khkzumF0BqEdyqBftq7b2cNnUBagtut/U581XFe VkekaVKZuls+vN2N42Dkte6W/YZ5ZEiaMxtG4pOpSzC5rAUJ1epzZ/9ym0H5Ta2EpRiE W8zyX8ooXVQ2mOmrHGeuNiHMJ5sgC/Ol/qC7BQ5PExK+F4ZJWb24F3SHQOAcjnd2HqgX kuO94WJ4+2tlB+YoafWpX8wHBhUeskNERtIGzSpGeYOmV+AZGJEkYDGMBngyZRh2AsQV dpHLobehvdgKoFNHIcsy6IWhL8HT5dISY5p4ieddN78GRwKQriWFUoUAEaLtHrMMSRkM CfTA== MIME-Version: 1.0 X-Received: by 10.182.220.225 with SMTP id pz1mr3350897obc.51.1384896106351; Tue, 19 Nov 2013 13:21:46 -0800 (PST) Received: by 10.76.177.234 with HTTP; Tue, 19 Nov 2013 13:21:46 -0800 (PST) In-Reply-To: References: Date: Tue, 19 Nov 2013 22:21:46 +0100 Message-ID: Subject: Re: ipfw table add problem From: Andreas Nilsson To: =?ISO-8859-1?Q?=D6zkan_KIRIK?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.16 Cc: freebsd-ipfw , freebsd-stable , Luigi Rizzo X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Nov 2013 21:21:47 -0000 On Tue, Nov 19, 2013 at 9:36 PM, =D6zkan KIRIK wrot= e: > Hi, > > > > On Tue, Nov 19, 2013 at 10:22 PM, Andreas Nilsson wro= te: > >> >> >> >> On Tue, Nov 19, 2013 at 8:55 PM, =D6zkan KIRIK wr= ote: >> >>> Hi, >>> >>> I'm using kernel FreeBSD 10.0-BETA3 #2 r257635 kernel. >>> I am trying to add port number to ipfw tables. But there is something >>> strange : >>> Problem is easily repeatable. >>> >>> #ipfw table 1 flush >>> #ipfw table 1 add 4899 >>> #ipfw table 1 list >>> ::/0 0 >>> >> Works with ipfw table 1 add 0 4899 >> > No, i want to use this table as port list ( to use with "lookup src-port > 1" ) . If you add like this, you cannot match against ports. Am I wrong? > No, that should be possible. > > >> >>> #ipfw table 1 flush >>> #ipfw table 1 add 10.2.3.01 ( not 10.0.0.1, the last 1 has 0 as >>> prefix ) >>> #ipfw table 1 list >>> ::/0 0 >>> >> Did you mean ipfw table 1 add 10.2.3.0 1 ? That works for me. >> > Please dont leave spaces between 0 and 1. > Ok. any specific reason to type it as 10.2.3.01 instead 0f 10.2.3.1 ? > > >> >>> #ipfw table 1 delete ::/0 >>> ipfw: setsockopt(IP_FW_TABLE_XDEL): No such process >>> >> However ipfw table 1 delete 0.0.0.0/0 does. >> > Thank you > >> >>> >>> I guess that, this problem is related to radix mask calculation >>> problem/fix. >>> >>> Is there a quick solution for this. >>> Best, regards, >> >> >> Best regards >> Andreas >> > > Best regards, > Ozkan. > > Best regards Andreas