Enable IPv4 policy routing for per-uplink reply routes

flare-edge#181: a wired DHCP uplink with no internet (an unactivated
Starlink Mini on eth0) took the default route from wlan0, and replies
to the office left through it, so the panel went unreachable although
its Wi-Fi never dropped. The fix gives every uplink its own routing
table and a `from <address>` rule, so replies leave by the interface
the request arrived on. That needs IPv4 policy routing, which this
kernel did not have: only IPV6_MULTIPLE_TABLES was set, and every
table silently aliased main (seen on the warehouse panel, 0.9.24-rc).

Adds CONFIG_IP_ADVANCED_ROUTER and CONFIG_IP_MULTIPLE_TABLES. Against
a pristine linux-6.18.46 (sha256 pinned), the expanded .config changes
only in that block: FIB_RULES was already selected by the IPv6 option.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MVGTC78dgCGfRANNKjoPea
This commit is contained in:
Noah
2026-09-24 13:30:03 -06:00
co-authored by Claude Opus 5.5
parent 44b551f1d1
commit ed87da1159
+2
View File
@@ -138,6 +138,8 @@ CONFIG_NET=y
CONFIG_PACKET=y
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_IP_PNP=y
CONFIG_IP_PNP_DHCP=y
CONFIG_IP_PNP_BOOTP=y