Torrent Boxes

Building a seed or torrent box.

Elements
  • A virtual server, 1 CPU and 1 G RAM works fine and Ubuntu OS to makes it easy
  • UFW to control access
  • NFS to save your files (if you're using central file storage)
  • Transmission to do the work
  • OpenVPN and a service like PIA
  
Install OS

Enable UFW and configure access
  sudo ufw allow from xxx
  sudo ufw allow in on tun0

Connect NFS
  sudo mkdir -p /srv/torrent/public/
  sudo apt install nfs-common
  sudo vim /etc/fstab
    xxx.xxx.xxx.xxx:/srv/torrent/public  /srv/torrent/public      nfs     auto,noatime,nolock     0 0
  sudo mount /srv/torrent/public

Install and configure Transmission
  sudo apt install transmission-daemon
  sudo service transmission-daemon stop
  sudo cp settings.json /etc/transmission-daemon/settings.json

Install OpenVPN and configure PIA
      ( https://helpdesk.privateinternetaccess.com/hc/en-us/articles/219438247-Installing-OpenVPN-PIA-on-Linux )
      ( Optionally check out https://github.com/jonathanio/update-systemd-resolved as an alternative to update-resolve-conf)
  edit CA Toronto.open and append:
    auth-user-pass pass.txt
    script-security 2
    up /etc/openvpn/update-resolv-conf
    down /etc/openvpn/update-resolv-conf
  copy pass.txt to the same /etc/openvpn directory and chmod 600
  Test with 
    sudo openvpn CA\ Toronto.ovpn




Troubleshooting

Pia server unresolved - see DNS

Comments