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

Add tcp-reset as an allowed option for --reject-with #1194

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gcoxmoz
Copy link

@gcoxmoz gcoxmoz commented Mar 8, 2024

Summary

Allows --reject-with tcp-reset. This was allowed before the 7.0 rewrite, but lost and a regression introduced in that cutover.

tcp-reset is allowed (man 8 iptables-extensions) since ancient kernel 2.6.14, and is valid on TCP-matching rules. There's no "you can only do this on TCP rules" limitation included in this PR, as it's valid to do (INPUT rule that matches TCP should jump to Xchain) -> (Xchain does a reject without declaring/knowing that it's TCP).

Additional Context

Related Issues (if any)

Resolves #1184

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified. (For example puppet apply)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow --reject-with tcp-reset for TCP rules
2 participants