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

Support conntrack stateful firewall matching #257

Merged
merged 1 commit into from
Oct 16, 2013
Merged

Support conntrack stateful firewall matching #257

merged 1 commit into from
Oct 16, 2013

Conversation

nogweii
Copy link
Contributor

@nogweii nogweii commented Oct 16, 2013

Since Linux 3.7+ the "state" module has been removed from the kernel, leaving
only the "conntrack" module. This patch adds support for the conntrack module in
iptables by adding a new parameter to the firewall type, 'ctstate'.

Updates the README to demonstrate using the ctstate parameter instead of state
to nudge people to use it instead. This is safe as far as back to Linux kernel
2.6.18, so long as CONFIG_NF_CONNTRACK is enabled.

Closes #231 and #142.

And a question, since the state trules are no longer working, should they be automatically converted to ctstate rules? What happens when both types of rules are applied? I'd think the state rules should be dropped (perhaps with a warning if it doesn't match ctstate).

Since Linux 3.7+ the "state" module has been removed from the kernel, leaving
only the "conntrack" module. This patch adds support for the conntrack module in
iptables by adding a new parameter to the firewall type, 'ctstate'.

Updates the README to demonstrate using the ctstate parameter instead of state
to nudge people to use it instead. This is safe as far as back to Linux kernel
2.6.18, so long as CONFIG_NF_CONNTRACK is enabled.
@apenney
Copy link
Contributor

apenney commented Oct 16, 2013

Ideally we'd convert any state rule to a ctstate if the kernel is higher than 3.7 as a stopgap measure, and I'd definitely support a PR that does that! I know we've been a bit lax with the firewall module and I want to apologize, we have a small team of two taking care of all the modules and neither of us has the deep expertise with this to feel comfortable doing a lot with it right now!

apenney pushed a commit that referenced this pull request Oct 16, 2013
Support conntrack stateful firewall matching
@apenney apenney merged commit bdb2fde into puppetlabs:master Oct 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants