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?=