All of lore.kernel.org
 help / color / mirror / Atom feed
From: Phil Sutter <phil@nwl.cc>
To: lartc@vger.kernel.org
Subject: Re: 'ip route' and 'ipset'...
Date: Fri, 31 Jan 2020 15:49:57 +0000	[thread overview]
Message-ID: <20200131154957.GU28318@orbyte.nwl.cc> (raw)
In-Reply-To: <20200131150625.GL3557@sv.lnf.it>

Hi,

On Fri, Jan 31, 2020 at 04:06:25PM +0100, Marco Gaiarin wrote:
> There's a way to use 'ipset' (eg, host list) in a route, eg 'ip route'
> and/or 'ip rule'?

Not to my knowledge, but you may use nftables' route type chains to
implement policy routing in nftables which supports sets natively. If
any of paket mark, source or destination address or TOS fields are
changed by a rule in route type chain, routing decision will be redone
for the packet.

Cheers, Phil

  reply	other threads:[~2020-01-31 15:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-31 15:06 'ip route' and 'ipset' Marco Gaiarin
2020-01-31 15:49 ` Phil Sutter [this message]
2020-01-31 16:34 ` Marco Gaiarin
2020-01-31 20:10 ` Anton Danilov

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=20200131154957.GU28318@orbyte.nwl.cc \
    --to=phil@nwl.cc \
    --cc=lartc@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.