Commit graph

102 commits

Author SHA1 Message Date
Ansuel Smith
095309cf02
luci-mod-network: check directly if hostapd supports wps
Wps Push Button feature is now supported directly from ubus instead of using hostapd_cli.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-10-11 01:32:21 +02:00
Florian Eckert
5ca328440b
Merge pull request #3265 from najdanovicivan/patch-2
luci-mod-network: add address parameter in DHCP for dnsmasq
2020-09-14 15:34:37 +02:00
Jo-Philipp Wich
84a0b6845f
Merge pull request #4127 from blocktrron/luci-wep-features
luci-mod-network: query WEP support
2020-06-16 17:01:27 +02:00
William Fleurant
547776327a luci-mod-network: diagnostics.js: pass IP version flag to ping/ping6
Signed-off-by: William Fleurant <meshnet@protonmail.com>
2020-06-12 01:54:33 -04:00
David Bauer
6c56365b82 luci-mod-network: query support for WEP
This commit removes WEP from the list of supported
encryption methods in case hostapd or wpa_supplicant
were compiled without WEP support.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-06-01 10:36:07 +02:00
Jo-Philipp Wich
01d5d5f929 luci-mod-network: allow literal "auto" value for distance
Fixes: #4050
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-05-17 19:36:17 +02:00
Jo-Philipp Wich
8747513951 luci-mod-network: fix reading static route table value
Ref: https://forum.openwrt.org/t/static-route-shows-incorrect-table/63514
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-05-13 17:20:05 +02:00
Jo-Philipp Wich
0306b14d20 luci-mod-network: wireless.js: disable action buttons on insufficient ACLs
Also implement disabled state in custom frequency select widget.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16 15:28:21 +02:00
Jo-Philipp Wich
c63c902163 luci-mod-network: interfaces.js: disable action buttons on insufficient ACLs
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16 15:21:03 +02:00
Jo-Philipp Wich
57f27cf7f8 luci-mod-network: dhcp.js: allow lease hostname to be empty
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-11 18:34:54 +02:00
Jo-Philipp Wich
137db1c4d1 luci-mod-network: dhcp.js: fix validation logic
The `server` option allows plain IPs besides the `/domain/addr` format.

Fixes: #3870
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-11 18:27:36 +02:00
Jo-Philipp Wich
45a30c925b luci-base, luci-mod-network: adjust ZoneSelect / NetworkSelect descriptions
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-07 18:19:19 +02:00
Jo-Philipp Wich
3c4bc228a1 treewide: import utility classes explicitly
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-03 10:00:06 +02:00
Jo-Philipp Wich
eb1422defe luci-mod-network: rework signal badge disabled state
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-02 15:20:58 +02:00
Jo-Philipp Wich
515069f9ec luci-mod-wireless: avoid signal badge wrapping in scan list
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-01 19:15:07 +02:00
Jo-Philipp Wich
cae8045367 luci-mod-network: add WPA3-EAP and mixed WPA2/WPA3-EAP settings
Fixes: #3363
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-26 22:02:42 +01:00
Jo-Philipp Wich
04c73f1613 luci-mod-network, luci-mod-status: allow assoclist wrapping
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit a600ebb5fe14b13cb53669eb73b86f66cc699e94)
2020-03-24 22:14:18 +01:00
Jo-Philipp Wich
98a9d07d89 luci-mod-network: dhcp.js: properly validate hostname values
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-23 22:20:50 +01:00
Jo-Philipp Wich
1b7e923cf6 luci-mod-network: adjust assoclist markup for easier styling
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-23 22:14:02 +01:00
Jo-Philipp Wich
41b2fe9f6b luci-mod-network: diagnostics.css: use .btn CSS class for buttons
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-23 21:48:13 +01:00
Alan Swanson
28ed7245be luci-mod-network: interfaces.js: add global packet steering option
Previously an undocumented "default_ps" option without a corresponding luci
entry. Hotplug script was updated in openwrt master to use "packet_steering"
as the option and now defaults to off.

Ref: https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=d3868f15f876507db54afacdef22a7059011a54e
Signed-off-by: Alan Swanson <reiver@improbability.net>
2020-03-21 16:21:00 +00:00
Helge Mader
c949d116b0 luci-mod-network: extended interfaces.js for check if new interface is createable
Signed-off-by: Helge Mader <ma@dev.tdt.de>
2020-03-03 16:12:10 +01:00
Jo-Philipp Wich
1c547d36b5 luci-mod-network: switch.js: fix internal port ordering
Fixes: #3709
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-02 09:34:30 +01:00
Franco Castillo
a612574e11 luci-mod-network: fix typo
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2020-03-02 08:22:06 +01:00
Jo-Philipp Wich
cf09705ee3 luci-mod-network: properly handle "no signal" and "disabled" in signal badges
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-01 20:58:51 +01:00
Jo-Philipp Wich
48e18fb8ac luci-mod-network: wifi join: allow reclaiming empty wwan networks
Fixes: #3660
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-02-21 22:12:31 +01:00
Jo-Philipp Wich
7ec007f926 luci-mod-network: wifi join: add option to lock bssid
Fixes: #3661
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-02-21 21:30:06 +01:00
Jo-Philipp Wich
a2fe3d9fc4 luci-mod-network: wifi scan: add button to start/stop refreshes
Fixes: #3662
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-02-21 21:09:45 +01:00
Jo-Philipp Wich
9b024767d7 luci-mod-network: explicitely configure "none" encryption in wifi join
Fixes: #3663
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-02-21 20:54:26 +01:00
Jo-Philipp Wich
2cad20e7ea luci-mod-network, luci-mod-status: harmonize wifi signal indicators
Fixes: #3636
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-02-17 09:50:36 +01:00
Jo-Philipp Wich
7bc338c011 luci-mod-network: dhcp.js: adjust resolvfile placeholder to OpenWrt default
Ref: 5d15363408 (commitcomment-37059122)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-31 14:36:44 +01:00
Jo-Philipp Wich
5d15363408 luci-mod-network: dhcp.js: fix resolvefile option depends
Ref: https://forum.openwrt.org/t/resolvfile-option-not-showing/54229
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-31 11:19:09 +01:00
Jo-Philipp Wich
616d44c155 luci-mod-network: handle missing switch port state information
Ref: https://github.com/openwrt/luci/issues/3565
Ref: https://forum.openwrt.org/t/cannot-read-property-link/50766
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-28 18:16:43 +01:00
Najdanovic Ivan
8463929378 luci-mod-network: Add Address parameter in DHCP
Address is very useful in dnsmasq. I don't see a reason why we should not have it in the form

Signed-off-by: Najdanovic Ivan <najdanovicivan@gmail.com>
2020-01-17 01:33:40 +01:00
David Lam
f92e408f69
luci-mod-network: fix missing semicolons
Corrects missing semicolons from the previous commit.

Signed-off-by: David Lam <david@thedavid.net>
2020-01-16 14:51:14 -08:00
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
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