From: Yu Watanabe Date: Tue, 28 Jan 2025 19:16:20 +0000 (+0900) Subject: network: bridge: add support for configuring locked ports (#36150) X-Git-Tag: v258-rc1~1460 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d90c01d02c337f28a1649f6880c9e1dff264014e;p=thirdparty%2Fsystemd.git network: bridge: add support for configuring locked ports (#36150) "Recently" (as of 5.18) the Linux kernel gained the ability of locking bridge ports to restrict network access to authenticated hosts only. This is implemented by disabling automated learning and dropping incoming traffic from unknown hosts. User space is then expected to add fdb entries for authenticated hosts. Once a fdb entry exist, traffic for that host will be forwarded as expected. This was later extended with "Mac Authentication Bypass", where the locking was extended to fdb entries. In this mode the kernel adds fdb entries again automatically, but they are locked by default. To properly configure this, add two network options and one netdev option: * `LinkLocalLearning=` to prevent the kernel from creating unlocked entries based on link-local traffic, which would bypass any authentication. Needed when enabling learning on a locked port. * `Locked=` to allow setting a bridge port to locked. * `MACAuthenticationBypass=` to allow enabling Mac Authentication Bypass on a port. Requires learning to be enabled on the port as well (and consequently `LinkLocalLearning` disabled on the bridge). An authenticator (e.g. hostapd) is still needed to do the actual authentication, the kernel only provides the access control. --- d90c01d02c337f28a1649f6880c9e1dff264014e