summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network
AgeCommit message (Collapse)Author
2020-11-01luci-mod-network: require ssid when join hidden wifiAnsuel Smith
WiFi join won't work if is tried to connect to a Hidden Wifi without specifying the WiFi SSID. Fixes: #2085 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-11-01luci-mod-network: fix SAE/WPA check on network joinJo-Philipp Wich
The method array may be null in case of an open network, also not all occurrences of `is_sae` and `is_psk` were properly checked. Resolve the issue by moving the length check to the variable initialization. Fixes: ba98a2fd0 ("luci-mod-network: fix logic bug in parse enc for network join") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-11-01Merge pull request #4561 from Ansuel/fix-enc-apJo-Philipp Wich
Fix one display bug for ap join and #4524
2020-11-01luci-mod-network: fix logic bug in parse enc for network joinAnsuel Smith
In handleJoinConfirm while is_wep is a boolean, is_psk and is_sae are an array. In the following if check, all 3 are used as boolean but Js treat empty array as positive values and this cause the ui to wrongly set the encryption to sae. fix this by checking if the array actually contains data. Fixes: #4524 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-11-01luci-mod-network: use createHanleFn for handleJoin functionAnsuel Smith
handleJoin can be slow to parse all the data and show the new modal, this can result in the disappear of the scan modal and the showing of the wifi config page while the data are generating. This is wrong since a user can think that he did something wrong. Fix this by using the createHandleFn and by removing the scan pool function instead of calling ScanAbort function that with the other thing wrongly removes the Scan modal. (the modal is replaced with the add one when all the data are ready) Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-10-30Merge pull request #4508 from Ansuel/wpscontrolJo-Philipp Wich
luci-mod-status: add WPS control for wifi info
2020-10-11luci-mod-network: check directly if hostapd supports wpsAnsuel Smith
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-08luci-mod-network: handle multiple mac for static leaseAnsuel Smith
The mac section for the static lease doesn't correctly handle when multiple mac are set for a rule. Fixes: #4291 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-09-14Merge pull request #3265 from najdanovicivan/patch-2Florian Eckert
luci-mod-network: add address parameter in DHCP for dnsmasq
2020-06-16Merge pull request #4127 from blocktrron/luci-wep-featuresJo-Philipp Wich
luci-mod-network: query WEP support
2020-06-12luci-mod-network: diagnostics.js: pass IP version flag to ping/ping6William Fleurant
Signed-off-by: William Fleurant <meshnet@protonmail.com>
2020-06-01luci-mod-network: query support for WEPDavid Bauer
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-05-17luci-mod-network: allow literal "auto" value for distanceJo-Philipp Wich
Fixes: #4050 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-05-13luci-mod-network: fix reading static route table valueJo-Philipp Wich
Ref: https://forum.openwrt.org/t/static-route-shows-incorrect-table/63514 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-17treewide: add ACL annotations to menu entriesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-mod-network: wireless.js: disable action buttons on insufficient ACLsJo-Philipp Wich
Also implement disabled state in custom frequency select widget. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-16luci-mod-network: interfaces.js: disable action buttons on insufficient ACLsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-11luci-mod-network: dhcp.js: allow lease hostname to be emptyJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-11luci-mod-network: dhcp.js: fix validation logicJo-Philipp Wich
The `server` option allows plain IPs besides the `/domain/addr` format. Fixes: #3870 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-09treewide: reorganize base ACLsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-07luci-base, luci-mod-network: adjust ZoneSelect / NetworkSelect descriptionsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-03treewide: import utility classes explicitlyJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-02luci-mod-network: rework signal badge disabled stateJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-01luci-mod-wireless: avoid signal badge wrapping in scan listJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-26luci-mod-network: add WPA3-EAP and mixed WPA2/WPA3-EAP settingsJo-Philipp Wich
Fixes: #3363 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-24luci-mod-network, luci-mod-status: allow assoclist wrappingJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit a600ebb5fe14b13cb53669eb73b86f66cc699e94)
2020-03-23luci-mod-network: dhcp.js: properly validate hostname valuesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-23luci-mod-network: adjust assoclist markup for easier stylingJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-23luci-mod-network: diagnostics.css: use .btn CSS class for buttonsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-21luci-mod-network: interfaces.js: add global packet steering optionAlan Swanson
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-03luci-mod-network: extended interfaces.js for check if new interface is ↵Helge Mader
createable Signed-off-by: Helge Mader <ma@dev.tdt.de>
2020-03-02luci-mod-network: switch.js: fix internal port orderingJo-Philipp Wich
Fixes: #3709 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-02luci-mod-network: fix typoFranco Castillo
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
2020-03-01luci-mod-network: properly handle "no signal" and "disabled" in signal badgesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-02-21luci-mod-network: wifi join: allow reclaiming empty wwan networksJo-Philipp Wich
Fixes: #3660 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-02-21luci-mod-network: wifi join: add option to lock bssidJo-Philipp Wich
Fixes: #3661 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-02-21luci-mod-network: wifi scan: add button to start/stop refreshesJo-Philipp Wich
Fixes: #3662 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-02-21luci-mod-network: explicitely configure "none" encryption in wifi joinJo-Philipp Wich
Fixes: #3663 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-02-17luci-mod-network, luci-mod-status: harmonize wifi signal indicatorsJo-Philipp Wich
Fixes: #3636 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-31luci-mod-network: dhcp.js: adjust resolvfile placeholder to OpenWrt defaultJo-Philipp Wich
Ref: https://github.com/openwrt/luci/commit/5d15363408d263fccae90b3b7ab0ebac6329eebb#commitcomment-37059122 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-31luci-mod-network: dhcp.js: fix resolvefile option dependsJo-Philipp Wich
Ref: https://forum.openwrt.org/t/resolvfile-option-not-showing/54229 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-28luci-mod-network: handle missing switch port state informationJo-Philipp Wich
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-17luci-mod-network: Add Address parameter in DHCPNajdanovic Ivan
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-16luci-mod-network: fix missing semicolonsDavid Lam
Corrects missing semicolons from the previous commit. Signed-off-by: David Lam <david@thedavid.net>
2020-01-16luci-mod-network: add system cert bundle validationDavid Lam
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-15Merge pull request #3444 from swg0101/subjectvalidationFlorian Eckert
luci-mod-network: add certificate subj validation
2020-01-12luci-mod-network: add certificate subj validationDavid Lam
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-03Merge pull request #3391 from TobleMiner/feature-vlan-descriptionFlorian Eckert
luci-mod-network: Add description field to VLANs (trivial)
2019-12-20luci-base: fix typosBalázs Úr
Signed-off-by: Balázs Úr <balazs@urbalazs.hu>
2019-12-18luci-mod-network: replace controller address check action with cgi-io scriptJo-Philipp Wich
This change removes the last bit of Lua code from luci-mod-network. Signed-off-by: Jo-Philipp Wich <jo@mein.io>