summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network
AgeCommit message (Collapse)Author
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>
2023-08-12luci-mod-network: wireless.js: remove form reset buttonJo-Philipp Wich
The form reset button on the wireless page has no function as no input field is present outside of modal configuration views, so drop it to avoid confusion. Ref: #6514 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-08-11luci-mod-network: grammar fixesPaul Dee
To setup (n) -> To set(v) up Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
2023-08-05luci-mod-network: Adjust DNS/DHCP tab orderHannu Nyman
Adjust the order of tabs in the DNS/DHCP page. Based on estimated importance of tabs * move common (old) tabs to be earlier * move the less frequently used (new) tabs later Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2023-08-05Merge pull request #6335 from arbolitoloco1/patch-4Hannu Nyman
luci-mod-network: add support for creating cname records
2023-08-05luci-mod-network: added support for cname recordsSantiago Kozak
This commit adds a tab that allows creating CNAME records Signed-off-by: Santiago Kozak <santikzk1406@gmail.com>
2023-08-03luci-mod-network: Static Leases improvementsPaul Dee
Under DHCP and DNS, Static Leases tab: Add extra fields and booleans Add 'ignore' value for ip field Add description text for fields Enable wildcards in mac addresses Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
2023-07-26luci-mod-network: wireless.js: rename `multicast_to_unicast` optionJo-Philipp Wich
The `multicast_to_unicast` option has been renamed to `multicast_to_unicast_all` in OpenWrt commit https://github.com/openwrt/openwrt/commit/09ea1db93 Fixes: #6472 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-07-05luci-mod-network: interfaces.js: add dhcpv6_pd_min_len supportJohn Kohl
Add support for setting dhcpv6_pd_min_len, which enforces a floor on the IPv6 prefix delegation length, so the administrator can conserve IPv6 address space on an interface. Signed-off-by: John Kohl <jtk.git@bostonpog.org>
2023-07-02luci-mod-network: improve descriptions for DSL annex option valuesJan Hoffmann
Spell out the names of the DSL standards to make the options easier to understand. For modems supporting VDSL, also mention clearly which of the options actually set the bits for VDSL2. As the items now start with the name of an ADSL standard, use that for ordering. The generic variants including VDSL2 support stay at the top, as they should be a good choice in almost all cases. Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2023-06-25luci-mod-network: wireless.js: add wifi-iface macaddr random supportManas Sambhus
Add ability to choose random or custom mac address for wifi-iface. By default the driver mac address is used and this special feature needs to be supported by the wireless driver. Signed-off-by: Manas Sambhus <manas.sambhus+github@gmail.com> [ drop redundant tags and improve commit description ] Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-06-24luci-mod-network: add PREF64 supportOndřej Caletka
Add support for ra_pref64 option for IPv6 Router Advertisements options. This option of IPv6 Router Advertisements allows devices connected to a IPv6-only network to discover IPv6 prefix of the NAT64 gateway. Devices can use this information for instance to setup client translator (CLAT) from IPv4 to IPv6 in 464XLAT (RFC 6877) scenario or to handle IPv4 address literal on application level. Signed-off-by: Ondřej Caletka <ondrej@caletka.cz> [ remove extra new line and fix commit description ] Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-06-20luci-mod-network: fix incorrectly reverting vlan device nameJo-Philipp Wich
Fixes: #6435 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-05-30luci-mod-network: fix dropdown clipping on diagnostics pageJo-Philipp Wich
The default overflow hidden style for table cell elements breaks action dropdowns on the diagnostics page. Fixes: #6379 Fixes: 5f2d305476 ("luci-mod-network: convert diagnostic page to LuCI look and feel") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-04-28luci-mod-network: expose peerdns option for dhcpv6Jo-Philipp Wich
Ref: https://github.com/openwrt/luci/commit/2be01cbfcb34746d9713173a60c3f8a69c554a68#commitcomment-111035308 Fixes: 2be01cbfcb ("luci-mod-network: restrict peerdns option to protocols that implemenent it") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-03-15luci-mod-network: add stricter wireless interface name validationGlenn Washburn
Linux wireless interface names have the following restrictions: * It must not be an empty string * It must not be '.' or '..' * It must not contain any /, : or space character ( , \t, \n, ...) * It must be less than 16 chars * It likely must not contain any % either Fixes: 8673aef8db ("luci-mod-network: remove uciname validation from wireless interface") Signed-off-by: Glenn Washburn <development@efficientek.com> [reword validation error messages, remove extended description text as it would be shown as part of the validation errors] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-02-27luci-mod-network: adjust DNS cache size placeholderHannu Nyman
Adjust DNS cache size placeholder value to 1000 to match the OpenWrt default after https://github.com/openwrt/openwrt/commit/a57796b137494fc20e984d0049e8e7430e9ebb25 Fixes #6254 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2023-02-07Merge pull request #6104 from dhewg/6gJo-Philipp Wich
luci-mod-network: enable configuring wifi ax networks on the 6G band
2023-02-07luci-mod-network: handle dynamic device configuration defaultsJo-Philipp Wich
Most uci network device configuration settings have no specific default value which means that netifd will only alter the related sysfs parameters if an explicit value is specified in uci. When omitted from the configuration, the related sysfs setting is left untouched. This behaviour collides with LuCI's approach of purging boolean options from the configuration if they match their default value, leading to the inability to disable or enable certain settings as described in #6219. Solve this issue by replacing flag widgets with tri-state selects offering an "automatic" (default) as well as an explicit "enabled" and "disabled" choice. Also query sysfs on load and preset the automatic choice with an indication whether the underlying sysfs settings is currently active or not. Fixes: #6219 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-02-05luci-mod-network: interfaces.js: avoid stray empty device uci sectionsJo-Philipp Wich
Ensure that just created uci device sections are removed if the edit option modal is cancelled without saving. This prevents empty, but harmless `config device` sections from being created on a subsequent Save & Apply operation. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-01-27luci-mod-network: fix output style of diagnostics commandsJo-Philipp Wich
Ensure that the output textarea uses a monospace font and preformatted text. Fixes: 5f2d305476 ("luci-mod-network: convert diagnostic page to LuCI look and feel") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-01-23luci-mod-network: use "band" from iwinfo freqlistAndre Heider
Instead of mapping it by frequency. Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-01-23luci-mod-network: enable configuring wifi ax networks on the 6G bandAndre Heider
Tested on a MT7921 device. Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-01-23luci-mod-network: don't offer unsupported wireless hwmodesAndre Heider
This prevents offering e.g. 'Legacy' on ac/n only radios or ax if hostapd wasn't compiled with ax support. Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-01-15luci-mod-network: remove uciname validation from wireless interfaceHannu Nyman
Remove the 'uciname' validation rule, as it prevents using '-' that is a valid character. Fixes: 0c1be9ae5 luci-mod-network: Add length restriction to wireless Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2023-01-14luci-mod-network: Add length restriction to wireless interface nameHannu Nyman
Based on issue #6101, add a maxlength of 15 chars to the wireless interface's optional name field. Also validate it as uciname. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2023-01-05luci-mod-network: disambiguate DHCP IP set help textPaul Dee
Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
2022-12-29Merge pull request #5569 from systemcrash/radius_vlanHannu Nyman
luci-mod-network: Expose WPA Enterprise RADIUS VLAN settings.
2022-12-21luci-mod-network: place wlan roaming related options to a tabHannu Nyman
Collectd all WLAN roaming related options to a new dedicated tab. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2022-12-10luci-mod-network: (wireless) Expose WPA Enterprise RADIUS VLAN settings.Paul Dee
Tested on: 21.02.1 Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>