From: Patrick McHardy <kaber@trash.net>
To: Herve Eychenne <rv@wallfire.org>
Cc: Netfilter Development Mailinglist <netfilter-devel@lists.netfilter.org>
Subject: Re: SNAT from multiple interfaces with the same IP?
Date: Mon, 05 Dec 2005 00:41:25 +0100 [thread overview]
Message-ID: <43937EA5.9000004@trash.net> (raw)
In-Reply-To: <20051204233557.GB5617@eychenne.org>
Herve Eychenne wrote:
> On Sun, Dec 04, 2005 at 05:02:09PM +0100, Patrick McHardy wrote:
>
>>- The incoming interface is not known anymore in POST_ROUTING
>
> Sorry, but... why? (that was my question indeed)
In the input path the incoming interface is stored in the skb
in skb->dev. On the output path (POST_ROUTING) it contains the
outgoing interface. This might actually be changeable with not
too much effort, one of my IPsec patches already reorders the
POST_ROUTING hook.
>>- Locally generated packets don't even have an incoming interface
>
> So what?
> If you could use -i, then locally generated packets wouldn't match
> (that's not a problem because you would do it on purpose).
> If you don't, it would work as it used to till now.
Yes, that wouldn't be problem.
prev parent reply other threads:[~2005-12-04 23:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-04 12:30 SNAT from multiple interfaces with the same IP? Carl-Daniel Hailfinger
2005-12-04 15:31 ` Patrick McHardy
2005-12-04 15:37 ` Herve Eychenne
2005-12-04 16:02 ` Patrick McHardy
2005-12-04 23:35 ` Herve Eychenne
2005-12-04 23:41 ` Patrick McHardy [this message]
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=43937EA5.9000004@trash.net \
--to=kaber@trash.net \
--cc=netfilter-devel@lists.netfilter.org \
--cc=rv@wallfire.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.