All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Cédric de Launois" <delaunoi@info.ucl.ac.be>
To: Michael Richardson <mcr@sandelman.ottawa.on.ca>
Cc: Netfilter Development Mailinglist <netfilter-devel@lists.netfilter.org>
Subject: Re: [PATCH] update for ROUTE target in Netfilter-Extension HOWTO [ENG][FR]
Date: 20 Sep 2002 16:22:31 +0200	[thread overview]
Message-ID: <1032531751.3132.51.camel@descartes> (raw)
In-Reply-To: <200209201341.g8KDfp84008738@marajade.sandelman.ottawa.on.ca>

>   I want to be clear here... the ROUTE target lets me change the destination
> of a packet to be a specific interface, right?
Right, but the target also directly routes the packet to that interface.
That is, the packet does _not_ traverse the standard linux kernel
routing table, but is sent to the interface.

ASCII art may help :

Packets matching ROUTE target go directly from PREROUTING chain
to the interface.


          Regular routed Packet
---->PRE------>[kernel routes]--->FWD------->POST------>
      |                                            ^
      |                                            |
       `-------------------------------------------'
          Packets matching ROUTE target


Note that, if the interface is a tunnel, then the packet is
encapsulated, and this encapsulated packet then goes
through the OUPUT and POSTROUTING chains.

>   Does it continue through the rest of the table?
No, once the ROUTE target applies for a packet, the packet is 'stolen'.
No further rules are consulted.

> Could I, for instance, add QoS tags, or other stuff to it?
You can always mark a packet, add QoS tags and then, use
the ROUTE target applying on the marked packets.

> Could a later rule override the ROUTE again?
See 2nd question.

>   This is ideal for future FreeSWAN use.
If you tell me what exactly the problem is, I can even
add some features to help for this ;)

>   I agree that the interaction with NAT is confusing at present. 
The ROUTE target is now to be inserted in the mangle table.
This means that the ROUTE target applies before NAT (mangle
table has higher priority than nat table, but lower than
conntrack table).
So there is no longer interactions with the NAT.

Cédric

       reply	other threads:[~2002-09-20 14:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200209201341.g8KDfp84008738@marajade.sandelman.ottawa.on.ca>
2002-09-20 14:22 ` Cédric de Launois [this message]
2002-09-20 16:17   ` [PATCH] update for ROUTE target in Netfilter-Extension HOWTO [ENG][FR] Michael Richardson
2002-09-21  9:11     ` Toshihiro Sonoda
2003-03-05 15:17 Cedric de Launois
2003-03-05 18:15 ` Harald Welte
  -- strict thread matches above, loose matches on Subject: below --
2002-09-20 13:19 Cédric de Launois
2002-09-21 13:36 ` Fabrice MARIE

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=1032531751.3132.51.camel@descartes \
    --to=delaunoi@info.ucl.ac.be \
    --cc=mcr@sandelman.ottawa.on.ca \
    --cc=netfilter-devel@lists.netfilter.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.