* "notification events for routing changes" patch @ 2015-11-17 4:26 Murat Sezgin 2015-11-17 8:28 ` Jozsef Kadlecsik 0 siblings, 1 reply; 4+ messages in thread From: Murat Sezgin @ 2015-11-17 4:26 UTC (permalink / raw) To: netfilter-devel@vger.kernel.org Hi Jozsef, 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? Regards, Murat -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: "notification events for routing changes" patch 2015-11-17 4:26 "notification events for routing changes" patch Murat Sezgin @ 2015-11-17 8:28 ` Jozsef Kadlecsik 2015-11-17 17:55 ` Murat Sezgin 0 siblings, 1 reply; 4+ messages in thread From: Jozsef Kadlecsik @ 2015-11-17 8:28 UTC (permalink / raw) To: Murat Sezgin; +Cc: netfilter-devel@vger.kernel.org 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@blackhole.kfki.hu, kadlecsik.jozsef@wigner.mta.hu 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: "notification events for routing changes" patch 2015-11-17 8:28 ` Jozsef Kadlecsik @ 2015-11-17 17:55 ` Murat Sezgin 2015-11-17 20:25 ` Jozsef Kadlecsik 0 siblings, 1 reply; 4+ messages in thread From: Murat Sezgin @ 2015-11-17 17:55 UTC (permalink / raw) To: Jozsef Kadlecsik; +Cc: netfilter-devel@vger.kernel.org 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. Thanks, Murat On 11/17/15, 12:28 AM, "Jozsef Kadlecsik" <kadlec@blackhole.kfki.hu> 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@blackhole.kfki.hu, kadlecsik.jozsef@wigner.mta.hu >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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: "notification events for routing changes" patch 2015-11-17 17:55 ` Murat Sezgin @ 2015-11-17 20:25 ` Jozsef Kadlecsik 0 siblings, 0 replies; 4+ messages in thread From: Jozsef Kadlecsik @ 2015-11-17 20:25 UTC (permalink / raw) To: Murat Sezgin; +Cc: netfilter-devel@vger.kernel.org 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@blackhole.kfki.hu> 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@blackhole.kfki.hu, kadlecsik.jozsef@wigner.mta.hu > >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@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > - E-mail : kadlec@blackhole.kfki.hu, kadlecsik.jozsef@wigner.mta.hu 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-11-17 20:24 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-11-17 4:26 "notification events for routing changes" patch Murat Sezgin 2015-11-17 8:28 ` Jozsef Kadlecsik 2015-11-17 17:55 ` Murat Sezgin 2015-11-17 20:25 ` Jozsef Kadlecsik
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.