summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network
AgeCommit message (Collapse)Author
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>
2022-12-10Merge pull request #5572 from systemcrash/80211vJo-Philipp Wich
luci-mod-network: Expose 802.11v settings.
2022-12-10luci-mod-network: (wireless) Expose 802.11k settings.Paul Dee
Tested on: 21.02.1 Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
2022-11-23Merge pull request #6063 from Zeranoe/fix-address-validatorJo-Philipp Wich
luci-mod-network: fix address validation
2022-11-23luci-mod-network: improve description for filterwin2k option againLukas Tribus
Stop using the word useless both in the name and the description and call the feature what it actually is (Filter SRV/SOA service discovery). Signed-off-by: Lukas Tribus <lukas@ltri.eu> [slightly reword commit message] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-11-21luci-mod-network: fix invalid markup in the relay tabJo-Philipp Wich
Fixes: #6107 Fixes: a627744bb5 ("luci-mod-network: 'relay' tab added") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-11-19luci-mod-network: fix address validationKyle Schwarz
Fixes --server validation for: - /domain[/domain] - // - /#/ Fixes hostname validation for: - *.domain - *domain Changes ..domain to be an invalid hostname Signed-off-by: Kyle Schwarz <zeranoe@gmail.com>
2022-11-15luci-mod-network: restrict peerdns option to protocols that implemenent itJo-Philipp Wich
Only some supported protocol extensions honour the `peerdns` options. Fixes: #6093 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-11-12luci-mod-network: DNS - support filtering A or AAAA recordsHannu Nyman
Support Dnsmasq 2.87-5 feature to filter DNS results: * remove IPv6 AAAA records and return only IPv4 addresses * remove IPv4 A records and return only IPv6 addresses Especially the removal of IPv6 AAAA records can be useful with ISPs that provide IPv6 address resolving but do not actually offer IPv6 routing/connectivity. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2022-11-07luci-mod-network: convert diagnostic page to LuCI look and feelFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-28Merge pull request #6047 from systemcrash/luci-mod-network-relayFlorian Eckert
luci-mod-network: 'relay' tab added
2022-10-28luci-mod-network: 'relay' tab addedPaul Dee
Adds LuCI GUI for dnsmasq DHCP 'relays'. The helper functions in dnsmasq/files/dnsmasq.init limit behaviour whereby it is not possible to omit server_addr, where to omit it (dnsmasq supported) would result in a broad- or multicast further on. Tested on 22.03.2 Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
2022-10-27luci-mod-network: gracefully handle empty channel listsJo-Philipp Wich
Avoid undefined value access when the channel list is empty. Fixes: #5937, #5951 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-27luci-mod-network: remove uppercase for interface name in modal viewFlorian Eckert
Unify the network name display as shown in the overview by removing the uppercase conversion. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-26luci-mod-network: remove uppercase for interface name on overview pageFlorian Eckert
In the overview page, the name of the interface is converted to uppercase. However, this is not the name in the configuration. From my point of view, this makes no sense. The name displayed should correspond exactly to the name in the configuration. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-10-25luci-mod-network: remove uneeded libiwinfo-lua dependencyJo-Philipp Wich
Since the LuCI network admin module was rewritten into client side views, there is no server side Lua processing anymore. The iwinfo routines are utilized through the corresponding rpcd plugin. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-20luci-app-dhcp: 'addresses' helptext improvement with info from manpage.Paul Dee
Placeholder hint also reflects syntax. Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com> [replace asdf.com with example.com, use … instead of ..., remove uneeded &nbsp; entities] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-20luci-mod-network: 'mxhosts' tab addedPaul Dee
DHCP Help does not document mxhost, but they are available in dnsmasq. This effectively implements MX records within DNS. Tested on 22.03.2 Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com> [fix _() calls, fix commit subject, rebase onto current master] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-10-20luci-mod-network: 'srvhosts' tab addedPaul Dee
DHCP Help does not document srv-host, but they are available in dnsmasq. This effectively implements SRV records within DNS. Tested on 22.03.2 Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com> [fix _() calls, join translation strings on the same line, replace &hellip; with …, fix commit subject] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-09-30luci-mod-network: improve description for filterwin2k optionJan Hoffmann
Make it clear that this option also filters some not-so-useless queries. Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2022-09-01luci-mod-network: Offer ft-over-air by default for 802.11rHannu Nyman
OpenWrt commit 2984a0420 changed the default 802.11r Fast Transition method to be ft-over-air instead of ft-over-ds. Offer ft-over-air as the first item in the drop-down list, so that it gets selected by default when 802.11r option is enabled. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>