!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

912 Members
Declaratively manage your switching, routing, wireless, tunneling and more.263 Servers

Load older messages


SenderMessageTime
25 Jun 2025
@tom:dragar.deTomAt least on Apples Mobile Systems (iOS/iPadOS) they aren't doing proper source address selection for the CLAT. They'll happily use a seemingly random one of the configured ones. Even deprecated or ULA doesn't seem to bother them. :/15:13:12
@emilazy:matrix.orgemilyfun15:14:30
@freexploit:trafkin.com@freexploit:trafkin.com joined the room.16:28:16
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)In what way is a bridge different from a macvtap?16:44:43
@adam:robins.wtfadamcstephensa macvtap is for creating a new interface attached to another individual interface. A bridge can link, or "bridge", multiple interfaces together16:46:02
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)I'm trying to make a nixos module for this https://github.com/lampmerchant/tashrouter?tab=readme-ov-file#creating-a-macvtap-device16:48:24
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)They recommend something like this:16:48:32
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) *

They recommend something like this:

# ip link add link eth0 name macvtap0 type macvtap
# ip link set dev macvtap0 promisc on
# ip link set dev macvtap0 up
16:48:35
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)

But then in https://68kmla.org/bb/index.php?threads/tashrouter-an-appletalk-router.46047/page-5#post-518796

Someone says:

I experimented with the recommended macvtap interface but found it to be somewhat poorly documented.
In theory it's supposed to function like a bridge+tap, but I could not get that to work properly.

16:48:54
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)

For whatever reason his code only supports running on a tap/macvtap

router = Router('router', ports=(
  LtoudpPort(seed_network=1, seed_zone_name=b'LToUDP Network'),
  TashTalkPort(serial_port='/dev/ttyAMA0', seed_network=2, seed_zone_name=b'TashTalk Network'),
  MacvtapPort(macvtap_name='macvtap0', seed_network_min=3, seed_network_max=5, seed_zone_names=[b'EtherTalk Network']),
))
16:49:54
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)Wondering why that could be..16:50:04
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)When you make a macvtap, is it not bridged to the interface it's part of automatically?16:52:47
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)Does macvtap work on wifi?17:09:58
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)maybe that is my issue17:10:19
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) Like I did sudo ip link add link wlan0 name macvtap0 type macvtap mode bridge and I didn't get any errors, but I'm also not having any success with the thing I expect to be working 17:10:42
@hexa:lossy.networkhexaandroid on my ipv6-only wlan has been stable since I enabled multicast-to-unicast translation23:15:14
26 Jun 2025
@magic_rb:matrix.redalder.orgmagic_rb Normally to be able to bridge wifi you need it in 4addr mode, check with iw 06:02:40
@blaxxmith:matrix.orgblaxxmith joined the room.09:10:40
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)Even with 4addr mode, you still can't bridge10:35:34
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)only if you're running as an AP does this work, not a client10:36:20
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)Hmm, I'm creating a bridge in systemd networkd, and it won't become UP13:18:48
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)
  systemd.network = {
    networks = {
      "10-eth-priority" = {
        matchConfig.Name = "enp196s0";
        DHCP = "yes";
        dhcpV4Config.RouteMetric = 1023;
        dhcpV6Config.RouteMetric = 1023;
      };
      "30-enp196s0" = {
        matchConfig.Name ="enp196s0";
        linkConfig = {
          Unmanaged = "yes";
        };
        linkConfig.RequiredForOnline = "enslaved";
        networkConfig = {
          Bridge = "br0";
        };
      };
      "40-tap0" = {
        matchConfig.Name ="tap0";
        bridgeConfig = {   };
        linkConfig.RequiredForOnline = "enslaved";
        networkConfig = {
          Bridge = "br0";
        };
      };
      "40-br0" = {
        matchConfig.Name = "br0";
        bridgeConfig = {};
        linkConfig = {
          RequiredForOnline = "carrier";
        };
      };
    };
    netdevs = {
      "20-tap0" = {
       enable = true;
        netdevConfig = {
          Kind = "tap";
          Name = "tap0";
        };
      };
      "20-br0" = {
        enable = true;
        netdevConfig = {
          Kind = "bridge";
          Name = "br0";
        };
      };
    };
  };

13:19:05
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) *
  systemd.network = {
    networks = {
      "10-eth-priority" = {
        matchConfig.Name = "enp196s0";
        DHCP = "yes";
        dhcpV4Config.RouteMetric = 1023;
        dhcpV6Config.RouteMetric = 1023;
      };
      "30-enp196s0" = {
        matchConfig.Name ="enp196s0";
        linkConfig = {
          Unmanaged = "yes";
        };
        linkConfig.RequiredForOnline = "enslaved";
        networkConfig = {
          Bridge = "br0";
        };
      };
      "40-tap0" = {
        matchConfig.Name ="tap0";
        bridgeConfig = {   };
        linkConfig.RequiredForOnline = "enslaved";
        networkConfig = {
          Bridge = "br0";
        };
      };
      "40-br0" = {
        matchConfig.Name = "br0";
        bridgeConfig = {};
        linkConfig = {
          RequiredForOnline = "carrier";
        };
      };
    };
    netdevs = {
      "20-tap0" = {
       enable = true;
        netdevConfig = {
          Kind = "tap";
          Name = "tap0";
        };
      };
      "20-br0" = {
        enable = true;
        netdevConfig = {
          Kind = "bridge";
          Name = "br0";
        };
      };
    };
  };
13:19:06
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)
❯ networkctl 
IDX LINK       TYPE     OPERATIONAL SETUP      
  1 lo         loopback carrier     unmanaged
  2 enp196s0   ether    routable    configured 
  4 wlan0      wlan     routable    configuring
  6 tailscale0 none     routable    unmanaged
  7 tap0       ether    no-carrier  configured 
  8 br0        bridge   no-carrier  configuring
13:19:19
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)
7: tap0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master br0 state DOWN group default qlen 1000
    link/ether 66:f4:2d:a9:1b:fb brd ff:ff:ff:ff:ff:ff
8: br0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 16:3d:f3:58:00:14 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::143d:f3ff:fe58:14/64 scope link proto kernel_ll 
       valid_lft forever preferred_lft forever
13:19:30
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)
2: enp196s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 06:e0:4c:68:00:9b brd ff:ff:ff:ff:ff:ff
    altname enx06e04c68009b
    inet 192.168.5.156/24 metric 1023 brd 192.168.5.255 scope global dynamic enp196s0
       valid_lft 86262sec preferred_lft 86262sec

13:19:44
@adam:robins.wtfadamcstephens br0: <NO-CARRIER,BROADCAST,MULTICAST,UP> says up to me 13:20:44
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) Why does it say state DOWN 13:21:49
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)image.png
Download image.png
13:21:59
@adam:robins.wtfadamcstephens what does bridge link show? 13:26:13

Show newer messages


Back to Room ListRoom Version: 6