I'm trying to set up a somewhat weird network configuration, three interfaces on a pi, an adhoc AP, a wireless lan, and a USB modem.

I want clients of the USB device to talk to clients of the AP, I want clients of the AP to talk to other clients and a single host on the wireless network.

Sorta simple right? Just a couple firewall rules? Well NetworkManager is a land of logical defaults that do not like to be adjusted. I had it working where the AP clients could not reach out to the internet, but could reach the USB clients. NetworkManager automagic'd a NFTables ruleset that doesn't appreciate being changed.

Okay so I'll tell NM to not use a firewall backed in the conf, firewall-backend=none, easy.

But once NM is restarted, the networking is behaving like the firewall is still active, despite NFtables and iptables reporting no rulesets, as NM has taken its ball and gone home.

I can't even figure out a baseline of "what the fuck is going on" because the level of opaque NM automagic happening behind the scenes. I just poke at it and hope something happens. Half the NetworkManager behavior is hidden in dev blog posts that you need to sift through, the official documentation just basically gives the bare minimum info for a feature.

  • @drwankingstein@lemmy.dbzer0.com
    hexbear
    10
    15 days ago

    Network Manager has been the absolute bane of my existence, however due to it being the defacto standard for most distros, one pretty much needs to support it. at the very least nmcli is... usable.

    • Shinji_Ikari [he/him]
      hexagon
      hexbear
      4
      14 days ago

      nmcli is quite nice actually. My only real issue with NM is keeping track of what it's doing behind the scenes.

  • lemmyreader@lemmy.ml
    hexbear
    2
    15 days ago

    There used to be wicd as alternative for NM but its development is stalled. There is ConnMan though with apparently GUI and TUI options :

    • https://wiki.archlinux.org/title/ConnMan
    • Shinji_Ikari [he/him]
      hexagon
      hexbear
      2
      15 days ago

      Thanks for the suggestion, but I'm using NM for managing the AP and managed connections, not so much the bare connecting to wifi things.

      The only real alternative to NM in this situation is a handful of delicate config files for iwconfig and dnsmasq.

    • Shinji_Ikari [he/him]
      hexagon
      hexbear
      1
      15 days ago

      So I want and have ip forwarding, and I only want to make a firewall whitelist between two of the interfaces.

      I've uninstalled iptables, nftables isn't running, NM has the firewall backend disabled, and ip forwarding is on.

      This should result in traffic moving between the interfaces, yet traffic is moving between two of the interfaces, and blocked between two of the interfaces. It just doesn't make sense.

      • systemd-catfoodd@lemmy.ml
        hexbear
        1
        edit-2
        15 days ago

        Sorry I only have this generic troubleshooting point to offer, but have you checked to see if NetworkManager might be modifying your IP routing table in unwanted ways during its operation?

        From what you've described I'm under the impression that no Internet traffic needs to run through this system; perhaps NM is adding an unwanted default route?