Linux Netfilter discussions
 help / color / mirror / Atom feed
* [nftables] granular rule for combined tcp & udp sports?
@ 2020-10-05 12:56 ѽ҉ᶬḳ℠
       [not found] ` <CABeHSrYi=MT8pD6nsRaUK7u56UvO-E7qh1Kmo0=YU386AE8aXw@mail.gmail.com>
  2020-10-06  8:31 ` Pablo Neira Ayuso
  0 siblings, 2 replies; 6+ messages in thread
From: ѽ҉ᶬḳ℠ @ 2020-10-05 12:56 UTC (permalink / raw)
  To: netfilter@vger.kernel.org

I am trying to get a granular logging rule going, combining tcp and udp 
sports for ip6 saddr but somehow failing:


tcp sport != { 80, 443, 993, 5228 } udp sport != 19302 ip6 saddr @g_6 
log flags all prefix "G_C :" continue

-> Error: conflicting protocols specified: tcp vs. udp



ip6 saddr @g_6 tcp sport != { 80, 443, 993, 5228 } | udp sport != 19302 
log flags all prefix "G_C :" continue;

-> Error: syntax error, unexpected '|', expecting newline or semicolon


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-10-09  6:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-05 12:56 [nftables] granular rule for combined tcp & udp sports? ѽ҉ᶬḳ℠
     [not found] ` <CABeHSrYi=MT8pD6nsRaUK7u56UvO-E7qh1Kmo0=YU386AE8aXw@mail.gmail.com>
2020-10-06  6:49   ` ѽ҉ᶬḳ℠
2020-10-09  6:23     ` Eliezer Croitor
2020-10-06  8:31 ` Pablo Neira Ayuso
2020-10-06  8:54   ` ѽ҉ᶬḳ℠
2020-10-06  9:04     ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox