Transmission on GigaNAS – Best configuration

You could download the Transmission application from Embedded System website

If you got the following error connecting to the website:

403: Forbidden
Unauthorized IP Address.
Either disable the IP address whitelist or add your address to it.
If you’re editing settings.json, see the ‘rpc-whitelist’ and ‘rpc-whitelist-enabled’ entries.
If you’re still using ACLs, use a whitelist instead. See the transmission-daemon manpage for details.

You need to edit the configuration file.

There are 2 files that you could change.
The first one is the conf file which is located in “/usr/local/transmission/etc” folder

GigaNAS> cd /usr/local/transmission/etc

GigaNAS> ll
-rw-r–r–    1 root     root          323 Jun 19  2009 conf
drwxr-xr-x    6 root     root         4096 Feb  2 23:43 ..
drwxr-xr-x    2 root     root         4096 Feb  2 23:43 .

GigaNAS> cat conf
TRANSMISSION_WEB_DIR=”/usr/local/transmission/web/”
TRANSMISSION_CONFIGS=”/public/.transmission”
TRANSMISSION_DOWNDIR=”/public/Downloads”
TRANSMISSION_ALLOWED=”192.168.*.*,127.0.0.*”
TRANSMISSION_DOWN_SPEED=”100″
TRANSMISSION_UP_SPEED=”50″
TRANSMISSION_MAX_PEERS=”120″
TRANSMISSION_MAX_TORRENT=”60″
TRANSMISSION_PORT=”5000″

This file contains default path and settings loaded automatically at every reboot.

During the installation of the package, another configuration file settings.json should be created in “/mnt/md1/public/.transmission” (replace “md1” if you aren’t using RAID).
If the configuration file is not there, create a new Text file from Notepad and add the content manually as reported below, then restart the NAS.

GigaNAS> cd /mnt/md1/public/.transmission

GigaNAS> ll
-rwxrw-r–    1 admin    users        1566 Feb  5 01:56 settings.json
-rw-r–r–    1 admin    users         133 Feb  5 01:51 stats.json
drwxr-xr-x    2 admin    users        4096 Feb  2 23:50 blocklists
drwxr-xr-x    2 admin    users        4096 Feb  7 09:12 torrents
drwxr-xr-x    2 admin    users        4096 Feb  7 09:12 resume
-rw-r–r–    1 admin    users           5 Feb  5 01:52 transmission.pid

GigaNAS> cat settings.json
{
    “alt-speed-down”: 50,
    “alt-speed-enabled”: false,
    “alt-speed-time-begin”: 540,
    “alt-speed-time-day”: 127,
    “alt-speed-time-enabled”: false,
    “alt-speed-time-end”: 1020,
    “alt-speed-up”: 50,
    “bind-address-ipv4”: “0.0.0.0”,
    “bind-address-ipv6”: “::”,
    “blocklist-enabled”: false,
    “dht-enabled”: true,
    “download-dir”: “\/mnt\/md1\/public\/Downloads”,  <<<=== Change according to download folder
    “encryption”: 0,
    “lazy-bitfield-enabled”: true,
    “message-level”: 2,
    “open-file-limit”: 32,
    “peer-limit-global”: 240,
    “peer-limit-per-torrent”: 60,
    “peer-port”: 11282,  <<<=== Change to avoid default port
    “peer-port-random-high”: 65535,
    “peer-port-random-low”: 49152,
    “peer-port-random-on-start”: false,
    “peer-socket-tos”: 0,
    “pex-enabled”: true,
    “port-forwarding-enabled”: true,
    “preallocation”: 2,
    “proxy”: “”,
    “proxy-auth-enabled”: false,
    “proxy-auth-password”: “”,
    “proxy-auth-username”: “”,
    “proxy-enabled”: false,
    “proxy-port”: 80,
    “proxy-type”: 0,
    “ratio-limit”: 0,
    “ratio-limit-enabled”: false,
    “rpc-authentication-required”: true,  <<<=== Enable username / password access in the webpage
    “rpc-bind-address”: “0.0.0.0”,
    “rpc-enabled”: true,
    “rpc-password”: “xxxxx“,  <<<=== Set a password to logon in the webpage
    “rpc-port”: 9091,
    “rpc-username”: admin“,  <<<=== Set a username to logon in the webpage
    “rpc-whitelist”: “*.*.*.*,127.0.0.*”,   <<<=== Allow all IP address to access webpage
    “rpc-whitelist-enabled”: true,
    “speed-limit-down”: 500,
    “speed-limit-down-enabled”: false,
    “speed-limit-up”: 25,   <<<=== Set the value for the global max upload speed
    “speed-limit-up-enabled”: true,   <<<=== Enable the global max upload speed
    “upload-slots-per-torrent”: 14
}

To access Transmission Web Interface from the web, you need also to open port 9091 in your internet router.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.