From nobody Mon Feb 27 19:48:15 2023 X-Original-To: freebsd-ipfw@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PQWJW72xXz3vXLQ for ; Mon, 27 Feb 2023 19:48:27 +0000 (UTC) (envelope-from vitspec@gmail.com) Received: from mail-vs1-xe2c.google.com (mail-vs1-xe2c.google.com [IPv6:2607:f8b0:4864:20::e2c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PQWJW3l29z4DhC for ; Mon, 27 Feb 2023 19:48:27 +0000 (UTC) (envelope-from vitspec@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-vs1-xe2c.google.com with SMTP id o6so12988408vsq.10 for ; Mon, 27 Feb 2023 11:48:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=cTFh2Iyp2kY0LuF+RTx4PL98yQzC2KpuF8eEaC3K6Eg=; b=P370WWHnuSAYuS3o7A8jqEWHAdpuupI8Rg0WCozJzDb8KrINUZxoFUeMMJ4H13Y6Gk wBVuAiZ+arY3b1wS6Ibm5ft4C0e+sC1dwVhMJBxSVCk2Cwl1Dc7OOA88W3YCOyNgCxPr t+SewXNsrf2NVCUUDz5asCoRp/NVaxOpn5bvwHGdf+E5LvsWqUOHfpWDHe1ciMlHZPuJ WBXo1R3AxFKC8xvb8BZc7+FTQeJYpgmi86LGvUWGT1MCCT6XMghAEqt3Kltu3gYwsN6E uvAFsxIcC2qFsM9PNex/4dKeItqOIqu07R58qedAYDyFIj7MAAgoyTzhRk8wMjOLqFKo uoEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cTFh2Iyp2kY0LuF+RTx4PL98yQzC2KpuF8eEaC3K6Eg=; b=laCYVi2k8H+0yp2Pd5750rz9l69c9Snhli2WEUv3QiJo/4iEiChZrLMlpZ5OOc2sGZ MZ2vash40UzU+qFB7OmggzWbJ4+QwIzGMzwjupb4locWn1N5RRahVvUod92GldX+ickn jcHo1TbaO9Fnwdfaz5niLDtVo8H+bR8HiZhns/kaqAWYL/y51fZIFxi8qVTQ8Tc6JAe1 O7ouM4u6CEN+bMsBQIgxJx1nwp4g6rhOXGOYhgO1xFTuuuySuA3Uz0eJwWc0pXzvXPIO adVRxH3DNo/k5m5xlOlFzNI+ClqIFtWqpw8SXZ7PNa5nigxzTarpz1LVPfKjODPwy5CO YaQg== X-Gm-Message-State: AO0yUKXhhmLEoX+fZlpMsvaBErvDrCibni9tZkpCQRI1TU+bFEsuEE8B ckh3GcJjLtoWkCbHIBFu4icugkf5BmIZY+tTM8IZt+aPgUU= X-Google-Smtp-Source: AK7set+Klj8ls/nFl4dleT457agCcN/6ohwoSSGQZwl7M7lv5V2pBp9PO2ZhFMSZtKmEXHaRZn3dvhIYFth2a1KXtV8= X-Received: by 2002:a67:f24e:0:b0:402:9ba2:bc62 with SMTP id y14-20020a67f24e000000b004029ba2bc62mr459669vsm.6.1677527306694; Mon, 27 Feb 2023 11:48:26 -0800 (PST) List-Id: IPFW Technical Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-ipfw List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ipfw@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Victor Gamov Date: Mon, 27 Feb 2023 22:48:15 +0300 Message-ID: Subject: Re: ipfw set X table NAME To: "Herbert J. Skuhra" Cc: freebsd-ipfw@freebsd.org Content-Type: multipart/alternative; boundary="0000000000003773f405f5b3c3de" X-Rspamd-Queue-Id: 4PQWJW3l29z4DhC X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --0000000000003773f405f5b3c3de Content-Type: text/plain; charset="UTF-8" On Mon, 27 Feb 2023 at 13:15, Herbert J. Skuhra wrote: > On Mon, Feb 27, 2023 at 01:00:48PM +0300, Victor Gamov wrote: > > Hi All > > > > On my FreeBSD 13.1-STABLE #0 stable/13-n253133-b51ee7ac252c I try to > create > > table with the same name at different sets: > > ===== > > $ ipfw set 0 table AAA create type addr > > $ ipfw set 1 table AAA create type addr > > ipfw: Table creation failed: File exists > > ===== > > > > Is it possible to create table with the same name at different sets or > > tables are global? > > Have you checked ipfw(8)? > Section "Lookup tables" and "Sets of Rules"? > Does it work if you set net.inet.ip.fw.tables_sets=1? > Herbert, thank you so much! With net.inet.ip.fw.tables_sets=1 it works as expected. Thank you! -- CU, Victor Gamov --0000000000003773f405f5b3c3de Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, 27 Feb 2023 at 13:15, Herbert= J. Skuhra <herbert@gojira.at&g= t; wrote:
On Mon= , Feb 27, 2023 at 01:00:48PM +0300, Victor Gamov wrote:
> Hi All
>
> On my FreeBSD 13.1-STABLE #0 stable/13-n253133-b51ee7ac252c I try to c= reate
> table with the same name at different sets:
> =3D=3D=3D=3D=3D
> $ ipfw set 0 table AAA create type addr
> $ ipfw set 1 table AAA create type addr
> ipfw: Table creation failed: File exists
> =3D=3D=3D=3D=3D
>
> Is it possible to create table with the same name at different sets or=
> tables are global?

Have you checked ipfw(8)?
Section "Lookup tables" and "Sets of Rules"?
Does it work if you set net.inet.ip.fw.tables_sets=3D1?

=C2=A0Herbert, thank you so much!=C2=A0 With net.inet.ip.f= w.tables_sets=3D1 it works as expected.

Thank you!=


--
CU,
Victor Gamov
--0000000000003773f405f5b3c3de--