All of lore.kernel.org
 help / color / mirror / Atom feed
From: "William N." <netfilter@riseup.net>
To: netfilter@vger.kernel.org
Subject: Re: nft not logging some layer 2 frames?
Date: Mon, 27 May 2024 17:17:18 -0000	[thread overview]
Message-ID: <20240527171718.7db995bf@localhost> (raw)
In-Reply-To: <70c9f5d0-b6be-4ab2-b154-d9d334ebb19d@del.bg>

On Mon, 27 May 2024 13:17:50 +0300 Teodor Milkov wrote:

> I just tried putting log before counter and still nothing showing in 
> logs. But does order really matter?

Perhaps not. I just thought it might be worth trying.
What happens if you remove the counter and use only log?

I tried this:

table netdev xxx {
        chain ingress {
                type filter hook ingress device "eth0" priority -600

                counter
                log prefix "TEST: "
                drop
        }
}

and I ran 'arp' on the other end of the eth0 link. I can see logging
works, i.e. without specifying any particular protocol whatsoever.
Counter works too.

  reply	other threads:[~2024-05-27 17:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-24 14:42 nft not logging some layer 2 frames? Teodor Milkov
2024-05-24 15:57 ` William N.
2024-05-27 10:17   ` Teodor Milkov
2024-05-27 17:17     ` William N. [this message]
2024-05-28 11:49       ` Teodor Milkov
2024-05-28 15:01         ` William N.
2024-06-11 18:25           ` Pablo Neira Ayuso
2024-06-11 19:12             ` William N.
2024-06-11 22:08               ` Pablo Neira Ayuso
2024-06-26 13:36             ` Teodor Milkov
2024-06-26 18:25               ` William N.

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=20240527171718.7db995bf@localhost \
    --to=netfilter@riseup.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.