You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at nft list ruleset, only the ip6 rules are present in cni_plugins_masquerade table
Looking at nft monitor rules, we see that the ip rules are added then deleted
right... probably should have separate ip and ip6 tables rather than a single inet one... I think I had originally tried to use inet for the portmap plugin too, but eventually decided it worked better with separate tables.
There is no limit on the number of ranges, you could have 2 IPv4 and 5 IPv6, so having separate ip/ip6 would only fix the dual stack case.
We need the list of all IPs in setupIPMasqNFTablesWithInterface to be able to cleanup and recreate all new rules at once.
Bonus point it'll do only 1 nft call instead of 1 per range.
dual stack setup
Looking at
nft list ruleset
, only theip6
rules are present incni_plugins_masquerade
tableLooking at
nft monitor rules
, we see that theip
rules are added then deletedplugins/pkg/ip/ipmasq_nftables_linux.go
Lines 84 to 85 in fec2d62
In
setupIPMasqNFTablesWithInterface
the stale rule logic is incorrectThe text was updated successfully, but these errors were encountered: