luci-mod-network: add bridge_isolate option
authorJan Froch <jan@froch.eu>
Sat, 1 Feb 2025 15:58:48 +0000 (16:58 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Sun, 2 Feb 2025 22:50:01 +0000 (23:50 +0100)
Adds the 'bridge_isolate' option to wireless interfaces.

Signed-off-by: Jan Froch <jan@froch.eu>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js

index 4b12042b721c1d20bed6d5d0f35667b3fab156dd..97c9344890c16e78f90f5db65fe940e52c026625 100644 (file)
@@ -1217,6 +1217,8 @@ return view.extend({
                                        o.depends('mode', 'ap');
                                        o.depends('mode', 'ap-wds');
 
+                                       o = ss.taboption('advanced', form.Flag, 'bridge_isolate', _('Isolate Bridge Port'), _('Prevents communication only with targets on isolated bridge ports (while allowing it with targets on non-isolated ones). This also prevents client-to-client communication on the same interface when the WiFi device is in AP mode.'));
+
                                        o = ss.taboption('advanced', form.Value, 'ifname', _('Interface name'), _('Override default interface name'));
                                        o.optional = true;
                                        o.datatype = 'netdevname';