summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network
AgeCommit message (Collapse)Author
2024-02-15luci-mod-network: fix broken formattingPaul Donald
Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-02-14Revert "luci-mod-network: add ppsk option (support for Private PSK)"Paul Donald
This reverts commit 75a2fd233baabf6fa5bafcb13ccc6d7000a4604d. Resolves issue#6902
2024-02-12luci-mod-network: DNS forwardings -> DNS ForwardsPaul Donald
Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-02-08luci-mod-network: put each IPv6 address on a separate lineDavid Härdeman
Right now, when there's active DHCPv6 leases and more than one address per host (e.g. because ULA is used together with GUA prefixes), the two IPv6 addresses will be printed on one line (which may or may not get broken up depending on the length of the addresses, which also looks inconsistent). Putting each address on a separate line makes it much easier to read the addresses (IMHO). Signed-off-by: David Härdeman <david@hardeman.nu>
2024-01-31luci-mod-network: add disabled option for interfacePaul Donald
Enabled by default. If the interface is in use, the user will be asked to confirm. Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2024-01-28luci-mod-network: add ppsk option (support for Private PSK)Manuel Giganto
Include support in luci to enable the Private PSK. When Private PSK is enabled, clients can use a default password (common), or have their own private password that is associated with the client MAC. The password is retrieved from RADIUS server, asking for the client MAC, and when such client MAC is not defined, RADIUS should return a default password. RADIUS can also return other parameters like VLANs, which can be used to put clients dynamically in different VLANs based on their MAC, or the default configuration. Private PSK is not compatible yet with SAE encryption, therefore cannot be used yet with WPA3 or WPA3-mixed. It implements the UI for the PPSK already in master: https://github.com/openwrt/openwrt/pull/3509 Signed-off-by: Manuel Giganto <mgigantoregistros@gmail.com>
2024-01-26luci-mod-network: Fixes for PXE/TFTP tab.Paul Donald
Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-01-26luci-mod-network: Restructure DHCP optionsPaul Donald
DHCP devices: add minport and maxport Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-01-26luci-mod-network: Restructure DHCP optionsPaul Donald
DHCP limits: add [min|max]_cache_ttl Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-01-26luci-mod-network: Restructure DHCP optionsPaul Donald
DHCP logging: add logfacility Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-01-26luci-mod-network: Restructure DHCP optionsPaul Donald
DHCP logging: add logdhcp Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-01-26luci-mod-network: Restructure DHCP optionsPaul Donald
Multiple dnsmasq sections are now enabled (for those who want e.g. separate dnsmasq options per interface). Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-01-26luci-mod-network: Restructure DHCP optionsPaul Donald
DHCP options better structured according to the nature of the option: -Tab titles have been trimmed -Some options moved into new tabs (filter, limits, logging, devices,etc) Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-01-25luci-mod-network: let sourcefilter option available for most protoChen Minqiang
sourcefilter option should be available for proto like: 'dhcpv6' 'directip' 'ppp' 'pppoe' 'pppoa' 'pptp' 'qmi' 'mbim' 'ncm' '3g' Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2024-01-25luci-mod-network: add getHostHints to luci-rpc permissionsPaul Donald
it would seem that this was forgotten somewhere along the way Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-01-25luci-mod-network: improve static lease ip validation logicPaul Donald
m (mac) is an array, and is zero length or greater. Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-01-25luci-mod-network: repair DHCP relay validation logicPaul Donald
change && to || so as not to backtrace if only one was empty/null. Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-01-23luci-mod-network: wireless.js: fix 802.11r dependenciesJesus Fernandez Manzano
Don't allow enabling 802.11r when using WPA, it needs at least WPA2. This is because 802.11r advertises FT support in-part through the Authentication and Key Management (AKM) suites in the Robust Security Network (RSN) Information Element, which was included in the 802.11i amendment and WPA2 certification program. Pre-standard WPA did not include the RSN IE, but the WPA IE. This IE can not advertise the AKM suite for FT. Also restrict ft_psk_generate_local to psk2 and psk-mixed. Using it with non-psk encryptions breaks roaming. Signed-off-by: Jesus Fernandez Manzano <jesus.manzano@galgus.ai>
2023-12-31luci-mod-network: disable 'Edit' button for dynamic interfacesPaul Donald
Otherwise they produce "Cannot read properties of null". Tested on 23.05.2 Fixes issue #6799 Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-12-28luci-mod-network: Rework the (multi) mac for static leasesPaul Donald
+i18n Removed Jows widget which hindered management of multi mac entries. Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-12-28luci-mod-network: Make MAC check functions generic.Paul Donald
Also remove a reassigned so.validate function (dead code). Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-12-28luci-mod-network: DHCP tab IPsets ( add NFTsets properties )Paul Donald
See also: https://github.com/openwrt/openwrt/commit/d7f378796f985c902ff7906767c275c40a15347f Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-12-19luci-mod-network: reword some help-stringsPaul Donald
Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-12-19luci-mod-network: reword some help-stringsPaul Donald
also unburden translators from some static strings. Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-12-19luci-mod-network: reword some help-stringsPaul Donald
also unburden translators from some static strings. Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-12-08luci-mod-network: exclude alias to self from device pickerJo-Philipp Wich
Do not present alias to self as valid choice in the interface device picker. Fixes: #6754 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-12-08luci-mod-network: remove unused option propertyJo-Philipp Wich
The logic handling the `migrate` property has been dropped in commit f689d0d208 ("luci-mod-network: refactor device configuration") so remove the now redundant property as well. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-12-08luci-mod-network: properly reflect config state in sysfs tristatesJo-Philipp Wich
When a boolean sysfs option is forcibly set to `0` or `1` in uci, then make sure to properly reflect that choice state when rendering the widget. Right now the dropdown incorrectly reverted to "automatic" after saving but not applying the changes. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-12-08luci-mod-network: Rework the (multi) mac for static leases textPaul Donald
Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-12-08luci-mod-network: Remove spurious linefeedPaul Donald
Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-12-07luci-mod-network: Rework address helptext for DHCPPaul Donald
Ease translators lives. This introduces the function customi18n for positional string variables. Word and grammatical ordering of some languages breaks guarantees for positional string arguments. Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-12-07luci-mod-network: Rework match_tag helptext for static leasesPaul Donald
Evidently, not all translators get it right. Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-12-04Merge pull request #6642 from vgaetera/dnsmasq-network-selectPaul Donald
luci-mod-network: use network selector for dnsmasq instances
2023-12-04 luci-mod-network: Update wireless.js to clarify Distance OptimizationTomáš Hnyk
Fixes #2784 Right now, it is not clear that users in indoor settings should stay clear off this setting and people struggle with it as evidenced in the linked issue. Signed-off-by: Tomáš Hnyk <tomashnyk@gmail.com>
2023-12-04Merge pull request #6711 from systemcrash/dns_nitpickPaul Donald
luci-mod-network: nitpick of CNAME, MX, SRV syntax formatting
2023-12-04Merge pull request #6712 from systemcrash/discard_textPaul Donald
luci-mod-network: Extend helptext for RFC1918 rebind_protection
2023-11-22luci-mod-network: Fix 'instances' fields for dnsmasq dhcp config entriesPaul Donald
Fixed error wherein luci erroneously saved the iterator integer of the current dnsmasq config object to a host (and boot/PXE) config entry 'instance' field, instead of correctly referring to its name. Now we use the correct ".name" field of the dnsmasq config entry. Anonymous entries have e.g. "cfg01411c". The ".name" field corresponds to 'myName' in /etc/config/dhcp entries of: config dnsmasq 'myName' ... In this way, host and other entry types are bound correctly to specific dnsmasq instances. For anonymous entries, display "dnsmasq[x]" as name. Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-11-22luci-mod-network: Evidently hostid was not max 32 bits but 64 bits 🤷Paul Donald
Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-11-22luci-mod-network: nitpick of CNAME, MX, SRV syntax formattingPaul Donald
Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-11-22luci-mod-network: Extend helptext for RFC1918 rebind_protectionPaul Donald
Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-11-19Merge pull request #6698 from vgaetera/route-defaults-fixJo-Philipp Wich
luci-mod-network: fix route defaults
2023-11-19luci-mod-network: wireless.js: allow bridges for radius vlan tagged ifacesJo-Philipp Wich
Fixes: #6696 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-11-14luci-mod-network: fix route defaultsVladislav Grigoryev
Routes inherit metric and table from the relevant interface. Display route metric and table as `auto` when unspecified. Consolidate modal view for unspecified options. Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
2023-11-09luci-mod-network: add missing `throw` route typeJo-Philipp Wich
Ref: https://forum.openwrt.org/t/x/177040 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-11-01luci-mod-network: relax RA server mode requirementsJo-Philipp Wich
Allow RA server mode on all but some known incompatible interface protocols. Fixes: #6667 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-10-21luci-mod-network: use network selector for dnsmasq instancesVladislav Grigoryev
Use widgets.NetworkSelect to select interfaces for dnsmasq. Different interfaces help implement multi-instance setup. Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
2023-10-20luci-base, luci-mod-network: fix R0KH & R1KH option help textJo-Philipp Wich
Fixes: #6571 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-10-20luci-mod-network: rework DHCP relay settingsJo-Philipp Wich
- Drop completely bogus 'ID' option, it's not handled by anything - Clarify relay from / relay to / accept from options Fixes: #6639 Fixes: a627744bb5 ("luci-mod-network: 'relay' tab added") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-09-21luci-network-interfaces: Add IPv6 lifetime optionsPaul Dee
Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
2023-08-21luci-mod-network: routes.js: enforce interface settingJo-Philipp Wich
Fixes: #6521 Signed-off-by: Jo-Philipp Wich <jo@mein.io>