Skip to content
Snippets Groups Projects
  1. Jun 19, 2022
  2. Feb 22, 2022
    • Matthias Schiffer's avatar
      treewide: use interface roles as basis for network configuration · c779d123
      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).
      Unverified
      c779d123
    • Matthias Schiffer's avatar
  3. Oct 07, 2021
    • Matthias Schiffer's avatar
      Set PKG_VERSION in gluon.mk · f419db58
      Matthias Schiffer authored
      This removes PKG_VERSION and PKG_RELEASE from most Makefiles, as the
      value was never useful for Gluon packages; instead, PKG_VERSION is set
      to 1 in gluon.mk.
      
      It also removes two other weird definitions:
      
      - gluon-iptables-clamp-mss-to-pmtu replicating the old PKG_VERSION logic
        from gluon-core, but without the fixed PKG_BUILD_DIR to prevent
        unnessary rebuilds
      - gluon-hoodselector set GLUON_VERSION=3
      f419db58
  4. Sep 13, 2021
  5. Jul 13, 2021
  6. Sep 17, 2020
  7. Sep 13, 2020
    • David Bauer's avatar
      treewide: rename local_client zone (#2115) · 5b068d7c
      David Bauer authored
      This renames the local_client zone to loc_client, as local_clint exceeds
      the maximum zone length allowed for firewall3, which is 11 bytes.
      
      This worked previously due to firewall3 using unsafe string operations.
      Now creation of the chain fails (latest OpenWrt master).
      Unverified
      5b068d7c
  8. May 28, 2020
  9. May 24, 2020
  10. Mar 31, 2020
  11. Jun 16, 2019
  12. Dec 07, 2018
  13. Jul 22, 2018
    • Sven Eckelmann's avatar
      gluon-client-bridge: Revert "move IPv4 local subnet route to br-client (#1312)" · 3ef28a46
      Sven Eckelmann authored
      The commit b3762fc6 ("gluon-client-bridge: move IPv4 local subnet route
      to br-client (#1312)") moves the IPv4 prefix from the local-port interface
      to br-client. A client requesting an IPv4 connection to the IPv4 anycast
      address of the node (the device running gluon) will create following
      packets:
      
      1. ARP packet from client to get the MAC of the mac address of the anycast
         IPv4 address
      2. ARP reply from node to client with the anycast MAC address for the IPv4
         anycast address
      3. IPv4 packet from client which requires reply (for example ICMP echo
         request)
      4. ARP request for the client MAC address for its IPv4 address in prefix4
         (done with the mac address of br-client and transmitted over br-client)
      5. IPv4 packet from node (transmitted over br-client with br-client MAC
         address) as reply for the client IPv4 packet (for example ICMP echo
         reply)
      
      The step 4 and 5 are problematic here because packets use the node specific
      MAC addresses from br-client instead of the anycast MAC address. The client
      will receive the ARP packet with the node specific MAC address and change
      their own neighbor IP (translation) table. This will for example break the
      access to the status page to the connected device or the anycast DNS
      forwarder implementation when the client roams to a different node.
      
      This reverts commit b3762fc6 and adds an
      upgrade code to remove local_node_route on on existing installations.
      3ef28a46
  14. Apr 13, 2018
  15. Mar 17, 2018
  16. Mar 08, 2018
  17. Mar 07, 2018
  18. Mar 01, 2018
  19. Feb 15, 2018
  20. Jan 19, 2018
    • Matthias Schiffer's avatar
      treewide: rework check_site_lib.lua · 7ccdacd2
      Matthias Schiffer authored
      In addition to significant internal differences in check_site_lib.lua (in
      particular unifying error handling to a single place for the upcoming
      multi-domain support), this changes the way fields are addressed in site
      check scripts: rather than providing a string like 'next_node.ip6', the
      path is passed as an array {'next_node', 'ip6'}.
      
      Other changes in site check scripts:
      * need_array and need_table now pass the full path to the sub fields to the
      subcheck instead of the key and value
      * Any check referring to a field inside a table implies that all higher
      levels must be tables if they exist: a check for {'next_node', 'ip6'} adds
      an implicit (optional) check for {'next_node'}, which allows to remove many
      explicit checks for such tables
      Unverified
      7ccdacd2
    • lemoer's avatar
      treewide: forbid use of selected site variables in domain specific or site configs · 50812b16
      lemoer authored
      [Matthias schiffer: rebase, add a few more restrictions]
      Unverified
      50812b16
  21. Jan 11, 2018
  22. Dec 27, 2017
  23. Nov 25, 2017
  24. Aug 11, 2017
  25. Aug 08, 2017
  26. Jun 26, 2017
  27. Apr 13, 2017
  28. Apr 10, 2017
  29. Feb 23, 2017
  30. Feb 10, 2017
    • Matthias Schiffer's avatar
      gluon-client-bridge: use a veth pair instead of macvlan to connect local-node to br-client · f238b011
      Matthias Schiffer authored
      macvlan interfaces never directly exchange traffic with the underlying
      interface, but only with other hosts behind the interface. In consequence,
      router advertisements from the uradvd running on br-client could never
      reach local-node, preventing it from getting an IPv6 address without RAs
      from an external radvd. Fix this be replacing the macvlan interface with
      a veth pair (with the peer interface in br-client).
      
      As a side effect, this saves about 5KB of flash, as the veth module is
      simpler than macvlan.
      Unverified
      f238b011
    • Matthias Schiffer's avatar
      Switch back roles of br-client and local-node interfaces · 57f8b9bc
      Matthias Schiffer authored
      When preparing the migration from macvlan to veth for local-node, MAC
      address conflicts occurred as some ports of br-client had the same address
      as local-node. Reverting the roles of both interfaces fixes this.
      
      By default, br-client is left as an interface without addresses and
      firewall rules that drop everything, so the bridge is used to connect its
      ports only. gluon-mesh-batman-adv-core changes this to the usual set
      of addresses and firewall rules.
      Unverified
      57f8b9bc
Loading