Skip to content

Commit

Permalink
cilium: reenable host routing on endpoint routes and ipsec
Browse files Browse the repository at this point in the history
... since both need to go up the stack for packet handling.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
  • Loading branch information
borkmann committed Nov 17, 2020
1 parent 92edccf commit bbd6886
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions daemon/cmd/kube_proxy_replacement.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ func initKubeProxyReplacementOptions() (strict bool) {
fallthrough
case option.Config.Tunnel != option.TunnelDisabled:
fallthrough
// Needs host stack for packet handling.
case option.Config.EnableEndpointRoutes || option.Config.EnableIPSec:
fallthrough
// Non-BPF masquerade requires netfilter and hence CT.
case option.Config.Masquerade && !option.Config.EnableBPFMasquerade:
option.Config.EnableHostLegacyRouting = true
Expand Down

0 comments on commit bbd6886

Please sign in to comment.