Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Sep 2005 13:18:17 +0200
From:      Jeremie Le Hen <>
To:        vladone <>
Subject:   Re: in via or in recv
Message-ID:  <>
In-Reply-To: <>
References:  <> <> <> <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
>  U speak in this explanation about "outgoing path" or "incoming path".
> How i can find when i have an situation or another?
>  U say: "If the packet is on the outgoing path ....", so need to know
> when the packet is on "outgoing path" or "incoming path". How know
> that?

The incoming path is when the packet just entered the network stack,
after being received on the network adapter ; at this time, it has not
been routed yet.  Conversely, the outgoing path is when the packet has
been routed by the network stack, just before giving it to the network

Let's do some ASCII art :

            | FreeBSD box |
        |                     |
        |       Network       |
        |        stack        |
        |                     |
        |                     |
        |      [ROUTING]      |
        |        |   |        |
       fxp0      ^   v       sis0
...->---#---->---+   +-->-----#---->-...
        |                     |
        |incoming     outgoing|
        |  path         path  |

% ipfw add allow ip from any to any recv fxp0 xmit sis0

This rule will apply on the outgoing path (because of "xmit") and will
let through all packets that arrived on fxp0 and then leave through sis0.

If you have a third interface, let's say em0, then packets leaving
through sis0 but that has come through the latter won't match this rule.

I hope this help you to understand.  I will make my webpage more precise
on this.

Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >

Want to link to this message? Use this URL: <>