Skip to content
Snippets Groups Projects
  1. Jun 18, 2019
  2. Jun 16, 2019
  3. Apr 28, 2019
  4. Jul 22, 2018
    • Sven Eckelmann's avatar
      gluon-mesh-batman-adv: Drop IPv4 anycast related packets from/to bat0 · fc59d520
      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 is extremely problematic here. ARP replies with the anycast IPv4
      address must not be submitted or received via bat0 - expecially not when it
      contains an node specific MAC address as source. When it is still done then
      the wrong MAC address is stored in the batadv DAT cache and ARP packet is
      maybe even forwarded to clients. This latter is especially true for ARP
      requests which are broadcast and will be flooded to the complete mesh.
      
      Clients will see these ARP packets and change their own neighbor IP
      (translation) table. They will then try to submit the packets for IPv4
      anycast addresses to the complete wrong device in the mesh. This will for
      example break the access to the status page to the connected device or the
      anycast DNS forwarder implementation. Especially the latter causes extreme
      latency when clients try to connect to server using a domain name or even
      breaks the connection setup process completely. Both are caused by the
      unanswered DNS requests which at first glance look like packet loss.
      
      An node must therefore take care of:
      
      * not transmitting ARP packets related to the anycast IPv4 address over
        bat0
      * drop ARP packets related to the anycast IPv4 when they are received on
        bat0 from a still broken node
      * don't accept ARP packets related to the anycast IPv4 replies on local
        node when it comes from bat0
      
      Fixes: b3762fc6 ("gluon-client-bridge: move IPv4 local subnet route to br-client (#1312)")
      fc59d520
  5. Oct 03, 2017
  6. Aug 08, 2017
  7. Jul 19, 2017
  8. Jun 26, 2017
  9. Apr 12, 2017
    • Matthias Schiffer's avatar
      gluon-mesh-batman-adv: refactor interface management · e45c3033
      Matthias Schiffer authored
      We now create bat0 and primary0 independently of the lower mesh interfaces,
      making the whole setup a lot more robust. In particular:
      
      - we can't accidentially destroy primary0 because of concurrent setup and
        teardown runs of different interfaces
      - bat0 will always exist, even when no mesh interfaces are up (e.g. no link
        on wired mesh)
      - interfaces going down and up again will never tear down the whole of
        batman-adv
      - we can enable and disable bat0 independently of the lower interface
        states
      e45c3033
    • Matthias Schiffer's avatar
      gluon-mesh-batman-adv-*: unify into a single source package · 4ca67dcc
      Matthias Schiffer authored
      For simplicity, we don't use different MTUs for compat 14 and 15 anymore,
      there's no harm in using 1532 for batman-adv-legacy as well.
      4ca67dcc
  10. Aug 08, 2014
  11. Aug 04, 2014
  12. Jul 28, 2014
  13. Jul 20, 2014
  14. Jul 19, 2014
  15. Jul 16, 2014
  16. Jul 14, 2014
  17. Jul 13, 2014
    • Nils Schneider's avatar
      gluon-mesh-batman-adv: announce MAC of mesh ifaces · ae4c130c
      Nils Schneider authored
      This will make a node announce all MACs of its interfaces participating
      in the batman-adv mesh. This enables other nodes to associate the
      announced object with both the data reported by batadv-vis as well as a
      simple list of neighbours as output by `iw dev $IFACE station dump`.
      ae4c130c
  18. Jul 11, 2014
  19. Jul 10, 2014
  20. Jul 07, 2014
  21. Jun 10, 2014
  22. Jun 09, 2014
  23. Jun 06, 2014
  24. May 14, 2014
  25. Feb 21, 2014
  26. Jan 25, 2014
  27. Jan 22, 2014
  28. Jan 21, 2014
  29. Jan 18, 2014
  30. Jan 16, 2014
  31. Jan 14, 2014
    • Matthias Schiffer's avatar
      Add firewall rules · f99767fb
      Matthias Schiffer authored
      gluon-mesh-batman-adv should not be used without firewall to prevent forwarding
      of packets from the mesh to the wan interface.
      
      For some reason, the firewall package won't work at all without
      kmod-ipt-nathelper.
      f99767fb
  32. Jan 13, 2014
  33. Jan 11, 2014
Loading