Re: "notification events for routing changes" patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please, do not top post. Thank you.

On Tue, 17 Nov 2015, Murat Sezgin wrote:

> Yes I know about the merged code. It works well for the regular linux 
> network traffic, but as I said in my email, if the traffic is offloaded 
> from the linux networking stack, the subsequent flows, after the route 
> change, will never seen by the iptables_nat modules, so the conntarck 
> entry cannot be killed.

If the traffic is offloaded from the networking stack, then how conntrack 
and nat are supposed to work?

Best regards,
Jozsef

> 
> On 11/17/15, 12:28 AM, "Jozsef Kadlecsik" <kadlec@xxxxxxxxxxxxxxxxx> wrote:
> 
> >On Mon, 16 Nov 2015, Murat Sezgin wrote:
> >
> >> While I was looking for a solution in the kernel for general routing
> >> change notification implementation, I came across your following patch.
> >> 
> >> http://www.spinics.net/lists/netfilter-devel/msg24239.html
> >> 
> >> In this email chain, you said that you found another simple solution and
> >> implemented it in the masquerade module. I saw that commit in the
> >>upstream
> >> kernel.
> >> 
> >> But I think the patch you proposed before also very useful for the fast
> >> path implementations. Because when a connection starts to flow through
> >>the
> >> fast path, linux networking stack no longer sees those packets. Then, if
> >> the route table is changed in some way, let?s say user add/delete a
> >>route
> >> with the ?route? or ?ip route? command, the fast path traffic will not
> >> aware of this change. So, if we have a notification mechanism like you
> >> have implemented, the fast path manager module can register itself to
> >> these events and manage its connections accordingly.
> >> 
> >> Do you have any plan to push and merge this path to the upstream kernel?
> >
> >No, the patch was inefficient from conntrack point of view and finally
> >the 
> >patch "Handle routing changes in MASQUERADE target, v4" went into the
> >kernel:
> >
> >http://www.spinics.net/lists/netfilter-devel/msg24276.html
> >
> >Best regards,
> >Jozsef
> >-
> >E-mail  : kadlec@xxxxxxxxxxxxxxxxx, kadlecsik.jozsef@xxxxxxxxxxxxx
> >PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
> >Address : Wigner Research Centre for Physics, Hungarian Academy of
> >Sciences
> >          H-1525 Budapest 114, POB. 49, Hungary
> 
> 
> --
> 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
> 

-
E-mail  : kadlec@xxxxxxxxxxxxxxxxx, kadlecsik.jozsef@xxxxxxxxxxxxx
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics, Hungarian Academy of Sciences
          H-1525 Budapest 114, POB. 49, Hungary
--
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



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux