Commit graph

28 commits

Author SHA1 Message Date
Paul Donald
8be149c4ad
Merge pull request #6724 from erikrk/channel-analysis-permissions
luci-mod-status: fix ACL for channel analysis
2023-12-18 00:20:05 +01:00
Christian Marangi
f1db42e670 luci-mod-status: add ACL entry for storage index
Add missing ACL entry for storage index page.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>

luci-mod-status: expand storage index page with mount points

Expand storage index page with mount points. For custom mounts point we
use the device name and we reference the mount point between ().

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>

luci-mod-status: ensure each storage getMountPoints result is unique

Signed-off-by: Paul Donald <newtwen@gmail.com>

Closes #2767
2023-12-07 00:15:33 +01:00
Erik Karlsson
72f1573458 luci-mod-status: fix ACL for channel analysis
Without this fix channel analysis will not work unless write access is
also granted to luci-mod-network-config

Signed-off-by: Erik Karlsson <erik.karlsson@genexis.eu>
2023-11-27 11:16:29 +01:00
Jo-Philipp Wich
575ce5512d luci-mod-status: add ACL to allow access to getBuiltinEthernetPorts
Fixes: ed059e4cd3 ("luci-mod-status: 29_ports.js: attempt to use getBuiltinEthernetPorts")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-10-25 23:15:16 +02:00
Jo-Philipp Wich
4e46624817 luci-mod-status: introduce ethernet port status view
This commit adds an ethernet port status overview to the main status page.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-07-27 13:07:26 +02:00
Jo-Philipp Wich
a27d2dbc32 luci-base, luci-mod-status: expose LuCI version via ubus
Instead of scraping the LuCI version from Lua sources, fetch it via ubus
in order to be independent from the Lua runtime.

Fixes: #6154
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-12-17 15:01:46 +01:00
Alexander Georgievskiy
88c62fe218 luci-mod-status: nftables.js: fix OOM on big nftables IP sets
Signed-off-by: Alexander Georgievskiy <galeksandrp@gmail.com>
2022-07-05 15:00:38 +03:00
Jo-Philipp Wich
2f80fe3767 luci-mod-status: hide iptables firewall status when nft is present
Do not expose the iptables status page as menu item when nftables is present
on the system. Instead add a warning banner to the nftables status page
directing the user to the hidden iptables status page when we encounter
legacy rules on the system.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-04-27 13:19:48 +02:00
Jo-Philipp Wich
bf175fd51a luci-mod-status: add nftables status page
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-02-07 13:24:33 +01:00
Florian Eckert
1d26eb4200 luci-mod-status: move index acl into own file
The ACL file luci-mod-status.json is already quite long.
It is also a separate menu item in LuCI, so in my view it makes sense to
move it to a separate file. An additional positive effect is that the
file then becomes clearer.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-09-03 13:25:21 +02:00
Vladislav Grigoryev
a62a6c0f3b luci-mod-status: merge status/dmesg with status/syslog
Merge "Kernel Log" with "System Log" as an extra tab.
Consolidate logging facilities for more intuitive navigation.

Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
2021-08-26 06:15:04 +03:00
Jo-Philipp Wich
57303e6483
Merge pull request #5235 from vgaetera/status-routing
luci-mod-status: status/routing support for pbr
2021-08-09 19:51:09 +02:00
Vladislav Grigoryev
fb7e48b752 luci-mod-status: fix description for luci-mod-status-channel_analysis
Update "modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status.json".
Fix incorrect description for "luci-mod-status-channel_analysis".

Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
2021-08-08 20:34:45 +03:00
Vladislav Grigoryev
5cd9209636 luci-mod-status: status/routing support for pbr
Provide comprehensive status information for routing.
Rename the "Status > Routes" page to "Status > Routing".
Unify sorting for the "Status" and "Network" menus.
Add tabs for IPv4 and IPv6 and reorganize the contents.
Display routing rules and their priorities for each protocol.

Policy-based routing is an increasingly popular problem.
Netifd natively supports policy-based routing:
* The interface-specific options "ip4table" and "ip6table".
* The routing rules using the "rule" and "rule6" sections.
LuCI is missing the information about routing rules.

Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
2021-08-07 10:51:38 +03:00
Jo-Philipp Wich
a6d957d6f5 luci-mod-status: disable "Set static" lease action on readonly view
Fixes: f6b6a12927 ("luci-mod-status: add support for one-click static lease")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-07-07 17:15:37 +02:00
Andre Heider
8051510732 luci-mod-status: use the new ubus dsl metrics
This is significantly faster.

Signed-off-by: Andre Heider <a.heider@gmail.com>
Tested-by: Martin Schiller <ms@dev.tdt.de>
2021-01-26 07:10:19 +01:00
Hannu Nyman
c49d33f6cb
Merge pull request #4598 from Ansuel/wifi_chan
luci-mod-status: add new channel analysis page
2021-01-07 19:02:57 +02:00
Ansuel Smith
91a0008457
luci-mod-status: add channel analysis support
Add channel analysis support. This can be very useful as a user can directly use the webui to check wifi channel utilization without using external tool. This use data already provided by iwinfo.

Fixes: #4572
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-12-06 02:24:05 +01:00
Ansuel Smith
6cf849bcf6
luci-mod-status: add WPS control for wifi info
Add a way to trigger and get the WPS Push Button status from the webui if supported.

Fixes: #1072

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-10-17 17:47:50 +02:00
Jo-Philipp Wich
f4651cb129 treewide: fix trailing commans in ACL JSON files
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-17 23:40:14 +02:00
Jo-Philipp Wich
8f34e105c0 treewide: add ACL annotations to menu entries
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-17 12:40:31 +02:00
Jo-Philipp Wich
c099344013 treewide: reorganize base ACLs
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-09 23:23:33 +02:00
Jo-Philipp Wich
16d049f7cd luci-mod-status: reimplement route status page as client side view
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-29 23:03:58 +01:00
Jo-Philipp Wich
2417ad5d61 luci-mod-status: remove obsolete nameinfo route
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-22 23:20:23 +01:00
Jo-Philipp Wich
939b371bc7 luci-mod-status: reimplement log pages as client side views
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-22 23:20:23 +01:00
Jo-Philipp Wich
b9bb34612e luci-mod-status: reimplement iptables status page as client side view
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-22 23:20:23 +01:00
Jo-Philipp Wich
43a4481e10 luci-mod-status: replace iptables controller actions with cgi-io calls
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-22 23:20:23 +01:00
Jo-Philipp Wich
c698cd5ab9 luci-mod-status: convert menu nodes to JSON
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-16 18:07:18 +01:00