- Apr 30, 2022
-
-
David Bauer authored
-
- Apr 17, 2022
-
-
Igor Scheller authored
-
Igor Scheller authored
-
Matthias Schiffer authored
Instead of using roles.wan directly as the default for roles.single, create a copy of the table, so subsequent modifications of roles.single don't affect roles.wan as well. Fixes migration of Mesh-on-WAN status when no default for "single" interfaces is set in site.conf.
-
- Apr 16, 2022
-
-
Matthias Schiffer authored
The function failed when an interface has no roles assigned, breaking several upgrade scripts. Closes #2471
-
- Apr 12, 2022
-
-
Matthias Schiffer authored
Make the code match the docs and check_site.lua by actually looking up the "default_roles" field, not "roles".
-
- Apr 11, 2022
-
-
Igor Scheller authored
-
- Apr 07, 2022
-
-
J. Burfeind authored
Gone due to commit 45c84a11 ("ar71xx: drop target")
-
- Apr 06, 2022
-
-
Maciej Krüger authored
-
Maciej Krüger authored
Script to enable setup mode and reboot Fixes #2412
-
- Apr 03, 2022
-
-
Igor Scheller authored
-
- Apr 02, 2022
-
-
J. Burfeind authored
Gone due to commit 45c84a11 ("ar71xx: drop target")
-
- Mar 26, 2022
-
-
J. Burfeind authored
Ubiquiti UniFi AP PRO Gone due to commit 45c84a11 ("ar71xx: drop target")
-
J. Burfeind authored
Gone due to commit 45c84a11 ("ar71xx: drop target")
-
- Mar 25, 2022
-
-
J. Burfeind authored
Gone due to commit 45c84a11 ("ar71xx: drop target")
-
J. Burfeind authored
Gone due to commit 45c84a11 ("ar71xx: drop target")
-
- Mar 24, 2022
-
-
J. Burfeind authored
Gone due to commit 45c84a11 ("ar71xx: drop target")
-
Matthias Schiffer authored
luasrcdiet will not print the name of its input file when an error occurs. To facilitate debugging, echo the name before calling it, so it is visible with V=s or BUILD_LOG=1.
-
- Feb 23, 2022
-
-
Matthias Schiffer authored
With Babel, wired meshing cannot run on the same logical interface as non-mesh traffic, so using VXLAN is mandatory.
-
- Feb 22, 2022
-
-
Matthias Schiffer authored
A section can be marked as preseved by setting the gluon_preserve option to 1. In addition the following conditions must hold: - The preserved section must not already exist after OpenWrt's and Gluons setup scripts run. Modifying existing sections is currently unsupported. - Preserved sections must be named, so it can be detected whether a section conflicts with a preexisting one.
-
Matthias Schiffer authored
-
Matthias Schiffer authored
Allow interface names to change on updates to handle hwconfig -> DSA and similar migrations. On devices with only a single interface, a sysconfig single_ifname is created instead of wan_ifname or lan_ifname to allow separate configuration in site.conf.
-
Matthias Schiffer authored
With the new role-based interface configuration, it would be better to rename the wan/wan6 interfaces to uplink/uplink6, but that would cause unnecessary churn for the firewall configuration, so it is left for a later update. As all interfaces with the 'uplink' role are in the br-wan bridge, it is not possible to assign these to the 'mesh' role independently - instead, br-wan is added as a mesh interface as soon as a single interface has both the 'uplink' and 'mesh' roles. The UCI section for this configuration is now called 'mesh_uplink' instead of 'mesh_wan'. For all interfaces that have the 'mesh', but not the 'uplink' role a second configuration 'mesh_other' is created. If there is more than one such interface, all these interfaces are bridged as well (creating a bridge 'br-mesh_other'). This replaces the 'mesh_lan' section with its optional 'br-mesh_lan' bridge, but can also include interfaces that were not considered "LAN" when interfaces roles are modified (via site.conf or manually).
-
Matthias Schiffer authored
The new configuration generates sections iface_single/lan/wan in /etc/config/gluon. These sections usually refer to a sysconfig-controlled interface list, but adding custom sections with verbatim interfaces names is also possible. Each interface section contains a list of roles. The supported roles are 'client', 'uplink' and 'mesh'. Multiple roles can be configured on the same interface (for example the old 'mesh_on_wan' setting would become 'uplink'+'mesh'). 'client' is subsumed by any other role configured on the same interface ('client'+'mesh' is equivalent to 'mesh'). This property is important, as it allows the Wired Mesh settings in gluon-web-network to simply add and remove the mesh role without having to care what other roles are set - so in the default setup, this would switch between 'client' and 'client'+'mesh' for the LAN interface. By default, the WAN interface has role 'uplink' and the LAN interface 'client'; if only a single interface exists, the roles from the WAN interface are used by default. The default for each of the three interfaces (WAN/LAN/single) can be changed separated in site.conf, superseding the old mesh_on_wan, mesh_on_lan and single_as_lan settings.
-
Matthias Schiffer authored
Do not write files when the content is unchanged. Avoids a few unnecessary filesystem writes when resetting ifname sysconfigs on each upgrade.
-
Matthias Schiffer authored
-
Matthias Schiffer authored
The stdout output of gluon-web scripts is directly sent to uhttpd, becoming a part of the HTML output or even replacing HTTP status or headers. The output of gluon-reconfigure is not supposed to end up there. While we're at it, also add an exec to avoid an unnecessary shell process.
-
Igor Scheller authored
-
- Feb 20, 2022
-
-
Igor Scheller authored
-
Igor Scheller authored
-
- Feb 13, 2022
-
-
Matthias Schiffer authored
The OpenLayers JS/CSS download URL is dead. Update it to make the map work again: - Update from OpenLayers 5.2.0 to 5.3.0 - Switch from the obsolete rawgit.com URL to jsdelivr.net (rawgit.com was only redirecting to jsdelivr.net for the last few years anyways) - Set a fixed commit in the URL, so the URL doesn't become outdated again
-
- Feb 08, 2022
-
-
Matthias Schiffer authored
-
Matthias Schiffer authored
THe "null" and "null@l2tp" methods are considered equivalent and always added and removed together when the method list is "configurable". "null@l2tp" is added before "null", so it is preferred when the peer supports both.
-
Matthias Schiffer authored
This also drops the GMAC-based methods from gluon-mesh-vpn-fastd's check_site.lua, as they are not supported anymore.
-
- Feb 01, 2022
-
-
Matthias Schiffer authored
As gluon-web uses standard multipart/form-data requests, browsers don't enforce any cross-origin restrictions. To prevent malicious injection of POST requests into the config mode, match the Origin header against the Host header of the request.
-
Matthias Schiffer authored
Actually raise an error and turn it into an HTTP 400 return code when something goes wrong, rather than ignoring the error. We also improve the conditions under which errors are thrown before pump() is called: We don't need to check for the multipart/form-data content-type twice, and a POST without this content-type is now always an error.
-
Matthias Schiffer authored
Having a trailing newline is nice when viewing the returned data in a terminal.
-
Matthias Schiffer authored
This was a remnant of LuCI that was never used in gluon-web.
-
- Jan 28, 2022
-
-
Matthias Schiffer authored
Swap the interfaces so than the PoE input port LAN0 is used for WAN and config mode, and LAN1 becomes LAN. To this end, the code previously used for ar71xx and removed in commit 9fdc57c1 ("treewide: drop ar71xx platform specific code") is reintroduced. Fixes #2384
-
- Jan 23, 2022
-
-
Matthias Schiffer authored
-