If you have syslog-ng installed instead of logd then
syslog page displays errors.
This commit fixes that.
Signed-off-by: Ramon Van Gorkom <Ramon00c00@gmail.com>
- Add new RPC declarations:
- callLuciRpcGetNetworkDevices
- callLuciRpcGetDHCPLeases
- Add ethers_cache for MAC-to-hostname mapping
- Replace object literals with Object.create(null) for caches:
dns_cache, service_cache
- Make sure 'Disable DNS lookups' shows addresses
- Change lookup_queue from array to Set to simplify processing
- Introduce updateDnsCache(addr, name) helper to update caches and remove
addresses from queues
- Update service lookup to match uppercase cache keys
- Rework address resolution workflow as async/await
1. DHCP leases
2. Reverse DNS via callNetworkRrdnsLookup
3. Host hints / MAC-to-host mapping
4. Network devices / MAC cache
- Re-write pollData() as async
- Update ACL JSON to grant luci-mod-status access to luci-rpc
methods: getHostHints, getNetworkDevices, getDHCPLeases
This refactor modernizes the connections view host lookup logic, reduces
redundant RPC queries, and improves maintainability and cache reliability.
Signed-off-by: Konstantin Glukhov <KGlukhov@Hotmail.com>
- Parse and map ports to corresponding service names.
- Display service names when DNS lookups are enabled.
Rationale:
Enhance endpoint readability by showing service names where available,
improving clarity of source/destination information.
Signed-off-by: Konstantin Glukhov <KGlukhov@Hotmail.com>
Right now, the checkUfpInstalled RPC call is performed first, and only after
that can the other Promises be called. Simplify this by adding a single check
for /usr/sbin/ufpd in the rpcd ucode, and replace calls to checkUfpInstalled()
with simple L.hasSystemFeature('ufpd') check (which is only done once, and
cached).
This also allows the 'stat' permission to be removed from a couple of acls.
Signed-off-by: David Härdeman <david@hardeman.nu>
Refactor functions and variables to ES6 standard.
Detect whether one of the JSON enabled ip variants is installed, and
prefer it to display route information over the text handling. This is
handled by the acls and menu depends.
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
For easier definition of connected devices, this commit adds support
to identify them by vendor name.
Package `upf-neigh` is needed to lookup the vendor name in a hash table.
It implements a ubus-call `ubus call fingerprint fingerprint`:
```
root@<redacted> ~ # ubus call fingerprint fingerprint
{
"7c:c2:55:XX:XX:XX": {
"vendor": "Super Micro Computer, Inc."
}
}
```
Fixes: #2065
Depends on: openwrt/packages#27257
Signed-off-by: Christian Korber <ck@dev.tdt.de>
Commit includes wrapper syslog in /usr/libexec. If a log file is configured, the output of this file is displayed. Otherwise the output of logread is displayed.
Signed-off-by: Christian Korber <ckorber@tdt.de>
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>
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>
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>
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>
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>