From owner-freebsd-ipfw@freebsd.org Sun Jan 17 21:00:38 2021 Return-Path: Delivered-To: freebsd-ipfw@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D4B544D7E91 for ; Sun, 17 Jan 2021 21:00:38 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4DJnPf53qLz4W1r for ; Sun, 17 Jan 2021 21:00:38 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id AD5F64D7DD1; Sun, 17 Jan 2021 21:00:38 +0000 (UTC) Delivered-To: ipfw@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AD0FB4D7E90 for ; Sun, 17 Jan 2021 21:00:38 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DJnPf3yyCz4W49 for ; Sun, 17 Jan 2021 21:00:38 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 75E0D18A for ; Sun, 17 Jan 2021 21:00:38 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 10HL0cVT080549 for ; Sun, 17 Jan 2021 21:00:38 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 10HL0cOL080548 for ipfw@FreeBSD.org; Sun, 17 Jan 2021 21:00:38 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202101172100.10HL0cOL080548@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: ipfw@FreeBSD.org Subject: Problem reports for ipfw@FreeBSD.org that need special attention Date: Sun, 17 Jan 2021 21:00:38 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jan 2021 21:00:39 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- New | 215875 | [ipfw] ipfw lookup tables do not support mbuf_tag New | 232764 | [ipfw] share/examples/ipfw/change_rules.sh: Suppo 2 problems total for which you should take action. From owner-freebsd-ipfw@freebsd.org Wed Jan 20 15:28:13 2021 Return-Path: Delivered-To: freebsd-ipfw@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A8C2F4FA08A for ; Wed, 20 Jan 2021 15:28:13 +0000 (UTC) (envelope-from eksffa@freebsdbrasil.com.br) Received: from leviatan.freebsdbrasil.com.br (leviatan.freebsdbrasil.com.br [177.10.156.9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DLTth31yVz4vrp for ; Wed, 20 Jan 2021 15:28:11 +0000 (UTC) (envelope-from eksffa@freebsdbrasil.com.br) Received: (qmail 54715 invoked from network); 20 Jan 2021 12:28:08 -0300 Received: by simscan 1.4.0 ppid: 54692, pid: 54712, t: 0.1036s scanners: attach: 1.4.0 clamav: 0.102.3/m:59/d:25889 Received: from unknown ([10.69.64.13]) (envelope-sender ) by capeta.freebsdbrasil.com.br (qmail-ldap-1.03) with SMTP for ; 20 Jan 2021 12:28:08 -0300 From: Patrick Tracanelli Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Subject: Lookup tables with dst-port as argument Message-Id: <2BBD30C7-044F-4846-9845-C7605306CB5B@freebsdbrasil.com.br> Date: Wed, 20 Jan 2021 12:26:38 -0300 To: freebsd-ipfw@freebsd.org X-Mailer: Apple Mail (2.3654.40.0.2.32) X-Rspamd-Queue-Id: 4DLTth31yVz4vrp X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of eksffa@freebsdbrasil.com.br designates 177.10.156.9 as permitted sender) smtp.mailfrom=eksffa@freebsdbrasil.com.br X-Spamd-Result: default: False [-2.80 / 15.00]; RCVD_TLS_LAST(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[177.10.156.9:from]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ipfw@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[177.10.156.9:from:127.0.2.255]; ARC_NA(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:177.10.156.0/25]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_NA(0.00)[freebsdbrasil.com.br]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:61894, ipnet:177.10.156.0/24, country:BR]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-ipfw] X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jan 2021 15:28:13 -0000 Hello FreeBSD community, I need to dynamically allocate filtering ports on a tuplet, table would = do the job, can I lookup the port argument from a table? Something like: ipfw add count all from =E2=80=9Ctable(blist)=E2=80=9D to any dst-port = tablearg in=20 In the above example table blist was created as =E2=80=9Cipfw table = blist create type number=E2=80=9D. It certainly won=E2=80=99t work as above written since tablearg is not = supported for dst-port.=20 Is there any other approach possible to reach this desired behavior?= From owner-freebsd-ipfw@freebsd.org Wed Jan 20 16:43:30 2021 Return-Path: Delivered-To: freebsd-ipfw@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D59944FB77D for ; Wed, 20 Jan 2021 16:43:30 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [5.45.198.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DLWYY4BqTz3HDT for ; Wed, 20 Jan 2021 16:43:29 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from myt5-70eb0a1f1a7b.qloud-c.yandex.net (myt5-70eb0a1f1a7b.qloud-c.yandex.net [IPv6:2a02:6b8:c12:3e23:0:640:70eb:a1f]) by forward100j.mail.yandex.net (Yandex) with ESMTP id 6D9AA50E0724; Wed, 20 Jan 2021 19:43:26 +0300 (MSK) Received: from myt5-aad1beefab42.qloud-c.yandex.net (myt5-aad1beefab42.qloud-c.yandex.net [2a02:6b8:c12:128:0:640:aad1:beef]) by myt5-70eb0a1f1a7b.qloud-c.yandex.net (mxback/Yandex) with ESMTP id zVnbsiroal-hPH0DRnV; Wed, 20 Jan 2021 19:43:26 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1611161006; bh=LUrr6cxQT3Jgnwy8CvDAlwYdoozAyl5vQxnUhVQ0KX8=; h=In-Reply-To:From:Date:References:To:Subject:Message-ID; b=skvZuwkUw9prkyz/RWwwhQ84x/MDy1u5Bbzh90o95D1F/AY/LfMViqrh9eRrCCUq/ HnZfUdYkoMczo9FPGiJ5+dvbhzWSDUEE29N/L45r+GyN5IrZCPkrPI5IT6KRs6Ut0P NI21Bt1i1UokdY5OJliYaA0UEYfLtJAFBgclqdvM= Received: by myt5-aad1beefab42.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id 8BvgprSRmf-hOnOhwIp; Wed, 20 Jan 2021 19:43:24 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Subject: Re: Lookup tables with dst-port as argument To: Patrick Tracanelli , freebsd-ipfw@freebsd.org References: <2BBD30C7-044F-4846-9845-C7605306CB5B@freebsdbrasil.com.br> From: "Andrey V. Elsukov" Message-ID: <53b369d9-7db9-69ab-4db5-db19e18a7051@yandex.ru> Date: Wed, 20 Jan 2021 19:41:57 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <2BBD30C7-044F-4846-9845-C7605306CB5B@freebsdbrasil.com.br> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4DLWYY4BqTz3HDT X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yandex.ru header.s=mail header.b=skvZuwkU; dmarc=pass (policy=none) header.from=yandex.ru; spf=pass (mx1.freebsd.org: domain of bu7cher@yandex.ru designates 5.45.198.240 as permitted sender) smtp.mailfrom=bu7cher@yandex.ru X-Spamd-Result: default: False [-4.10 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yandex.ru]; R_SPF_ALLOW(-0.20)[+ip4:5.45.192.0/19]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[yandex.ru:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yandex.ru,none]; NEURAL_HAM_SHORT(-1.00)[-0.999]; RCVD_IN_DNSWL_LOW(-0.10)[5.45.198.240:from]; RCVD_TLS_LAST(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[5.45.198.240:from]; FREEMAIL_ENVFROM(0.00)[yandex.ru]; ASN(0.00)[asn:13238, ipnet:5.45.192.0/18, country:RU]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yandex.ru:dkim]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yandex.ru:s=mail]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[5.45.198.240:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[5.45.198.240:from]; MAILMAN_DEST(0.00)[freebsd-ipfw] X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jan 2021 16:43:30 -0000 On 20.01.2021 18:26, Patrick Tracanelli wrote: > Hello FreeBSD community, > > I need to dynamically allocate filtering ports on a tuplet, table > would do the job, can I lookup the port argument from a table? > Something like: > > ipfw add count all from “table(blist)” to any dst-port tablearg in > > In the above example table blist was created as “ipfw table blist > create type number”. > > It certainly won’t work as above written since tablearg is not > supported for dst-port. > > Is there any other approach possible to reach this desired behavior? Hi, it seems you need to take alook at the 'lookup dst-port tablename' opcode. -- WBR, Andrey V. Elsukov