I’m trying to move over from transmission on my laptop to qbittorrent on my NAS. I have it running rootlessly in a podman container. I wanted the stats to show up on my heimdall webUI so I put both containers into the same network with a Network=heimdallnet line in their quadlets and fired them up again. It worked, except DHTs are dead and the qbittorrent stays firewalled.
After spending too much time on this issue, I asked chatgpt for advice. It suggested I do an iptables rule to allow for nat from the bridge network to the outside world. That did resolve the firewall status but DHTs stayed dead. I gave up and removed the Network=heimdallnet line.
I’m sure this is doable, but I’m not quite smart enough to understand what I did wrong.
When you select the torrent in qBittorrent and click the Trackers tab does DHT display “working” ?
I suspect you had it partially correct with your earlier test. One thing is that DHT works via UDP (from what I understand) while non-DHT torrents can be TCP or UDP. So I sort of suspect that you kind of had it half working with the iptables rule earlier but you only had it working for TCP, hence only TCP torrents get through which means no DHT and uTP torrenting.
So your solution is one/both of
https://ittavern.com/notes/podman-publish-udp-port-to-host/
I2P is a very different configuration, best not to compare that to regular clearnet torrenting. qBittorrent doesn’t suport DHT over I2P so you’ll never see DHT working in that configuration.