David Lam
dbc5778228
luci-mod-network: add system cert bundle validation
...
This commit adds the ability for users to validate against the system's
built-in CA bundle if it is installed. The process is made much easier because
the user does not have to first extract the CA certificate from the EAPOL
handshake and upload it via LuCI uploads. Dependent on commit
openwrt/openwrt#2696 .
Signed-off-by: David Lam <david@thedavid.net>
2020-01-16 01:15:11 -08:00
Florian Eckert
4536a1f1a9
Merge pull request #3444 from swg0101/subjectvalidation
...
luci-mod-network: add certificate subj validation
2020-01-15 11:47:05 +01:00
David Lam
d9e88c2072
luci-mod-network: add certificate subj validation
...
This PR is tied to changes being made via openwrt/openwrt#2654 , and it
allows users to provide certificate constraint(s) when connecting as a
STA to an AP using Enterprise modes. The constraints can either be
provided via the certificate's X509 subject using a substring (e.g.
/CN=wifi.mycompany.com) or subject alternate name values (e.g.
DNS:wifi.mycompany.com), although both can be combined for a stricter
validation criteria. Other options, such as wildcard and exact domain
matches are also available.
Signed-off-by: David Lam <david@thedavid.net>
2020-01-12 00:33:43 -08:00
Florian Eckert
390dc2805a
Merge pull request #3391 from TobleMiner/feature-vlan-description
...
luci-mod-network: Add description field to VLANs (trivial)
2020-01-03 09:55:26 +01:00
Balázs Úr
8b47bb8411
luci-base: fix typos
...
Signed-off-by: Balázs Úr <balazs@urbalazs.hu>
2019-12-20 16:48:51 +01:00
Jo-Philipp Wich
3a657b8ab5
luci-mod-network: replace controller address check action with cgi-io script
...
This change removes the last bit of Lua code from luci-mod-network.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-18 21:33:29 +01:00
Balázs Úr
d0bc86bcc3
luci-base: fix typos
...
Signed-off-by: Balázs Úr <balazs@urbalazs.hu>
2019-12-17 11:41:00 +01:00
Jo-Philipp Wich
ab07b8c4d9
luci-mod-network: reimplement diagnostics page as client side view
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-16 18:07:18 +01:00
Jo-Philipp Wich
5448a10e30
luci-mod-network: convert menu nodes to JSON
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-16 18:07:18 +01:00
Jo-Philipp Wich
ffe81aead3
luci-mod-network: dhcp.js: fix default state of nonwildcard
...
Fixes : #3415
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-16 18:05:49 +01:00
Jo-Philipp Wich
3cdd496946
luci-mod-network: fix rebind list validation
...
Fixes: 62e28f4b0
("luci-mod-network: dhcp.js: fix address and rebind list validation")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-16 18:01:50 +01:00
Jo-Philipp Wich
62e28f4b0a
luci-mod-network: dhcp.js: fix address and rebind list validation
...
Fixes : #3130
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-16 17:51:45 +01:00
Jo-Philipp Wich
f6410361c8
luci-mod-network: re-add DHCPv6 lease status to dnsmasq page
...
Ref: https://bugs.openwrt.org/index.php?do=details&task_id=2674
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-16 17:40:04 +01:00
Tobias Schramm
2ab71420c3
luci-mod-network: Add description field to VLANs
...
Having a description attached to a VLAN makes identification a lot easier when
dealing with many VLANs
Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
2019-12-04 13:48:37 +01:00
Kevin Darbyshire-Bryant
c58ae7d3f4
luci-mod-network: dnsmasq: correct sense & usage of dnsseccheckunsigned
...
dnsmasq v2.80 made 'dnssec-check-unsigned' the default, reflect this in
the gui.
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2019-11-22 15:25:59 +00:00
Jo-Philipp Wich
0513edade8
luci-mod-network: dhcp.js: fix DNSSEC feature probing
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-08 10:33:44 +01:00
Jo-Philipp Wich
392ba53eff
luci-base, luci-mod-network: migrate getDUIDHints method to C plugin
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-08 10:25:30 +01:00
Jo-Philipp Wich
c00d860981
luci-mod-network: wireless.js: restore client disconnect functionality
...
Ref: https://forum.openwrt.org/t/19-07-luci-disconnect-missing/47897
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-07 12:18:35 +01:00
Jo-Philipp Wich
86f492173d
treewide: require ui.js explicitly
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03 21:55:50 +01:00
Jo-Philipp Wich
7a2fefc671
luci-mod-network: remove unused iface_down
endpoint
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03 17:56:58 +01:00
Jo-Philipp Wich
f16a47042c
luci-base, luci-mod-network: invoke ifdown directly in interface overview
...
Replace the `iface_down` endpoint with a direct invocation of `/sbin/ifdown`
and replace the interface connectivity check with a call to the new
`remote_addr` endpoint.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03 17:56:58 +01:00
Jo-Philipp Wich
9cb4aa1306
luci-mod-network: add admin/network/remote_addr endpoint
...
The remote_addr endpoint allows clients to query their external IP address
as seen by the device as well as the inbound network devices and logical
interfaces on the router.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03 17:56:58 +01:00
Jo-Philipp Wich
b4861da886
luci-mod-network: fix disabled state in wifi settings modal
...
Also auto-enable the radio upon network join.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01 12:32:17 +01:00
Jo-Philipp Wich
1ca168c2e9
luci-mod-network: use declarative dependencies in controller
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01 12:03:33 +01:00
Jo-Philipp Wich
c72c78bed9
luci-mod-network: interfaces.js: issue iface restart via file/exec rpc call
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01 12:03:33 +01:00
Jo-Philipp Wich
6aa4b83f24
luci-mod-network: wireless.js: issue wifi restart via file/exec rpc call
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01 12:03:33 +01:00
Jo-Philipp Wich
650d7f64d5
luci-base: remove unused Lua code
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01 12:03:33 +01:00
Jo-Philipp Wich
37b6092aef
luci-base, luci-mod-network, luci-app-firewall: migrate luci/getHostHints
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01 12:03:33 +01:00
Jo-Philipp Wich
5ff35d8be4
luci-base, luci-mod-network: migrate luci/getDHCPLeases to C plugin
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-01 12:03:33 +01:00
Jo-Philipp Wich
9d80dbe635
luci-mod-network: wireless.js: fix null access on failing iwinfo calls
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-15 18:42:04 +02:00
Jo-Philipp Wich
f61d6ee148
luci-mod-network: wireless.js: fix null access on unavailable country list
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-15 10:03:48 +02:00
Jo-Philipp Wich
17800040f2
luci-mod-network: display the mesh ID in wireless overview if applicable
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-30 12:40:12 +02:00
Jo-Philipp Wich
66749b4fe3
Merge pull request #2756 from Ansuel/wps
...
luci-mod-network: permit WPS push-button on WPA3
2019-09-24 19:56:44 +02:00
Ansuel Smith
3571af9488
luci-mod-network: permit WPS push-button on WPA3
...
Currently WPS push-button is dropped when SAE or SAE-Mixed is selected. WPS is still supported in WPA3.
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2019-09-24 19:39:12 +02:00
Ansuel Smith
d3541e9269
luci-mod-network: add master option
...
Adds option to set interface as master in dhcpv6 relay mode.
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2019-09-24 19:10:11 +02:00
Jo-Philipp Wich
4a564736ea
luci-mod-network: wireless.js: properly handle SAE in join confirmation
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-24 08:09:02 +02:00
Jo-Philipp Wich
e630b32498
luci-mod-network: interfaces.js: map remove action to network.deleteNetwork()
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-24 08:07:50 +02:00
Jo-Philipp Wich
4d3d23b5e9
luci-mod-network: wireless.js: prompt for passphrase when joining SAE net
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-24 07:24:11 +02:00
Chen Minqiang
2f92a29628
luci-mod-network: resort zonePromise order
...
This fix #3103
Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2019-09-24 07:08:49 +02:00
Jo-Philipp Wich
720df98642
luci-mod-network: sort wifi encryption by strength and popularity
...
Fixes : #3082
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-20 17:11:38 +02:00
Jo-Philipp Wich
f3a94051ec
luci-mod-network: fix key option quirk when switching wep and wpa modes
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-20 13:39:22 +02:00
Jo-Philipp Wich
ccd1523610
luci-mod-network: default to ieee80211w=2 for OWE
...
Ref: https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=package/network/services/hostapd/files/hostapd.sh;h=46acbefeeeb771de879dd9926ad170042dff2473;hb=HEAD#l327
Fixes: 63f28fd06
luci-mod-network: default to ieee80211w=1 for OWE
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-20 11:30:09 +02:00
Jo-Philipp Wich
63f28fd065
luci-mod-network: default to ieee80211w=1 for OWE
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-20 09:55:51 +02:00
Jo-Philipp Wich
5986124c13
luci-mod-network: wireless.js: fix parsing of wep key slot cfgvalue
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-20 09:36:23 +02:00
Jo-Philipp Wich
0113171c64
luci-mod-network: wireless.js: fix disabled state on disabled radio
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-19 15:48:27 +02:00
Jo-Philipp Wich
0d9a77d806
luci-mod-network: wireless.js: select proper 11w default for WPA3 modes
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-19 15:47:55 +02:00
Jo-Philipp Wich
15cc74c6b4
luci-mod-network: interfaces.js: derive status from layer 3 device
...
Align the status column device selection logic with the approach used for
rendering the interface status boxes; first try to obtain the active
layer3 device as reported by ubus, only then fall back to the protocol
specific device hint which might or might not point to an existing device.
Fixes : #3076
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-18 07:33:25 +02:00
Jo-Philipp Wich
88c16e17d9
luci-mod-network: wireless.js: restore mac hints in mac list widget
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-13 14:19:33 +02:00
Jo-Philipp Wich
82743b3bd4
luci-mod-network: reimplement switch configuration as client side view
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-12 11:09:57 +02:00
Jo-Philipp Wich
5e7e9b58cf
luci-base: restore some lost translations and update german
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-11 14:03:11 +02:00