Commit graph

331 commits

Author SHA1 Message Date
Hannu Nyman
48e96d8955 luci-mod-network: Add clarifying note to wireless join dialog
Add a clarifying note about two different meanings of "network"on
the wireless join page. In the dialog title the word "network" refers
to the wireless SSID, while in the config item the same "network"
refers to the name to be used in OpenWrt network configuration.

Reference to forum discussion at
https://forum.openwrt.org/t/cant-join-a-scanned-network/189859

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2024-03-03 20:24:19 +02:00
Jo-Philipp Wich
c8cddc3530 luci-mod-network: dhcp.js: relax CNAME domain validation
Relax the CNAME domain validation to allow wildcard names.

Fixes: #6801
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2024-02-19 00:23:27 +01:00
Paul Donald
d9e7be1b43 luci-mod-network: wireless: RADIUS Access/Accounting-Request attrs
See following for more detail:

https://w1.fi/cgit/hostap/commit/?id=af35e7af7f8bb1ca9f0905b4074fb56a264aa12b

Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-02-17 17:29:19 +01:00
Paul Donald
5b955f1ae9 luci-mod-network: dhcp: separate actual value and display string
saved value will now be only an integer.

Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-02-15 23:07:31 +01:00
Paul Donald
c0655df338 luci-mod-network: fix broken formatting
Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-02-15 04:01:53 +01:00
Paul Donald
05af14b25b Revert "luci-mod-network: add ppsk option (support for Private PSK)"
This reverts commit 75a2fd233b.

Resolves issue#6902
2024-02-14 20:40:19 +01:00
Paul Donald
1b18cea61d luci-mod-network: DNS forwardings -> DNS Forwards
Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-02-12 01:20:54 +01:00
David Härdeman
9116a93d43 luci-mod-network: put each IPv6 address on a separate line
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-02-08 02:07:49 +01:00
Paul Donald
8a0ee6689f luci-mod-network: add disabled option for interface
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-31 03:39:02 +01:00
Manuel Giganto
75a2fd233b luci-mod-network: add ppsk option (support for Private PSK)
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-28 16:24:16 +01:00
Paul Donald
0c27557ab5 luci-mod-network: Fixes for PXE/TFTP tab.
Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-01-26 02:26:12 +01:00
Paul Donald
60423d63f5 luci-mod-network: Restructure DHCP options
DHCP devices: add minport and maxport

Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-01-26 00:57:24 +01:00
Paul Donald
a9744f00e1 luci-mod-network: Restructure DHCP options
DHCP limits: add [min|max]_cache_ttl

Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-01-26 00:57:24 +01:00
Paul Donald
6666d32e1d luci-mod-network: Restructure DHCP options
DHCP logging: add logfacility

Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-01-26 00:57:24 +01:00
Paul Donald
6d425206d2 luci-mod-network: Restructure DHCP options
DHCP logging: add logdhcp

Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-01-26 00:57:24 +01:00
Paul Donald
09ab764173 luci-mod-network: Restructure DHCP options
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-26 00:57:24 +01:00
Paul Donald
010c32010b luci-mod-network: Restructure DHCP options
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-26 00:57:24 +01:00
Chen Minqiang
999f26e951 luci-mod-network: let sourcefilter option available for most proto
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-25 13:50:49 +01:00
Paul Donald
f6cbda00e7 luci-mod-network: improve static lease ip validation logic
m (mac) is an array, and is zero length or greater.

Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-01-25 01:09:12 +01:00
Paul Donald
754b36d05a luci-mod-network: repair DHCP relay validation logic
change && to || so as not to backtrace if only one was empty/null.

Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-01-25 01:09:11 +01:00
Jesus Fernandez Manzano
4c76a91fd7 luci-mod-network: wireless.js: fix 802.11r dependencies
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>
2024-01-23 10:49:34 +01:00
Paul Donald
032f305678 luci-mod-network: disable 'Edit' button for dynamic interfaces
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-31 13:11:41 +00:00
Paul Donald
d5db17361a luci-mod-network: Rework the (multi) mac for static leases
+i18n

Removed Jows widget which hindered management of multi mac entries.

Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-12-28 18:34:25 +00:00
Paul Donald
bcaa445f08 luci-mod-network: Make MAC check functions generic.
Also remove a reassigned so.validate function (dead code).

Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-12-28 18:34:18 +00:00
Paul Donald
f98ce31fdb luci-mod-network: DHCP tab IPsets ( add NFTsets properties )
See also:

d7f378796f

Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-12-28 18:11:57 +00:00
Paul Donald
e7650bb86a luci-mod-network: reword some help-strings
Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-12-19 04:18:22 +01:00
Paul Donald
f79a132597 luci-mod-network: reword some help-strings
also unburden translators from some static strings.

Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-12-19 04:04:06 +01:00
Paul Donald
0a67f0b880 luci-mod-network: reword some help-strings
also unburden translators from some static strings.

Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-12-19 04:02:50 +01:00
Jo-Philipp Wich
864bf25244 luci-mod-network: exclude alias to self from device picker
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-08 13:01:13 +01:00
Paul Donald
6bdc577109 luci-mod-network: Rework the (multi) mac for static leases text
Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-12-08 03:49:01 +01:00
Paul Donald
ab95f8a618 luci-mod-network: Remove spurious linefeed
Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-12-08 02:50:35 +01:00
Paul Donald
e05ee93897 luci-mod-network: Rework address helptext for DHCP
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-07 04:29:25 +01:00
Paul Donald
175a943250 luci-mod-network: Rework match_tag helptext for static leases
Evidently, not all translators get it right.

Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-12-07 04:29:24 +01:00
Paul Donald
aa1e049f36
Merge pull request #6642 from vgaetera/dnsmasq-network-select
luci-mod-network: use network selector for dnsmasq instances
2023-12-04 16:04:24 +01:00
Tomáš Hnyk
d9a83dfa56
luci-mod-network: Update wireless.js to clarify Distance Optimization
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-04 12:02:03 +01:00
Paul Donald
d179d789e5
Merge pull request #6711 from systemcrash/dns_nitpick
luci-mod-network: nitpick of CNAME, MX, SRV syntax formatting
2023-12-04 05:16:40 +01:00
Paul Donald
d75626efcd
Merge pull request #6712 from systemcrash/discard_text
luci-mod-network: Extend helptext for RFC1918 rebind_protection
2023-12-04 05:16:23 +01:00
Paul Donald
0fb8b1f9ad luci-mod-network: Fix 'instances' fields for dnsmasq dhcp config entries
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-22 19:39:55 +01:00
Paul Donald
ef315b06ce luci-mod-network: Evidently hostid was not max 32 bits but 64 bits 🤷
Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-11-22 14:41:07 +01:00
Paul Donald
a90b33d35e luci-mod-network: nitpick of CNAME, MX, SRV syntax formatting
Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-11-22 05:27:57 +01:00
Paul Donald
11821a7de9 luci-mod-network: Extend helptext for RFC1918 rebind_protection
Signed-off-by: Paul Donald <newtwen@gmail.com>
2023-11-22 05:27:51 +01:00
Jo-Philipp Wich
a9849edf23
Merge pull request #6698 from vgaetera/route-defaults-fix
luci-mod-network: fix route defaults
2023-11-19 01:10:33 +01:00
Jo-Philipp Wich
26e4b69abf luci-mod-network: wireless.js: allow bridges for radius vlan tagged ifaces
Fixes: #6696
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-11-19 01:06:56 +01:00
Vladislav Grigoryev
a84762e0c9 luci-mod-network: fix route defaults
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-14 13:21:35 +03:00
Jo-Philipp Wich
b423b4bbcf luci-mod-network: add missing throw route type
Ref: https://forum.openwrt.org/t/x/177040
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-11-09 16:32:54 +01:00
Jo-Philipp Wich
f105827f42 luci-mod-network: relax RA server mode requirements
Allow RA server mode on all but some known incompatible interface protocols.

Fixes: #6667
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-11-01 00:48:59 +01:00
Vladislav Grigoryev
f96691ce44 luci-mod-network: use network selector for dnsmasq instances
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-21 17:38:09 +03:00
Jo-Philipp Wich
5d924ed31c luci-base, luci-mod-network: fix R0KH & R1KH option help text
Fixes: #6571
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-10-20 00:43:02 +02:00
Jo-Philipp Wich
88326b809b luci-mod-network: rework DHCP relay settings
- 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-10-20 00:25:39 +02:00
Paul Dee
598b1eb272 luci-network-interfaces: Add IPv6 lifetime options
Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
2023-09-21 22:21:14 +02:00