I answer to myself, if this can be helpful to someone else in the future:
1. you have to open port 51413 tcp (or the port you specified in transmission preferences)
in ufw firewall and in the router (port forwarding) .. the udp is not needed.
for ufw the code is:
Code:
sudo ufw allow in 51413/tcp
2. I noticed that transmission (and maybe any other torrent client) needs to communicate freely through many out ports, so you have to allow it.
you have to default deny incoming traffic and default allow outgoing traffic
Code:
sudo ufw default deny incoming
sudo ufw deafult allow outgoing
so my lists are:
Personally, I prefer to deny outgoing traffic, so I decided: when I need to use transmission I allow outgoing traffic, and when I finish with it I deny outgoing traffic.
It would be nice to do it automatically:
when you open transmission, this runs a script which allow outgoing traffic; and when you exit transmission, this runs a second script which deny outgoing traffic.
But I don't know how to do it: any suggestion would be appreciated
Bookmarks