Update sys.uc so that ubus luci->getConntrackList method is optionally
populated by /usr/sbin/conntrack application if /proc/net/nf_conntrack
is not available.
Signed-off-by: James <jpfox156@yahoo.com.au>
Fall through to /usr/sbin/conntrack tool if /proc/net/nf_conntrack is
not available.
/proc/net/nf_conntrack has been obsoleted in recent kernels
(https://cateee.net/lkddb/web-lkddb/NF_CONNTRACK_PROCFS.html). This
change enables sys.net.conntrack() to return conntrack information via
the /usr/sbin/conntrack tool (if installed) instead.
Enables population of the /luci/admin/status/realtime/connections list.
Signed-off-by: James Fox <jpfox156@yahoo.com.au>
[ format using tabs ]
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Fall through to /usr/sbin/conntrack tool if /proc/net/nf_conntrack or
ip_conntrack is not available.
/proc/net/nf_conntrack has been obsoleted in recent kernels
(https://cateee.net/lkddb/web-lkddb/NF_CONNTRACK_PROCFS.html). This
change enables luci-bwc to collect conntrack information via the
/usr/sbin/conntrack tool (if installed) instead.
Populates the /luci/admin/status/realtime/connections chart.
Signed-off-by: James Fox <jpfox156@yahoo.com.au>
[ format using tabs ]
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Add support to show/hide index cards. A card's state is saved using the
browser localstorage and its state is restored on page reload/relogin.
Rework the pool function to check and skip loading of hidden cards.
Rework themes to address new button position.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
[ changed tabs in CSS ]
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Reorganize poll function for index page. Drop the external function and
use the poll_status pattern used in other page that use poll.add API.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
openwrt/odhcpd@4308384748 added boot6 entries.
Each entry consists of:
url - string of the URL/URI to the image
arch - an integer
The last entry lacking 'arch' becomes the default entry.
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
For standard devices, we can read from `/sys/class/power_supply`
Add board checks to implement different solutions for different boards
Signed-off-by: Coia Prant <coiaprant@gmail.com>
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Many LuCI icons doubled in size during migration to vector graphics
in commit ae5d91da90 (16px to 32px).
Sizing of their instances is mostly controlled by CSS, but there's
an exception - network interface boxes of "Interfaces" page in LuCI.
Current CSS doesn't specify any particular size requirements to follow,
so the icons just scale with the images served, thus effectively
doubling in width and height compared to state before the vectorization
commit. Such a big icons look odd and take up too much space, especially
for bridge interfaces with many ports.
Instead of reverting to the original 16×16px, this commit proposes
compromise of 24×24px as most of other icons within LuCI became a bit
bigger as well.
Signed-off-by: Dávid Benko <davidbenko@davidbenko.dev>
If no value is provided for "Days until renewal", the `acme.sh` default
is used. The placeholder should reflect this, and indicate what the
current default is.
Signed-off-by: Aditya Bhargava <rightaditya@gmail.com>
Currently translated at 100.0% (86 of 86 strings)
Translation: OpenWrt/LuCI/applications/package-manager
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationspackage-manager/ru/
Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 84.3% (173 of 205 strings)
Translation: OpenWrt/LuCI/applications/adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/zh_Hant/
Translated using Weblate (Russian)
Currently translated at 100.0% (205 of 205 strings)
Translation: OpenWrt/LuCI/applications/adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/ru/
Translated using Weblate (Russian)
Currently translated at 100.0% (12 of 12 strings)
Translation: OpenWrt/LuCI/applications/bcp38
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsbcp38/ru/
Translated using Weblate (Russian)
Currently translated at 100.0% (284 of 284 strings)
Translated using Weblate (Russian)
Currently translated at 100.0% (2592 of 2592 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ru/
Translated using Weblate (Czech)
Currently translated at 100.0% (77 of 77 strings)
Translation: OpenWrt/LuCI/applications/xinetd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsxinetd/cs/
Translated using Weblate (Russian)
Currently translated at 100.0% (119 of 119 strings)
Translation: OpenWrt/LuCI/applications/snmpd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssnmpd/ru/
Translated using Weblate (Czech)
Currently translated at 99.1% (118 of 119 strings)
Translation: OpenWrt/LuCI/applications/snmpd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssnmpd/cs/
Translated using Weblate (Czech)
Currently translated at 100.0% (177 of 177 strings)
Translation: OpenWrt/LuCI/applications/adblock-fast
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock-fast/cs/
Translated using Weblate (Lithuanian)
Currently translated at 96.8% (2511 of 2592 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/lt/
Translated using Weblate (Czech)
Currently translated at 100.0% (53 of 53 strings)
Translation: OpenWrt/LuCI/applications/acme
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsacme/cs/
Translated using Weblate (Czech)
Currently translated at 100.0% (191 of 191 strings)
Translation: OpenWrt/LuCI/applications/travelmate
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstravelmate/cs/
Translated using Weblate (Czech)
Currently translated at 100.0% (59 of 59 strings)
Translation: OpenWrt/LuCI/applications/dump1090
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdump1090/cs/
Translated using Weblate (Czech)
Currently translated at 100.0% (93 of 93 strings)
Translation: OpenWrt/LuCI/applications/clamav
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsclamav/cs/
Translated using Weblate (Czech)
Currently translated at 100.0% (113 of 113 strings)
Translated using Weblate (Russian)
Currently translated at 100.0% (113 of 113 strings)
Translated using Weblate (Czech)
Currently translated at 100.0% (165 of 165 strings)
Translated using Weblate (Czech)
Currently translated at 97.7% (394 of 403 strings)
Translated using Weblate (Russian)
Currently translated at 100.0% (2592 of 2592 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ru/
Translated using Weblate (Czech)
Currently translated at 99.7% (2585 of 2592 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/cs/
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Added translation using Weblate (Estonian)
Translated using Weblate (Czech)
Currently translated at 100.0% (77 of 77 strings)
Translation: OpenWrt/LuCI/applications/xinetd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsxinetd/cs/
Translated using Weblate (Russian)
Currently translated at 100.0% (119 of 119 strings)
Translation: OpenWrt/LuCI/applications/snmpd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssnmpd/ru/
Translated using Weblate (Czech)
Currently translated at 99.1% (118 of 119 strings)
Translation: OpenWrt/LuCI/applications/snmpd
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssnmpd/cs/
Translated using Weblate (Czech)
Currently translated at 100.0% (177 of 177 strings)
Translation: OpenWrt/LuCI/applications/adblock-fast
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock-fast/cs/
Translated using Weblate (Lithuanian)
Currently translated at 96.8% (2511 of 2592 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/lt/
Translated using Weblate (Czech)
Currently translated at 100.0% (53 of 53 strings)
Translation: OpenWrt/LuCI/applications/acme
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsacme/cs/
Translated using Weblate (Czech)
Currently translated at 100.0% (191 of 191 strings)
Translation: OpenWrt/LuCI/applications/travelmate
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstravelmate/cs/
Translated using Weblate (Czech)
Currently translated at 100.0% (59 of 59 strings)
Translation: OpenWrt/LuCI/applications/dump1090
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdump1090/cs/
Translated using Weblate (Czech)
Currently translated at 100.0% (93 of 93 strings)
Translation: OpenWrt/LuCI/applications/clamav
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsclamav/cs/
Translated using Weblate (Czech)
Currently translated at 100.0% (113 of 113 strings)
Translated using Weblate (Russian)
Currently translated at 100.0% (113 of 113 strings)
Translated using Weblate (Czech)
Currently translated at 100.0% (165 of 165 strings)
Translated using Weblate (Czech)
Currently translated at 97.7% (394 of 403 strings)
Translated using Weblate (Russian)
Currently translated at 100.0% (2592 of 2592 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ru/
Translated using Weblate (Czech)
Currently translated at 99.7% (2585 of 2592 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/cs/
Co-authored-by: Džiugas Januševičius <dziugas1959@hotmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Pavel Borecki <pavel.borecki@gmail.com>
Co-authored-by: Reigo <reiks@techie.com>
Co-authored-by: SnIPeRSnIPeR <snipersniper@users.noreply.hosted.weblate.org>
Co-authored-by: 林昶立 <changli.lin@gmail.com>
Signed-off-by: Džiugas Januševičius <dziugas1959@hotmail.com>
Signed-off-by: Pavel Borecki <pavel.borecki@gmail.com>
Signed-off-by: Reigo <reiks@techie.com>
Signed-off-by: SnIPeRSnIPeR <snipersniper@users.noreply.hosted.weblate.org>
Signed-off-by: 林昶立 <changli.lin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationscoovachilli/cs/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/ru/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsradicale2/cs/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsradicale2/ru/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsstatistics/cs/
Translation: OpenWrt/LuCI/applications/coovachilli
Translation: OpenWrt/LuCI/applications/firewall
Translation: OpenWrt/LuCI/applications/radicale2
Translation: OpenWrt/LuCI/applications/statistics
Merge remote-tracking branch 'weblate/master' manually and
fix the conflict regarding the removed luci-app-nft-qos
Signed-off-by: Hannu Nyman <hannnu.nyman@iki.fi>
In the overview page are all active dhcp leases displayed.
For easier recognition, the listed MAC addresses fo these leases are
resolved to their vendor names.
Signed-off-by: Christian Korber <ck@dev.tdt.de>
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>
Maintainer is no longer active and nft-qos does not work
for some time. The last relevant change was in 2022 and since
then it does not get any update.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
The IAID is important information as it allows the user to know which
interface on the client device a given DHCPv6 lease corresponds to.
odhcpd already exposes this information (e.g. via "ubus call dhcp
ipv6leases"), but it would be good to have access to the same
information via the web interface, especially since odhcpd does take the
IAID into account when allocating addresses.
Signed-off-by: David Härdeman <david@hardeman.nu>
odhcpd has had support for Discovery of Network-designated Resolvers
(DNR, RFC9463), which allows allows devices on the network to discover
encrypted DNS resolvers, since December 2024 [1].
This patch adds a basic luci interface to configure DNR records. odhcp
actually supports DNR records via DHCPv4, DHCPv6 and RA, but since it's
typically only used for the latter two, stashing the option next to IPv6
DNS server options seems reasonable.
Patch v2: long help string broken into multiple strings, "Format: ..."
changed to "Syntax: ...".
Patch v3: add a note on the _lifetime=<seconds> parameter, add a RA
<abbr> stanza.
Patch v4: change title to "Announce encrypted DNS servers", change IPv6
example address to the IANA documentation address space, add a blurb
about IPv4 address support (only when odhcpd is used for DHCPv4).
[1] 6d342cc03b
Signed-off-by: David Härdeman <david@hardeman.nu>