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

lazy subchain protocol propagation is broken for icmpv6-type #96

Open
elho opened this issue Jun 7, 2023 · 0 comments
Open

lazy subchain protocol propagation is broken for icmpv6-type #96

elho opened this issue Jun 7, 2023 · 0 comments

Comments

@elho
Copy link

elho commented Jun 7, 2023

Given the minimal example

domain ip6 {
    table filter {
	chain INPUT {
	    proto icmpv6 subchain "test" {
		icmpv6-type echo-request ACCEPT;
	    }
	}
    }
}

ferm 2.5.1 as well as current git cause ip6tables to fail with unknown option "--icmpv6-type" error.
They do generate this command:

/usr/sbin/ip6tables-legacy -t filter -A test --icmpv6-type echo-request --jump ACCEPT

Whereas ferm 2.4 generates the correct command including the needed --protocol icmpv6:

/sbin/ip6tables -t filter -A test --protocol icmpv6 --icmpv6-type echo-request --jump ACCEPT
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

No branches or pull requests

1 participant