# How to setup Thunderbolt bridge?

**URL:** https://discourse.nixos.org/t/how-to-setup-thunderbolt-bridge/80831
**Category:** Help
**Created:** [October 29, 2026, 1:17am UTC](https://discourse.nixos.org/t/how-to-setup-thunderbolt-bridge/80831 "2026-10-29T01:17:48Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Oneechan69](https://discourse.nixos.org/user_avatar/discourse.nixos.org/oneechan69/32/32401_2.png) [@Oneechan69](https://discourse.nixos.org/u/Oneechan69)
#### Post date: [October 29, 2026, 1:17am UTC](https://discourse.nixos.org/t/how-to-setup-thunderbolt-bridge/80831/1 "2026-10-29T01:17:48Z")

</div>

I’m trying to connect: PC with TB4 \<\> certified TB cable \<\> Mac Mini. I followed instructions on the [wiki page](https://wiki.nixos.org/wiki/Thunderbolt), though the mac doesn’t show up with I do `boltctl list`. Whenever I connect the cable, either it doesn’t work between either device, or it works from linux to mac but not mac to linux when I get the IP addresses shown with `ip -br addr show thunderbolt0`. Every time It’s plugged in, it says its running in macOS settings.

```auto
  networking = {
    networkmanager.enable = true;
    # networkmanager.wifi.backend = "iwd";
    firewall.checkReversePath = false;
    # wireless.iwd = {
    # enable = true;
    # settings.General.EnableNetworkConfiguration = true;
    # };
  };

  networking.firewall.trustedInterfaces = ["thunderbolt0"];

service.hardware.bolt.enable = true;
services.udev.extraRules = ''
      ACTION=="add", SUBSYSTEM=="thunderbolt", ATTR{authorized}=="0", ATTR{authorized}="1"
    '';

```

---

<div class="post-metadata">

### Author: ![tree-sapii](https://discourse.nixos.org/user_avatar/discourse.nixos.org/tree-sapii/32/36774_2.png) [@tree-sapii](https://discourse.nixos.org/u/tree-sapii)
#### Post date: [October 29, 2026, 3:22am UTC](https://discourse.nixos.org/t/how-to-setup-thunderbolt-bridge/80831/2 "2026-10-29T03:22:06Z")

</div>

Are they on diff subnet possibly?

---

<div class="post-metadata">

### Author: ![moonpiedumplings](https://discourse.nixos.org/user_avatar/discourse.nixos.org/moonpiedumplings/32/31459_2.png) [@moonpiedumplings](https://discourse.nixos.org/u/moonpiedumplings)
#### Post date: [October 29, 2026, 4:18am UTC](https://discourse.nixos.org/t/how-to-setup-thunderbolt-bridge/80831/3 "2026-10-29T04:18:09Z")

</div>

> [@Oneechan69](#):
>
> ’m able to connect from the PC to the Mac’s IP address but not the other direction

Firewall?

On the mac run (my preferred way of checking network connectivity) `python -m http.server` (do it in an empty folder or one with data you are okay being public just in case)

Then if you curl that ip address, port 8080, it should show up in the logs.

```auto
[moonpie@nefertem temp]$ python -m http.server
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
127.0.0.1 - - [28/Oct/2026 21:17:19] "GET / HTTP/1.1" 200 -

```

If this works then that confirms that one device can really access another.

---

<div class="post-metadata">

### Author: ![Oneechan69](https://discourse.nixos.org/user_avatar/discourse.nixos.org/oneechan69/32/32401_2.png) [@Oneechan69](https://discourse.nixos.org/u/Oneechan69)
#### Post date: [October 29, 2026, 2:28pm UTC](https://discourse.nixos.org/t/how-to-setup-thunderbolt-bridge/80831/4 "2026-10-29T14:28:38Z")

</div>

I run copyparty on the mac and can access the webui from linux via the thunderbolt bridge IP address.

---

<div class="post-metadata">

### Author: ![moonpiedumplings](https://discourse.nixos.org/user_avatar/discourse.nixos.org/moonpiedumplings/32/31459_2.png) [@moonpiedumplings](https://discourse.nixos.org/u/moonpiedumplings)
#### Post date: [October 29, 2026, 4:35pm UTC](https://discourse.nixos.org/t/how-to-setup-thunderbolt-bridge/80831/5 "2026-10-29T16:35:33Z")

</div>

So it goes only one way?

This seems like a firewall issue if it only goes one way. Try configuring the NixOS firewall: [Firewall - Official NixOS Wiki](https://wiki.nixos.org/wiki/Firewall)

---

<div class="post-metadata">

### Author: ![Oneechan69](https://discourse.nixos.org/user_avatar/discourse.nixos.org/oneechan69/32/32401_2.png) [@Oneechan69](https://discourse.nixos.org/u/Oneechan69)
#### Post date: [October 29, 2026, 4:46pm UTC](https://discourse.nixos.org/t/how-to-setup-thunderbolt-bridge/80831/6 "2026-10-29T16:46:11Z")

</div>

I tried connecting the devices again and now it either doesn’t work or it does work. I’m lost now. Here’s my whole network configuration:

```auto
  networking = {
    networkmanager.enable = true;
    # networkmanager.wifi.backend = "iwd";
    firewall.checkReversePath = false;
    # wireless.iwd = {
    # enable = true;
    # settings.General.EnableNetworkConfiguration = true;
    # };
  };

  networking.firewall.trustedInterfaces = ["thunderbolt0"];

service.hardware.bolt.enable = true;
services.udev.extraRules = ''
      ACTION=="add", SUBSYSTEM=="thunderbolt", ATTR{authorized}=="0", ATTR{authorized}="1"
    '';

```

---

<div class="post-metadata">

### Author: ![Oneechan69](https://discourse.nixos.org/user_avatar/discourse.nixos.org/oneechan69/32/32401_2.png) [@Oneechan69](https://discourse.nixos.org/u/Oneechan69)
#### Post date: [November 9, 2026, 7:00am UTC](https://discourse.nixos.org/t/how-to-setup-thunderbolt-bridge/80831/7 "2026-11-09T07:00:19Z")

</div>

@moonpiedumplings @tree-sapii I’m still struggling with this, its just very unstable for me, it would work in either or both directions briefly, but then stop working later.

---

<div class="post-metadata">

### Author: ![Oneechan69](https://discourse.nixos.org/user_avatar/discourse.nixos.org/oneechan69/32/32401_2.png) [@Oneechan69](https://discourse.nixos.org/u/Oneechan69)
#### Post date: [November 16, 2026, 7:35pm UTC](https://discourse.nixos.org/t/how-to-setup-thunderbolt-bridge/80831/8 "2026-11-16T19:35:17Z")

</div>

_I finally figured everything out_ after a total of over a week of struggling and paranoia about getting Thunderbolt networking to work. It’s been a days but now I’m fairly confident I have it working, all devices can be hot-plugged repeatedly and still work reliably whenever its connected.

I had asked LLMs a bunch of times what to do about the finicky connection, they didn’t give helpful answers but I finally got one when I gave it my whole configuration. It gave me the `systemd.network` options below, I asked again for MTU, the max MTU on mac is 65,518. It’s reliable for me unlike `networking.interfaces.thunderbolt0.ipv4.addresses`.

My setup is: Thinkpad (TB4) \<\> Intel certified TB4 cable \<\> Anker Prime TB5 dock \<\> M4 Mac Mini (TB4) \<\> TB5 cable (came with the dock) \<\> Desktop with Asus ThunderboltEX 4 card.

The ThunderboltEX card had issues with hot-plugging, which went away after installing a card firmware update from [here](https://www.asus.com/us/motherboards-components/motherboards/accessories/thunderboltex-4/helpdesk_bios?model2Name=ThunderboltEX-4). The instructions said to launch an EFI shell with a flash drive containing the files, which didn’t work for me. I got a suggestion [here](https://superuser.com/questions/1941564/asus-b650e-cant-launch-efi-shell-from-usb-drive) to rename and move the .efi file to `\EFI\Boot\bootx64.efi`, and copy `PDFW.bin` and `NVM.bin` into the flash drive’s root directory and the `EFI` and `Boot` folders so the program doesn’t fail to find them. Then instead of launching an EFI shell from the BIOS, I select the flash drive from the boot menu.

For the Mac thunderbolt bridge, I set the ipv4 and ipv6 configuration to “manual” (and left ipv6 blank). I set the IP to `10.0.0.2`, the subnet to `255.255.255.0`, and left router to blank. Under “hardware”, I set MTU to the max 65,518.

Claude suggested `enp0s20f0u?u3*` below to ignore extra unneeded ethernet interfaces that appear after plugging in either device to the Mac.

```auto

  

  
 # Thunderbolt networking
 networking = {
    firewall.trustedInterfaces = ["thunderbolt0"];
    networkmanager.unmanaged = [
      "interface-name:thunderbolt0"
      "interface-name:enp0s20f0u?u3*"
    ];
  };

  systemd.network = {
    enable = true;
    wait-online.enable = false;
    networks."40-thunderbolt" = {
      matchConfig.Name = "thunderbolt*";
      linkConfig.RequiredForOnline = "no";
      linkConfig.MTUBytes = "65518";
    };
  };

 # For my laptop
 systemd.network.networkConfig.Address = 10.0.0.1;
 # For my desktop
 systemd.network.networkConfig.Address = 10.0.0.3;

```
