diff options
author | Vladislav Grigoryev <vg.aetera@gmail.com> | 2021-08-10 01:55:19 +0300 |
---|---|---|
committer | Vladislav Grigoryev <vg.aetera@gmail.com> | 2021-09-01 10:51:16 +0300 |
commit | b4f4799f9e745aae8b70df7ad27315eb997cf570 (patch) | |
tree | fe507980fc1880de40f7f0e684409739007a6162 /modules/luci-mod-network/root/usr/share | |
parent | 3ac88f88edd549db5fd6d9ef6765ceb90fdeb1a7 (diff) |
luci-mod-network: network/routing support for pbr
Provide comprehensive routing configuration:
* Rename the "Network > Routes" page to "Network > Routing".
* Unify sorting for the "Status" and "Network" menus.
* Add the tabs "IPv4 Rules" and "IPv6 Rules" to the "Routing" page.
* Provide configuration for IPv4 and IPv6 routing rules.
* Consolidate routing configuration and terminology for IPv4 and IPv6.
Policy-based routing is an increasingly popular problem.
Netifd natively supports policy-based routing:
* Interface-specific options "ip4table" and "ip6table".
* Routing rules using the "rule" and "rule6" sections.
LuCI is missing configuration for routing rules.
Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
Diffstat (limited to 'modules/luci-mod-network/root/usr/share')
-rw-r--r-- | modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json b/modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json index 62e046e609..2fa3cf6ab3 100644 --- a/modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json +++ b/modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json @@ -46,31 +46,29 @@ } }, - "admin/network/dhcp": { - "title": "DHCP and DNS", + "admin/network/routes": { + "title": "Routing", "order": 30, "action": { "type": "view", - "path": "network/dhcp" + "path": "network/routes" }, "depends": { - "acl": [ "luci-mod-network-dhcp" ], - "fs": { - "/usr/sbin/dnsmasq": "executable" - }, - "uci": { "dhcp": true } + "acl": [ "luci-mod-network-config" ] } }, - "admin/network/routes": { - "title": "Static Routes", + "admin/network/dhcp": { + "title": "DHCP and DNS", "order": 40, "action": { "type": "view", - "path": "network/routes" + "path": "network/dhcp" }, "depends": { - "acl": [ "luci-mod-network-config" ] + "acl": [ "luci-mod-network-dhcp" ], + "fs": { "/usr/sbin/dnsmasq": "executable" }, + "uci": { "dhcp": true } } }, |