diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2021-07-18 09:11:06 +0200 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2021-07-21 09:49:19 +0200 |
commit | 2d151d39073aff498358543801fca0f670fea981 (patch) | |
tree | 76abb9648c571bb6fc5ccb5d7c25f000e22c1273 /include/net/protocol.h | |
parent | ipsec: Remove unneeded extra variable in esp4 esp_ssg_unref() (diff) | |
download | linux-2d151d39073aff498358543801fca0f670fea981.tar.xz linux-2d151d39073aff498358543801fca0f670fea981.zip |
xfrm: Add possibility to set the default to block if we have no policy
As the default we assume the traffic to pass, if we have no
matching IPsec policy. With this patch, we have a possibility to
change this default from allow to block. It can be configured
via netlink. Each direction (input/output/forward) can be
configured separately. With the default to block configuered,
we need allow policies for all packet flows we accept.
We do not use default policy lookup for the loopback device.
v1->v2
- fix compiling when XFRM is disabled
- Reported-by: kernel test robot <lkp@intel.com>
Co-developed-by: Christian Langrock <christian.langrock@secunet.com>
Signed-off-by: Christian Langrock <christian.langrock@secunet.com>
Co-developed-by: Antony Antony <antony.antony@secunet.com>
Signed-off-by: Antony Antony <antony.antony@secunet.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'include/net/protocol.h')
0 files changed, 0 insertions, 0 deletions