kernel: build in IPv6 netfilter (flare-edge#533) #15

Merged
noah merged 2 commits from fix-533-ipv6-netfilter into flare-edge-next 2026-10-08 07:56:52 -06:00
Owner

Builds in the IPv6 netfilter the panel kernel lacked, so flare-edge's firewall can filter IPv6 like IPv4 (flare-edge#533: the IPv4 default-drop policy was bypassed over IPv6; telnet and SSH answered on IPv6).

  • CONFIG_NF_DEFRAG_IPV6, CONFIG_IP6_NF_IPTABLES, CONFIG_IP6_NF_IPTABLES_LEGACY, CONFIG_IP6_NF_FILTER, all built in (the panel has no module directory).
  • build/build-kernel.sh asserts the four symbols are =y in the final .config.

Paired with flare-edge branch fix-533-ipv6-firewall, which pins this branch and adds the IPv6 rules.

Generated with Claude Code

https://claude.ai/code/session_01Cxh2piVufTWbzKTmUafTkk

Builds in the IPv6 netfilter the panel kernel lacked, so flare-edge's firewall can filter IPv6 like IPv4 (flare-edge#533: the IPv4 default-drop policy was bypassed over IPv6; telnet and SSH answered on IPv6). - `CONFIG_NF_DEFRAG_IPV6`, `CONFIG_IP6_NF_IPTABLES`, `CONFIG_IP6_NF_IPTABLES_LEGACY`, `CONFIG_IP6_NF_FILTER`, all built in (the panel has no module directory). - `build/build-kernel.sh` asserts the four symbols are `=y` in the final `.config`. Paired with flare-edge branch `fix-533-ipv6-firewall`, which pins this branch and adds the IPv6 rules. Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Cxh2piVufTWbzKTmUafTkk
noah added 2 commits 2026-10-07 22:49:25 -06:00
The panel kernel had no ip6tables filter table, so the IPv4 default-drop
firewall never applied to IPv6 and dropbear and telnetd were reachable over
::. Enable the ip6tables core (legacy flavour, matching the userland), the
filter table, and IPv6 defrag for conntrack, all built in because the panel
has no /lib/modules:

  CONFIG_NF_DEFRAG_IPV6=y
  CONFIG_IP6_NF_IPTABLES=y
  CONFIG_IP6_NF_IPTABLES_LEGACY=y
  CONFIG_IP6_NF_FILTER=y

No new match symbols: icmp6 lives in xt_tcpudp, and state, limit and
conntrack are family-agnostic and already enabled.

build-kernel.sh now asserts these four are =y in the final .config, because
olddefconfig drops an unmet-dependency line silently and the loss would only
show as an unfiltered IPv6 stack in the field.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cxh2piVufTWbzKTmUafTkk
kernel: correct IPv6 netfilter defconfig comment (flare-edge#533)
ci / badges (push) Skipped
ci / mcdc (push) Successful in 13s
ci / test (push) Successful in 15s
ci / prune-artifacts (push) Skipped
ci / kernel-build (push) Skipped
ci / quality (push) Successful in 29s
ci / bench (push) Successful in 5s
ci / qemu-tools (push) Successful in 44s
ci / patches-apply (push) Successful in 16s
ci / quality (pull_request) Successful in 27s
ci / badges (pull_request) Skipped
ci / test (pull_request) Successful in 14s
ci / bench (pull_request) Successful in 6s
ci / mcdc (pull_request) Successful in 12s
ci / patches-apply (pull_request) Successful in 14s
ci / qemu-tools (pull_request) Successful in 43s
ci / prune-artifacts (pull_request) Skipped
ci / kernel-build (pull_request) Skipped
b7125fc4a7
The icmp6 match is part of the ip6_tables core (IP6_NF_IPTABLES), not
xt_tcpudp. Comment only; the symbol set is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cxh2piVufTWbzKTmUafTkk
noah merged commit d22c900fb6 into flare-edge-next 2026-10-08 07:56:52 -06:00
noah deleted branch fix-533-ipv6-netfilter 2026-10-08 07:56:52 -06:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blueflare/bfe-core1106-sdk#15