Bart De Schuymer wrote: > Deferring the hooks makes the bridge-nf code alot more complicated, so I > would be glad to get rid of it if it is the right thing to do. But > backwards compatibility can't be maintained and I'd be surprised if > every ruleset that now works will still be possible using an > iptables/ebtables scheme. I unfortunately don't see a way to remove it, but we should keep thinking about it. Can you please check if the attached patch is correct? It should exclude all packets handled by bridge-netfilter from having their conntrack reference dropped. I didn't add nf_reset()'s to the bridging code because with tc actions the packets can end up anywhere else anyway, and this will hopefully get fixed right sometime. BTW. this line from ip_sabotage_out() looks wrong, it will clear all flags instead of setting the BRNF_DONT_TAKE_PARENT flag (second patch): nf_bridge->mask &= BRNF_DONT_TAKE_PARENT; Signed-off-by: Patrick McHardy