summaryrefslogtreecommitdiff
path: root/modules/luci-mod-network/htdocs
Commit message (Collapse)AuthorAgeFilesLines
* luci-mod-network: disable 'Edit' button for dynamic interfacesPaul Donald2023-12-311-0/+5
| | | | | | | | | | Otherwise they produce "Cannot read properties of null". Tested on 23.05.2 Fixes issue #6799 Signed-off-by: Paul Donald <newtwen@gmail.com>
* luci-mod-network: Rework the (multi) mac for static leasesPaul Donald2023-12-281-25/+3
| | | | | | | | +i18n Removed Jows widget which hindered management of multi mac entries. Signed-off-by: Paul Donald <newtwen@gmail.com>
* luci-mod-network: Make MAC check functions generic.Paul Donald2023-12-281-24/+31
| | | | | | Also remove a reassigned so.validate function (dead code). Signed-off-by: Paul Donald <newtwen@gmail.com>
* luci-mod-network: DHCP tab IPsets ( add NFTsets properties )Paul Donald2023-12-281-3/+22
| | | | | | | | See also: https://github.com/openwrt/openwrt/commit/d7f378796f985c902ff7906767c275c40a15347f Signed-off-by: Paul Donald <newtwen@gmail.com>
* luci-mod-network: reword some help-stringsPaul Donald2023-12-191-1/+1
| | | | Signed-off-by: Paul Donald <newtwen@gmail.com>
* luci-mod-network: reword some help-stringsPaul Donald2023-12-191-12/+36
| | | | | | also unburden translators from some static strings. Signed-off-by: Paul Donald <newtwen@gmail.com>
* luci-mod-network: reword some help-stringsPaul Donald2023-12-191-13/+23
| | | | | | also unburden translators from some static strings. Signed-off-by: Paul Donald <newtwen@gmail.com>
* luci-mod-network: exclude alias to self from device pickerJo-Philipp Wich2023-12-081-0/+1
| | | | | | | 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>
* luci-mod-network: remove unused option propertyJo-Philipp Wich2023-12-081-1/+0
| | | | | | | | 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>
* luci-mod-network: properly reflect config state in sysfs tristatesJo-Philipp Wich2023-12-081-1/+1
| | | | | | | | | | 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>
* luci-mod-network: Rework the (multi) mac for static leases textPaul Donald2023-12-081-1/+1
| | | | Signed-off-by: Paul Donald <newtwen@gmail.com>
* luci-mod-network: Remove spurious linefeedPaul Donald2023-12-081-2/+1
| | | | Signed-off-by: Paul Donald <newtwen@gmail.com>
* luci-mod-network: Rework address helptext for DHCPPaul Donald2023-12-071-3/+23
| | | | | | | | | | | 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>
* luci-mod-network: Rework match_tag helptext for static leasesPaul Donald2023-12-071-3/+4
| | | | | | Evidently, not all translators get it right. Signed-off-by: Paul Donald <newtwen@gmail.com>
* Merge pull request #6642 from vgaetera/dnsmasq-network-selectPaul Donald2023-12-041-6/+7
|\ | | | | luci-mod-network: use network selector for dnsmasq instances
| * luci-mod-network: use network selector for dnsmasq instancesVladislav Grigoryev2023-10-211-6/+7
| | | | | | | | | | | | | | Use widgets.NetworkSelect to select interfaces for dnsmasq. Different interfaces help implement multi-instance setup. Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
* | luci-mod-network: Update wireless.js to clarify Distance OptimizationTomáš Hnyk2023-12-041-1/+1
| | | | | | | | | | | | | | 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>
* | Merge pull request #6711 from systemcrash/dns_nitpickPaul Donald2023-12-041-7/+7
|\ \ | | | | | | luci-mod-network: nitpick of CNAME, MX, SRV syntax formatting
| * | luci-mod-network: nitpick of CNAME, MX, SRV syntax formattingPaul Donald2023-11-221-7/+7
| | | | | | | | | | | | Signed-off-by: Paul Donald <newtwen@gmail.com>
* | | Merge pull request #6712 from systemcrash/discard_textPaul Donald2023-12-041-1/+2
|\ \ \ | | | | | | | | luci-mod-network: Extend helptext for RFC1918 rebind_protection
| * | | luci-mod-network: Extend helptext for RFC1918 rebind_protectionPaul Donald2023-11-221-1/+2
| |/ / | | | | | | | | | Signed-off-by: Paul Donald <newtwen@gmail.com>
* | | luci-mod-network: Fix 'instances' fields for dnsmasq dhcp config entriesPaul Donald2023-11-221-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | luci-mod-network: Evidently hostid was not max 32 bits but 64 bits 🤷Paul Donald2023-11-221-2/+2
|/ / | | | | | | Signed-off-by: Paul Donald <newtwen@gmail.com>
* | Merge pull request #6698 from vgaetera/route-defaults-fixJo-Philipp Wich2023-11-191-3/+2
|\ \ | | | | | | luci-mod-network: fix route defaults
| * | luci-mod-network: fix route defaultsVladislav Grigoryev2023-11-141-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | luci-mod-network: wireless.js: allow bridges for radius vlan tagged ifacesJo-Philipp Wich2023-11-191-1/+0
|/ / | | | | | | | | Fixes: #6696 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* | luci-mod-network: add missing `throw` route typeJo-Philipp Wich2023-11-091-0/+1
| | | | | | | | | | Ref: https://forum.openwrt.org/t/x/177040 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* | luci-mod-network: relax RA server mode requirementsJo-Philipp Wich2023-11-011-2/+25
| | | | | | | | | | | | | | Allow RA server mode on all but some known incompatible interface protocols. Fixes: #6667 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* | luci-base, luci-mod-network: fix R0KH & R1KH option help textJo-Philipp Wich2023-10-201-2/+2
| | | | | | | | | | Fixes: #6571 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* | luci-mod-network: rework DHCP relay settingsJo-Philipp Wich2023-10-201-19/+23
|/ | | | | | | | | - 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>
* luci-network-interfaces: Add IPv6 lifetime optionsPaul Dee2023-09-211-0/+12
| | | | Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
* luci-mod-network: routes.js: enforce interface settingJo-Philipp Wich2023-08-211-0/+1
| | | | | Fixes: #6521 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-mod-network: wireless.js: remove form reset buttonJo-Philipp Wich2023-08-121-1/+3
| | | | | | | | | 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>
* luci-mod-network: grammar fixesPaul Dee2023-08-111-1/+1
| | | | | | To setup (n) -> To set(v) up Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
* luci-mod-network: Adjust DNS/DHCP tab orderHannu Nyman2023-08-051-4/+4
| | | | | | | | | 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>
* Merge pull request #6335 from arbolitoloco1/patch-4Hannu Nyman2023-08-051-0/+22
|\ | | | | luci-mod-network: add support for creating cname records
| * luci-mod-network: added support for cname recordsSantiago Kozak2023-08-051-0/+22
| | | | | | | | | | | | This commit adds a tab that allows creating CNAME records Signed-off-by: Santiago Kozak <santikzk1406@gmail.com>
* | luci-mod-network: Static Leases improvementsPaul Dee2023-08-031-13/+79
| | | | | | | | | | | | | | | | | | | | 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>
* | luci-mod-network: wireless.js: rename `multicast_to_unicast` optionJo-Philipp Wich2023-07-261-1/+1
| | | | | | | | | | | | | | | | | | 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>
* | luci-mod-network: interfaces.js: add dhcpv6_pd_min_len supportJohn Kohl2023-07-051-0/+4
| | | | | | | | | | | | | | | | 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>
* | luci-mod-network: improve descriptions for DSL annex option valuesJan Hoffmann2023-07-021-14/+20
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | luci-mod-network: wireless.js: add wifi-iface macaddr random supportManas Sambhus2023-06-251-3/+4
| | | | | | | | | | | | | | | | | | | | 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>
* | luci-mod-network: add PREF64 supportOndřej Caletka2023-06-241-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | luci-mod-network: fix incorrectly reverting vlan device nameJo-Philipp Wich2023-06-201-1/+1
| | | | | | | | | | Fixes: #6435 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* | luci-mod-network: fix dropdown clipping on diagnostics pageJo-Philipp Wich2023-05-301-2/+2
| | | | | | | | | | | | | | | | | | 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>
* | luci-mod-network: expose peerdns option for dhcpv6Jo-Philipp Wich2023-04-281-0/+1
|/ | | | | | 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>
* luci-mod-network: add stricter wireless interface name validationGlenn Washburn2023-03-151-1/+1
| | | | | | | | | | | | | | | | 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>
* luci-mod-network: adjust DNS cache size placeholderHannu Nyman2023-02-271-1/+1
| | | | | | | | | | 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>
* Merge pull request #6104 from dhewg/6gJo-Philipp Wich2023-02-071-16/+9
|\ | | | | luci-mod-network: enable configuring wifi ax networks on the 6G band
| * luci-mod-network: use "band" from iwinfo freqlistAndre Heider2023-01-231-11/+3
| | | | | | | | | | | | Instead of mapping it by frequency. Signed-off-by: Andre Heider <a.heider@gmail.com>