Skip to content

Use forked libkrunfw with guest netfilter support#2

Open
enricoschaaf wants to merge 1 commit intobaseline-guest-rlimitfrom
stacked-guest-netfilter-support
Open

Use forked libkrunfw with guest netfilter support#2
enricoschaaf wants to merge 1 commit intobaseline-guest-rlimitfrom
stacked-guest-netfilter-support

Conversation

@enricoschaaf
Copy link
Copy Markdown
Collaborator

Summary

This stacks on top of #1 and switches microsandbox to a forked libkrunfw commit that enables guest netfilter support for the sandbox kernel.

The guest currently fails to bring up Tailscale with netfilter enabled because the embedded libkrunfw kernel ships with CONFIG_NETFILTER disabled. That leaves Debian's default nft-backed iptables path dead on arrival inside the guest.

What changed

  • points vendor/libkrunfw at https://github.com/enricoschaaf/libkrunfw.git
  • updates the submodule commit to 50cb0b2, which enables:
    • base netfilter
    • conntrack and NAT
    • xtables matches/targets used by Tailscale
    • nftables support, including nft compatibility for the default iptables-nft userspace path
    • legacy IPv4/IPv6 iptables tables as fallback

Why stack this on #1

The first PR adds sandbox-wide default guest rlimits so bootstrap daemons inherit a usable baseline. This PR is the next runtime piece: it makes the guest kernel capable of handling the firewall setup path those daemons need.

Validation

  • make linux-6.12.68 in vendor/libkrunfw completed through olddefconfig
  • the resolved generated .config kept the requested netfilter symbols enabled

I did not run a full kernel build in this environment.

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

Successfully merging this pull request may close these issues.

1 participant