"notification events for routing changes" patch
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 18 lines · Murat Sezgin
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.
Quoted 1 line
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 : [email protected], [email protected] 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
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
Quoted 40 lines · Jozsef Kadlecsik
Quoted 21 lines · Murat Sezgin
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.Quoted 1 line
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 : [email protected], [email protected] PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics, Hungarian Academy of SciencesH-1525 Budapest 114, POB. 49, Hungary
Please, do not top post. Thank you.
Quoted 5 lines · Murat Sezgin
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_natmodules, 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
Quoted 45 lines · Jozsef Kadlecsik
Quoted 33 lines · Murat Sezgin
Quoted 22 lines
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.Quoted 1 line
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:Quoted 8 lines
Best regards,
Jozsef
-
E-mail : [email protected], [email protected] PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics, Hungarian Academy of SciencesH-1525 Budapest 114, POB. 49, Hungary
Quoted 5 lines
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
-
E-mail : [email protected], [email protected] 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