netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ip_route_me_harder question
@ 2009-01-07 17:19 Giant Sand Fan's
  2009-01-12  5:18 ` Patrick McHardy
  0 siblings, 1 reply; 6+ messages in thread
From: Giant Sand Fan's @ 2009-01-07 17:19 UTC (permalink / raw)
  To: netfilter-devel

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.

thanks.

-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

^ permalink raw reply	[flat|nested] 6+ messages in thread
* ip_route_me_harder question...
@ 2003-11-26 15:10 Pablo Cingolani
  2003-11-26 20:19 ` Jon
  0 siblings, 1 reply; 6+ messages in thread
From: Pablo Cingolani @ 2003-11-26 15:10 UTC (permalink / raw)
  To: netfilter-devel


Refered to a question posted by "Zeeshan Ali <zeelists@yahoo.com>" a couple of days ago, I've suggested him to
use ip_route_me_harder after changing a packet's saddr/daddr (at NF_IP_PRE_ROUTING).
I've noticed that it doesn't work because after the hook changes the packet, ip_rcv_finish() calls
 skb->dst->input(skb) which seems to setted to something like 'dst_discard' (instead of 'ip_forward()' which is
what I was expecting).
Can someone give me a hint on what is wrong / what should be done to (correctly) change the routes 
so that the packet is forwarded? 
Thank you
   Pablo

P.S.: Packet's saddr is changed to a local one.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-01-12  9:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
  -- 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

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).