Transmission torrent client on FreeBSD 10.1

1. Introduction

Torrent client installation on a FreeBSD 10.1 server.
transmission-freebsd

2. Installation

Install transmission :

3. Configuration

3.1 Transmission

Starting the server will generate the configuration files that we’ll edit later. We use “one start” instead of “start” because we did not add transmission to the “/etc/rc.conf” yet.

Stopping the service to edit the configuration file :

Edit the configuration :

For safety, on this setup, I don’t rely on a login/password system. Indeed, the transmission service will listen exclusively on the VPN interface, from where all the clients are allowed to access.
Do not change the “destination folder” here, do it from the web interface.

You can check your configuration by starting/stopping temporary the service with the following commands :

Once the configuration is done, we can enable the automatic start :

Add these lines :

Change the destination folder from the web interface.
Transmission screenshot

3.2 Firewall (PF)

To open the port :

Add these lines :

Result:
Transmission screenshot

4 thoughts on “Transmission torrent client on FreeBSD 10.1”

  1. Hi,

    Thank you very much for this great tutorial, it’s the best I found.

    I just have one concern: when I use the default download folder, I only have 20Gb of disk space (I use a 500Gb HDD).

    I would love to change it, but with ZFS, I am totally lost at which directory I should and how. Would you mind elaborating that point, please?

  2. I don’t know if this counts for FreeBSD 10.x, but on 11.x and 12.x if you start transmission it will log two error lines in /var/log/messages, containing:

    UDP Failed to set receive buffer: No buffer space available
    UDP Failed to set receive buffer: requested 4194304, got 42080

    To fix this you need to add the following two lines to /etc/sysctl.conf:

    kern.ipc.maxsockbuf=5242880
    net.inet.udp.recvspace=4194304

    This will let transmission start without errors in the messages log file.

  3. Another thing, if you use a different directory for downloads, or even a separate mounted disk, you need to set the permissions correctly. And add the transmission user and probably your normal user to the transmission group.

Leave a Reply

Your email address will not be published. Required fields are marked *