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@xxxxxxxxx>: > 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 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html