
ole at ans
Aug 29, 2007, 5:12 AM
Post #12 of 14
(3440 views)
Permalink
|
|
Re: [PATCH] ipt_ROUTE for kernel 2.6.21.5
[In reply to]
|
|
On Wed, 29 Aug 2007, Jan Engelhardt wrote: > > On Aug 29 2007 13:23, Krzysztof Oledzki wrote: >> >>> Just FYI: One more reason for removing it is that its broken wrt. >>> IPsec handling >> >> Could you explain it a bit? What is wrong and maybe some clue how it should be >> fixed? > > ip_direct_send does not do IPSEC IIRC. Neither ip_finish_output2 which is a place from this code comes from. Anyway, I found that indeed ip_finish_output, which calls ip_finish_output2, contains xfrm code: #if defined(CONFIG_NETFILTER) && defined(CONFIG_XFRM) /* Policy lookup after SNAT yielded a new policy */ if (skb->dst->xfrm != NULL) { IPCB(skb)->flags |= IPSKB_REROUTED; return dst_output(skb); } #endif Is that all? So, how it should work with ROUTE? I assume that teed packets shouldn't go via xfrm, neither directly (--gw, --oif) routed packets if there is no tee, right? Best regards, Krzysztof Olêdzki
|