Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

portmap check fails looking for non-existent IPv6 rule #819

Closed
mccv1r0 opened this issue Jan 24, 2023 · 0 comments · Fixed by #821
Closed

portmap check fails looking for non-existent IPv6 rule #819

mccv1r0 opened this issue Jan 24, 2023 · 0 comments · Fixed by #821
Assignees

Comments

@mccv1r0
Copy link
Member

mccv1r0 commented Jan 24, 2023

cniAdd portmap with only an IPv4 address configured for an interface. Only ipv4 nat rules are created.

cniCheck fails expecting to find ip6tables nat rules. cniDel has similar logic, but is more forgiving when a rule doesn't exist

maybeGetIptables() always returns a struct, even when there are no rules for this container. This results in the test on ip6t always trying to check/del ipv6

	ip6t, err6 := maybeGetIptables(true)
        [deleted]
	if ip6t != nil {
	}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant