]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv6: Reinject IPv6 packets if IPsec policy matches after SNAT
authorTobias Brunner <tobias@strongswan.org>
Thu, 21 Dec 2017 16:32:24 +0000 (17:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Apr 2018 10:31:01 +0000 (12:31 +0200)
commit4dfb698be2a5ede1bd887fb10f79e97564fba4aa
tree11ad014ec8f7857f2b716051a9c4b50fd545ee55
parent542f2cc70fe69310b8b889e898d8f7f22aa33dd6
ipv6: Reinject IPv6 packets if IPsec policy matches after SNAT

[ Upstream commit 09ee9dba9611cd382fd360a99ad1c2fa23bfdca8 ]

If SNAT modifies the source address the resulting packet might match
an IPsec policy, reinject the packet if that's the case.

The exact same thing is already done for IPv4.

Signed-off-by: Tobias Brunner <tobias@strongswan.org>
Acked-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/ip6_output.c