Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Wim Ceulemans <wim.ceulemans@able.be>
To: Daniel Chemko <dchemko@smgtec.com>
Cc: jt@hpl.hp.com, netfilter@lists.netfilter.org
Subject: Re: netfilter before routing for local outgoing packets ?
Date: Fri, 26 Sep 2003 09:36:18 +0200	[thread overview]
Message-ID: <3F73EC72.2060809@able.be> (raw)
In-Reply-To: <7C9884991ADAE0479C14F10C858BCDF5122E52@alderaan.smgtec.com>

[-- Attachment #1: Type: text/plain, Size: 1347 bytes --]

Daniel

See recent discussion about the routing decision in the netfilter-devel 
archive.
As I understood it:

The first routing decision is taken only for packets originating from an 
unbound socket. If the source ip address is determined (by the routing 
decision), then the packet travels through the output chains and only if 
it is changed in the mangle table it can be re-routed.

For packets originating from a bound socket, no routing decision is 
taken before the output chain, only the routing decision after is taken.

Regards
Wim

Daniel Chemko wrote:

>If you mark a packet in the OUTPUT table, the routing algorithm should
>re-run and decide the path that was defined in the routing policy, so
>here is the order of relevant events:
>
>Program Send Packet
>Routing Decision - Go out normal Interface
>MANGLE: OUTPUT - Mark packet as fwmark 1
>Routing Decision - Choose route as usual, but include fwmark 1 in
>equation.
>
>
>Warning: That is supposedly the behavior, but I have yet to get it
>working properly.
>
>
>
>  
>


-- 
Wim Ceulemans
R&D Engineer

Secure Internet Communication with aXs Guard

Able NV
Leuvensesteenweg 282 - B-3190 Boortmeerbeek - Belgium
Phone: + 32 15 50.44.00 - Fax: + 32 15 50.44.09
E-mail: wim.ceulemans@able.be



--
Security check on this e-mail has been done by aXs GUARD
(http://www.axsguard.com)


  reply	other threads:[~2003-09-26  7:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-25 22:46 netfilter before routing for local outgoing packets ? Daniel Chemko
2003-09-26  7:36 ` Wim Ceulemans [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-09-24 22:55 Jean Tourrilhes
2003-09-25 22:29 ` DALive Editor

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=3F73EC72.2060809@able.be \
    --to=wim.ceulemans@able.be \
    --cc=dchemko@smgtec.com \
    --cc=jt@hpl.hp.com \
    --cc=netfilter@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox