Linux Netfilter discussions
 help / color / mirror / Atom feed
* nftables: How to filter only ipv6 SSH traffic in an inet table?
@ 2018-02-06 16:28 Merlin Büge
  2018-02-07  0:32 ` Duncan Roe
  0 siblings, 1 reply; 7+ messages in thread
From: Merlin Büge @ 2018-02-06 16:28 UTC (permalink / raw)
  To: netfilter

Hey all,

I'm playing around with nftables and wonder how I could filter e.g.
only ipv6 SSH traffic in an inet table?

I've set up a basic inet filter table with the three chains input,
forward and output.

When I then do:

"nft add rule inet filter input ip6 nexthdr tcp tcp dport ssh drop"

... "nft list ruleset" is showing my only "tcp dport ssh drop", so it
seems the ipv6 bit got missed. I also tried:

"nft add rule inet filter input meta nfproto ipv6 tcp dport ssh drop"

... but it yields to the same output.

What am I doing wrong here?

Note that I'm not wanting to actually drop IPv6 SSH traffic, I'm just
trying to get used to nftables :)

I'm using nftables v0.8.2 on an up-to-date archlinux.

Any pointer appreciated!

Thanks!
-- 
Merlin Büge <toni@bluenox07.de>

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

end of thread, other threads:[~2018-02-18  8:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-06 16:28 nftables: How to filter only ipv6 SSH traffic in an inet table? Merlin Büge
2018-02-07  0:32 ` Duncan Roe
2018-02-07 19:26   ` Pablo Neira Ayuso
2018-02-08  3:14     ` Merlin Büge
2018-02-18  4:00       ` Duncan Roe
2018-02-18  4:10         ` Duncan Roe
2018-02-18  8:52         ` Duncan Roe

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