From nobody Mon Dec 04 09:52:50 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 4SkJrJ1mcJz539Zw for ; Mon, 4 Dec 2023 09:53:04 +0000 (UTC) (envelope-from cia@mud.ro) Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) (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 4SkJrG6zqkz4HmD for ; Mon, 4 Dec 2023 09:53:02 +0000 (UTC) (envelope-from cia@mud.ro) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=mud-ro.20230601.gappssmtp.com header.s=20230601 header.b=JOhdMpVX; spf=pass (mx1.freebsd.org: domain of cia@mud.ro designates 2607:f8b0:4864:20::112e as permitted sender) smtp.mailfrom=cia@mud.ro; dmarc=none Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-5d05ff42db0so47421597b3.2 for ; Mon, 04 Dec 2023 01:53:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mud-ro.20230601.gappssmtp.com; s=20230601; t=1701683582; x=1702288382; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=m/Qt3i4UwaavgB4dAQJw+NJMo0tvtDPtdc2uzyM3cD0=; b=JOhdMpVXyGnZIJnSsMOGOT0eqZdxvBevEOOXQ9gEvPSvG8Ghjsnm0u1ecE+9m1xyjp UHFLo/wgsZzaXtAjGXKM8aVPrzLx04vvlIEaAdS1THQ2sXRXGO/qgsYzJmeIyJc/Y/Ef pDK/tcvqyfjfMnqxfdhsaSLtJeM6LXuzbh/NdSTxKiUGvgzTRwFFSUfKirDVO8jPRHuy ELwrTMXjwO9GSpvvXWS69jPI5kN+M75ZqkcljQpN/oONKvb8rOR3JAPGjaQlaF7g1eEz v+912CaTKT8kMIwOJux73lruG5vLSPjRqU6hscKjATKeh47HuTJ6cmSmnzHZE2Vi2035 PMzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701683582; x=1702288382; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=m/Qt3i4UwaavgB4dAQJw+NJMo0tvtDPtdc2uzyM3cD0=; b=vyZWUwhudgzFbWfNVJ/18r/A+3xLLylHxfAkF/NJzFxMCS/iBhAbHsGw2vPs/tTKKB bpW3v/HxaaNY6RADsjxRjrxUI4dpUOFb9rSsweQGGutEtel6cEfS+Lf5T+3VN6C6dzKv PHlY+BYx+RhJ067E66q9LywTqxYhRYkNzF0g9U/z6a7LY6MzAOK9zquqWKyYJEEVnyIn KFN08bAyD1ta69nm3c86kFVx34FLoxV5QaxOxSHuVXnL0wSUb7k8Jv8YH53NmEqjwgig J5I7KYXhFl6lyDDr0hCT5TVWHvJAMV/nwXP2bfU6sIERlqgBZBGdqIpN7qF6mq0W9oC7 zl6g== X-Gm-Message-State: AOJu0YxuG9JgeC8fR2MxoprQp51kQ8rXiUcUl6aVPeuRVrCKoNTAiWDP ixxBr9/FDJqQRjfSSYbsoMXn9JuCLpBcP9N8gntc+87c7ftNSSIpMvc= X-Google-Smtp-Source: AGHT+IGeKsCDSqFbLtYyX7fA09AEvqPAkRPmuiaYETBAfLbUddJdimipYGdoYd/z1/8is97UzJy/Ng+a9Q9KHvKg65g= X-Received: by 2002:a81:6d07:0:b0:5d7:1941:2c32 with SMTP id i7-20020a816d07000000b005d719412c32mr3033777ywc.95.1701683581772; Mon, 04 Dec 2023 01:53:01 -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 From: adrian-ilarion ciobanu Date: Mon, 4 Dec 2023 11:52:50 +0200 Message-ID: Subject: flow table format specifier rules (14.0) To: freebsd-ipfw@freebsd.org Content-Type: multipart/alternative; boundary="000000000000697bda060bac15e7" X-Spamd-Result: default: False [-3.44 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.94)[-0.938]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[mud-ro.20230601.gappssmtp.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::112e:from]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-ipfw@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DKIM_TRACE(0.00)[mud-ro.20230601.gappssmtp.com:+]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[mud.ro]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ipfw@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4SkJrG6zqkz4HmD X-Spamd-Bar: --- --000000000000697bda060bac15e7 Content-Type: text/plain; charset="UTF-8" Hello, I seem to be able to create a flow table in which an entry is identified only by the protocol type and destination port but adding to it returns an error. Must a flow specifier always contain src-ip or should I be able to define a flow like "incoming UDP traffic from any to port 53" and also use it? #created OK ipfw table t4 create type flow:proto,dst-port ipfw table t4 detail --- table(t4), set(0) --- kindex: 10, type: flow:proto,dst-port references: 0, valtype: legacy algorithm: flow:hash items: 0, size: 296 algorithm hash info size: 512 items: 0 itemsize4: 32 itemsize6: 56 #can't add a ipfw table t4 add 6,2 0 ignored: 6,2 0 ipfw: Adding record failed: Invalid argument # this will work ipfw table t6 create type flow:src-ip,proto,dst-port ipfw table t6 add 2.2.2.2,6,2 0 added: 2.2.2.2,6,2 0 Thank you, Adrian --000000000000697bda060bac15e7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I seem to be able to = create a flow table in which an entry is identified only by the
p= rotocol type and destination port but adding=C2=A0to it returns an error.
Must a flow specifier always contain src-ip or should I be able to= define a flow
like "incoming UDP traffic from any to port 5= 3" and also use it?

#created OK
ipfw tab= le t4 create type flow:proto,dst-port

ipfw table t4 detail
<= br>
--- table(t4), set(0) ---
=C2=A0kindex: 10, type: flow:pro= to,dst-port
=C2=A0references: 0, valtype: legacy
=C2=A0algorithm: flo= w:hash
=C2=A0items: 0, size: 296
=C2=A0algorithm hash info
=C2=A0 = size: 512 items: 0 itemsize4: 32 itemsize6: 56

#can't= add a
ipfw table t4 add 6,2 0

ignored: 6,2 0ipfw: Adding record failed: Invalid argument

# this will work=C2=A0
ipfw table t6 create type flow:src-ip,pro= to,dst-port

ipfw table t6 add 2.2.2.2,6,2 0
added: 2= .2.2.2,6,2 0


Thank you,
Adrian

--000000000000697bda060bac15e7--