]> git.baikalelectronics.ru Git - kernel.git/commit
Disable rp_filter for IPsec packets
authorMichael Smith <msmith@cbnco.com>
Thu, 7 Apr 2011 04:51:51 +0000 (04:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Apr 2011 01:50:59 +0000 (18:50 -0700)
commit52ce5713d1755fcbdc7e632ec360cae38bb12fe3
treeff61e3ab53f46ceca2ef280788982883b50cc669
parent6b6ad0e0bbd88f15a078551dbb061e16db4e389a
Disable rp_filter for IPsec packets

The reverse path filter interferes with IPsec subnet-to-subnet tunnels,
especially when the link to the IPsec peer is on an interface other than
the one hosting the default route.

With dynamic routing, where the peer might be reachable through eth0
today and eth1 tomorrow, it's difficult to keep rp_filter enabled unless
fake routes to the remote subnets are configured on the interface
currently used to reach the peer.

IPsec provides a much stronger anti-spoofing policy than rp_filter, so
this patch disables the rp_filter for packets with a security path.

Signed-off-by: Michael Smith <msmith@cbnco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xfrm.h
net/ipv4/fib_frontend.c