Date: Wed, 20 Jan 2021 19:41:57 +0300 From: "Andrey V. Elsukov" <bu7cher@yandex.ru> To: Patrick Tracanelli <eksffa@freebsdbrasil.com.br>, freebsd-ipfw@freebsd.org Subject: Re: Lookup tables with dst-port as argument Message-ID: <53b369d9-7db9-69ab-4db5-db19e18a7051@yandex.ru> In-Reply-To: <2BBD30C7-044F-4846-9845-C7605306CB5B@freebsdbrasil.com.br> References: <2BBD30C7-044F-4846-9845-C7605306CB5B@freebsdbrasil.com.br>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53b369d9-7db9-69ab-4db5-db19e18a7051>