Transmission Command-Line Interface

Open iptables firewall for input on 51413/tcp and 51413/udp:

1
2
3
iptables -A INPUT -p tcp --dport 51413 -j ACCEPT
iptables -A INPUT -p udp --dport 51413 -j ACCEPT
dpkg-reconfigure iptables-persistent

Install the Transmission command-line interface and the Transmission systemd daemon:

1
2
apt update && apt upgrade
apt install transmission-cli transmission-daemon

Stop the Transmission daemon prior to changing the Transmission settings:

1
systemctl stop transmission-daemon

Edit the Transmission daemon settings file:

1
vi /etc/transmission-daemon/settings.json

Allow the transmission-remote command to be issued from localhost only:

1
2
"rpc-authentication-required": false,
"rpc-bind-address": "127.0.0.1",

Limit the upload speed and the download speed to 1,000 kBytes per second in each case:

1
2
3
4
"speed-limit-down": 1000,
"speed-limit-down-enabled": true,
"speed-limit-up": 1000,
"speed-limit-up-enabled": true,

Save the settings file, then restart the Transmission daemon with the new settings:

1
systemctl start transmission-daemon

Check that the transmission-remote command now works by using it with the -l for “list” option:

1
transmission-remote -l

When you start torrenting, your downloads will appear in the /var/lib/transmission-daemon/downloads directory.