From: Jozsef Kadlecsik Date: Fri, 30 Nov 2012 12:37:26 +0000 (+0000) Subject: netfilter: nf_nat: Handle routing changes in MASQUERADE target X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~93^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0ecb85a2c3af73c63b6d44ce82aea52347ccf55;p=pandora-kernel.git netfilter: nf_nat: Handle routing changes in MASQUERADE target When the route changes (backup default route, VPNs) which affect a masqueraded target, the packets were sent out with the outdated source address. The patch addresses the issue by comparing the outgoing interface directly with the masqueraded interface in the nat table. Events are inefficient in this case, because it'd require adding route events to the network core and then scanning the whole conntrack table and re-checking the route for all entry. Signed-off-by: Jozsef Kadlecsik Signed-off-by: Pablo Neira Ayuso --- Reading git-diff-tree failed