From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Martin Gignac <martin.gignac@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: How to troubleshoot (suspected) flowtable lockups/packet drops?
Date: Wed, 17 Mar 2021 11:34:43 +0100 [thread overview]
Message-ID: <20210317103443.GA18462@salvia> (raw)
In-Reply-To: <CANf9dFMxabVweO2ipnPL8Ncemc9wQaxeJQs0dazrgf=VeXVjbA@mail.gmail.com>
On Tue, Mar 16, 2021 at 09:37:44PM -0400, Martin Gignac wrote:
> Hi Pablo,
>
> How can I add the 'counter' option to the existing flowtable? Is this
> possible? I tried the following:
>
> [magi@s116r2l1fw01a ~]$ sudo nft add flowtable inet filter f {
> hook ingress priority filter \; counter \;}
Sorry, support for updating flowtable properties is missing:
https://patchwork.ozlabs.org/project/netfilter-devel/patch/20210317103156.23859-1-pablo@netfilter.org/
https://patchwork.ozlabs.org/project/netfilter-devel/patch/20210317103156.23859-2-pablo@netfilter.org/
> It didn't complain, but I couldn't see the 'counter' option when I
> listed the flowtable:
>
> [magi@s116r2l1fw01a ~]$ sudo nft list flowtables
> Did not kill
> table inet filter {
> flowtable f {
> hook ingress priority filter
> devices = { tun0, bond0, dummy0, bond1.999, bond1,
> vrf-conntrackd, vrf-mgmt, enp66s0f1, enp66s0f0, enp5s0f1, enp5s0f0,
> eno4, eno3, eno2, eno1 }
> }
> }
> table ip nat {
> }
>
> And looking at the output of conntrack -L, the counters didn't
> increase past the initial flow creation packet:
>
> tcp 6 src=192.168.125.3 dst=192.168.40.254 sport=53420
> dport=22 packets=1 bytes=60 src=192.168.40.254 dst=192.168.125.3
> sport=22 dport=53420 packets=1 bytes=60 [OFFLOAD] mark=0 use=2
>
> How do I enable the 'counter' option exactly (since I'm clearly doing
> something wrong)?
Set on the counter flags at flowtable creation time, ie. flowtable 'f'
should not exist.
# cat flowtable.nft
table inet filter {
flowtable f {
hook ingress priority filter
devices = { tun0, bond0, dummy0, bond1.999, bond1, vrf-conntrackd, vrf-mgmt, enp66s0f1, enp66s0f0, enp5s0f1, enp5s0f0, eno4, eno3, eno2, eno1 }
counter
}
}
# nft -f flowtable.nft
next prev parent reply other threads:[~2021-03-17 10:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-16 15:43 How to troubleshoot (suspected) flowtable lockups/packet drops? Martin Gignac
2021-03-16 23:05 ` Pablo Neira Ayuso
2021-03-17 1:37 ` Martin Gignac
2021-03-17 10:34 ` Pablo Neira Ayuso [this message]
2021-03-17 19:07 ` Martin Gignac
2021-03-17 20:42 ` Pablo Neira Ayuso
2021-03-17 22:01 ` Martin Gignac
2021-03-17 22:28 ` Pablo Neira Ayuso
2021-03-18 2:23 ` Martin Gignac
2021-03-18 16:20 ` Pablo Neira Ayuso
2021-03-18 17:00 ` Pablo Neira Ayuso
2021-03-18 17:24 ` Martin Gignac
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210317103443.GA18462@salvia \
--to=pablo@netfilter.org \
--cc=martin.gignac@gmail.com \
--cc=netfilter@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox