It's driving me crazy but I can't figure out how to configure UFW for transmission-daemon.
I have the following rule on UFW
> 51412 ALLOW Anywhere
> 64000:64999/udp ALLOW Anywhere
> 64000:64999/tcp ALLOW Anywhere
I have the following NAT rules on my ISP box. FW of this box can be disable or enable it has no effect. OrangeBox NAT rules
I tried both following conf for Transmission
"peer-port": 64931,
"peer-port-random-high": 64999,
"peer-port-random-low": 64000,
"peer-port-random-on-start": true,
and
"peer-port": 51412,
"peer-port-random-high": 64999,
"peer-port-random-low": 64000,
"peer-port-random-on-start": false,
Results : If UFW is enabled I get "could not connect to tracker" in transmission.log. The torrent doesn't download or upload (I'm downloading kubuntu image for testing purpose).
If UFW is disabled, everything is ok.
I tried also to use UPNP, it works if UFW is disable, it doesn't if UFW is enable.
There is nothing in the log of ufw. I can see some "allow out" from port 51412 to public IP, but there is no answer (nor blocked or allowed). But as soon as I disable UFW, I can see in transmission.log that I'm connected to tracker and I get 50 peers.
So UFW is clearly blocking something but I can't understand what:
- If I don't want to use UPNP, what is wrong with my rules ?
- If I want to use UPNP, what rule is missing ? (allowing port 1900 and 1901 doesn't work)
Thank you for any hints !