All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Giant Sand Fan's <rampxxxx@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: ip_route_me_harder question
Date: Mon, 12 Jan 2009 06:18:03 +0100	[thread overview]
Message-ID: <496AD28B.5070300@trash.net> (raw)
In-Reply-To: <417f50830901070919u7c90ac16x5771bece809568e4@mail.gmail.com>

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.

  reply	other threads:[~2009-01-12  5:18 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 [this message]
2009-01-12  9:43   ` Giant Sand Fan's
  -- 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=496AD28B.5070300@trash.net \
    --to=kaber@trash.net \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=rampxxxx@gmail.com \
    /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.