Skip to content

Enable CONNMARK netfilter target and match support - #4890

Merged
agners merged 1 commit into
devfrom
enable-connmark
Jul 10, 2026
Merged

agners merged 1 commit into
devfrom
enable-connmark

Conversation

@agners

@agners agners commented Jul 10, 2026 •

Copy link
Copy Markdown
Member

The Tailscale add-on uses CONNMARK rules (via iptables-nft) as part of its rp_filter workaround. Since xt_connmark is not available, the add-on logs warnings like:

Warning: Extension CONNMARK revision 0 not supported, missing kernel module?
router: warning: failed to add connmark rules (rp_filter workaround may not work)

Enable CONFIG_NETFILTER_XT_CONNMARK, which provides both the CONNMARK target and the connmark match (CONFIG_NETFILTER_XT_TARGET_CONNMARK and CONFIG_NETFILTER_XT_MATCH_CONNMARK are just backwards-compat aliases for it). Native nftables connection mark support is handled by nft_ct, which is already enabled.

Fixes #4887

Summary by CodeRabbit

  • New Features
    • Added support for connection-mark matching in the networking stack through an optional kernel module.

The Tailscale add-on uses CONNMARK rules (via iptables-nft) as part of
its rp_filter workaround. Since xt_connmark is not available, the
add-on logs warnings like:

  Warning: Extension CONNMARK revision 0 not supported, missing kernel module?
  router: warning: failed to add connmark rules (rp_filter workaround may not work)

Enable CONFIG_NETFILTER_XT_CONNMARK, which provides both the CONNMARK
target and the connmark match (CONFIG_NETFILTER_XT_TARGET_CONNMARK and
CONFIG_NETFILTER_XT_MATCH_CONNMARK are just backwards-compat aliases
for it). Native nftables connection mark support is handled by nft_ct,
which is already enabled.

Fixes #4887

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 10, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review. πŸŽ‰

ℹ️ Recent review info
βš™οΈ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 03c4b64f-3ef5-4a89-aa9b-24108347a37a

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between 11b2632 and 40d7893.

πŸ“’ Files selected for processing (1)
  • buildroot-external/kernel/v6.18.y/haos.config

πŸ“ Walkthrough

Walkthrough

The HAOS Linux kernel configuration now builds the xt_connmark netfilter module as a loadable module.

Changes

Connmark kernel support

Layer / File(s) Summary
Enable Xtables connmark module
buildroot-external/kernel/v6.18.y/haos.config
Sets CONFIG_NETFILTER_XT_CONNMARK=m to include the xt_connmark module.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Poem

A rabbit hops through kernel gates,
And loads connmark with delight.
One tiny setting changes fate,
The module springs to life tonight. πŸ‡

πŸš₯ Pre-merge checks | βœ… 5
βœ… Passed checks (5 passed)
Check name Status Explanation
Description Check βœ… Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check βœ… Passed The title clearly describes the main change: enabling CONNMARK netfilter support.
Linked Issues check βœ… Passed The change enables the connmark kernel support needed to resolve the Tailscale CONNMARK warning and rp_filter workaround.
Out of Scope Changes check βœ… Passed The only code change is the requested kernel config update, with no unrelated modifications.
Docstring Coverage βœ… Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
πŸ§ͺ Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch enable-connmark

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❀️ Share

Comment @coderabbitai help to get the list of available commands.

@agners agners added os linux Linux kernel related issue labels Jul 10, 2026
@agners
agners merged commit 5531083 into dev Jul 10, 2026
1 check passed
@agners
agners deleted the enable-connmark branch July 10, 2026 21:29
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed linux Linux kernel related issue os

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add kernel config option/module connmark

1 participant