From: "Giant Sand Fan's" <rampxxxx@gmail.com>
To: "Patrick McHardy" <kaber@trash.net>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: ip_route_me_harder question
Date: Mon, 12 Jan 2009 10:43:21 +0100 [thread overview]
Message-ID: <417f50830901120143t1ad797d6m98fa519b5be7a8e7@mail.gmail.com> (raw)
In-Reply-To: <496AD28B.5070300@trash.net>
Thanks, yes, i had check the sk_buff->entry in prerouting and post and
saw how it changes.
I understand that only had to call ip_route_me_harder in a hook
handler after a "routing block" if you have change the ip addresses.
2009/1/12 Patrick McHardy <kaber@trash.net>:
> Giant Sand Fan's wrote:
>>
>> Hi,
>>
>> I have a netfilter module that needs to reroute a packet after
>> unpacking it (minimal encap) in NF_IP_PRE_ROUTING, because the dst
>> changes. But even when a ip_route_me_harder with RTN_LOCAL works
>> (ret==0) the packet disappears.
>>
>> The question is , do i need to use ip_route_me_harder? because when
>> the dst of encapsulated packet is the local machine it works.
>
> You don't need rerouting in *PRE*ROUTING, regular routing will
> take care of this.
>
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
next prev parent reply other threads:[~2009-01-12 9:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-07 17:19 ip_route_me_harder question Giant Sand Fan's
2009-01-12 5:18 ` Patrick McHardy
2009-01-12 9:43 ` Giant Sand Fan's [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-11-26 15:10 Pablo Cingolani
2003-11-26 20:19 ` Jon
2003-11-26 21:18 ` Zeeshan Ali
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=417f50830901120143t1ad797d6m98fa519b5be7a8e7@mail.gmail.com \
--to=rampxxxx@gmail.com \
--cc=kaber@trash.net \
--cc=netfilter-devel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).