Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Enable nf_conntrack_bridge and nft_meta_bridge kernel modules#2207

Merged
pothos merged 2 commits intoflatcar-archive:mainfrom
genesiscloud:nftables-bridge-conntrack-meta
Oct 11, 2022
Merged

Enable nf_conntrack_bridge and nft_meta_bridge kernel modules#2207
pothos merged 2 commits intoflatcar-archive:mainfrom
genesiscloud:nftables-bridge-conntrack-meta

Conversation

@lukasstockner
Copy link
Copy Markdown
Contributor

Enable nf_conntrack_bridge and nft_meta_bridge kernel modules

This allows to use conntrack rules for bridges in nftables and to match on bridge interface names.

How to use

  • Build kernel
  • Run resulting image, note that modprobe nf_conntrack_bridge works now
  • Set up nftables chain that uses conntrack (e.g. the stateful bridge firewall example), note that the rules are applied successfully.

Testing done

Built image locally, booted on bare metal, tested stateful bridge firewalling.

  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)
  • Inspected CI output for image differences: /boot and /usr size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.

This allows to use conntrack rules for bridges in nftables
and to match on bridge interface names.
@pothos
Copy link
Copy Markdown
Contributor

pothos commented Oct 10, 2022

I've started a test build just in case we run into something unexpected and also check the image size and content changes. Later I'll share the link to the built images.
Edit: Here

@pothos
Copy link
Copy Markdown
Contributor

pothos commented Oct 11, 2022

@lukasstockner can you apply the suggestion?

Co-authored-by: Kai Lüke <pothos@users.noreply.github.com>
@lukasstockner
Copy link
Copy Markdown
Contributor Author

@lukasstockner can you apply the suggestion?

Sure, done - thanks for improving it!

@pothos pothos merged commit d2cc785 into flatcar-archive:main Oct 11, 2022
@pothos
Copy link
Copy Markdown
Contributor

pothos commented Oct 11, 2022

Thanks, it will be part of the next major Alpha release

@lukasstockner lukasstockner deleted the nftables-bridge-conntrack-meta branch May 18, 2023 12:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants