Open Enduriel opened 1 year ago
I just set this up two days ago and its been working great, my port shows open. The differences between my compose file and yours are:
Don't think either of those should matter though but maybe give it a shot. Or kind of a long shot add 10.2.0.2 to the bypass list in qbit. I don't think that is going to help tho.
Otherwise it looks right to me.
There are only two places this can go bad really. Either the gluetun container isn't opening the port or qbittorrent isn't actually listening on that port.
Check the iptables config on gluetun: "sudo docker exec -it gluetun /bin/sh" then "iptables -L -v -n", should see something like:
124K 6855K ACCEPT 6 -- tun0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:YOURPORT 372K 42M ACCEPT 17 -- tun0 * 0.0.0.0/0 0.0.0.0/0 udp dpt:YOURPORT
If that looks ok, check qbittorrent for a few things:
There are other things you can try but take a little more know-how:
shut down qbit, find some other container you can run "netcat" or "nc" on using servce:gluetun set netcat to listen on the same port as qbit would be listening on "nc -l 53371" use netcat from another machine to connect to the VPN public addr on that port "nc PUBLICIP 53371" - if it connects, type something in the window, you should see it come over on the listener side. If that works, gluetun/proton are working correctly, the problem is qbit somewhere.
So, what I found on my end was that doing a port test via telnet -4 <public VPN assigned IP address> <port forwarded port>
would return a telnet: Unable to connect to remote host: Connection refused
error.
I was very confused, since my port hadn't changed in a few days and I had been listed as "connected" in the tracker I was using.
It turns out that ProtonVPN had changed the wireguard server I was using from allowing port forwarding to not. I had to change servers.
I regenerated glueTUN with a new wireguard server, and my telnet -4 <public VPN assigned IP address> <port forwarded port>
test connected.
@soxfor maybe a feature request to come out of this would be to actively test if the port is indeed open. (This is a feature I miss from Transmission.)
I currently have the following stack up and running:
Basically, everything seems to be working correctly, and the logs from qbittorrent-natmap suggest everything is going well:
but the port isn't actually connectable when I check it on yougetsignal and my private tracker tests reports that it responds with connection refused. At one point it was reporting the port as open, but even then it completely refused to seed, and the private tracker stated that it was leeching and not seeding. I'm going to be honest I'm pretty new to the homelab thing so this is very much a learning process for me but this solution you set up seems like exactly what I was looking for and I hoped it would work perfectly but I can't seem to get it set up, I'm happy to try and debug this in any way, just let me know what you need. I have also tried the linuxserver qbittorrent with the same result.