cilium icon indicating copy to clipboard operation
cilium copied to clipboard

[v1.15] iptables: Do not install NOTRACK rules if IPv4NativeRoutingCIDR is nil

Open pippolo84 opened this issue 1 year ago • 2 comments

In case IPv4NativeRoutingCIDR is left unspecified, the related config option will be nil. To avoid panicking, check for this case before converting the CIDR to a string. Moreover, do not try to run the iptables command to install the NOTRACK rules if the resulting string is empty.

Fixes: #32607

pippolo84 avatar May 21 '24 15:05 pippolo84

/test-backport-1.15

pippolo84 avatar May 23 '24 08:05 pippolo84

/test-backport-1.15

lmb avatar May 23 '24 10:05 lmb

/test-backport-1.15

lmb avatar May 24 '24 10:05 lmb