Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Martin Bednar <martin@serafean.cz>
To: netfilter@vger.kernel.org
Subject: nftables vmap concatenations with interval
Date: Tue, 27 Sep 2016 17:10:45 +0200	[thread overview]
Message-ID: <11357773.LdaEAIBM0O@nemmerle> (raw)

hi, 

using nftables, I want to create a vmap : 

map mymap {type ipv4_addr . iface_index : verdict }

I'd like the first argument to be an ip range/ network, so that I can add like 
so :
nft add element inet filter mymap { 172.18.0.1/24 . eth0 : accept }
or
nft add element inet filter mymap { 172.18.0.1-172.18.0.255 . eth0 : accept }

Any hints as to what to do it?

Thanks,

Martin.

             reply	other threads:[~2016-09-27 15:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-27 15:10 Martin Bednar [this message]
2016-09-27 19:11 ` nftables vmap concatenations with interval Pablo Neira Ayuso
2016-09-28 12:51   ` Martin Bednar

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=11357773.LdaEAIBM0O@nemmerle \
    --to=martin@serafean.cz \
    --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