Project

General

Profile

Tâche #17885

Scénario #17881: Automatiser la création de torrent

Mettre en place un client torrent pour seeder les ISO

Added by Gérald Schwartzmann almost 7 years ago. Updated about 6 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
06/06/2017
Due date:
07/14/2017
% Done:

100%

Estimated time:
6.00 h
Spent time:
Remaining (hours):
0.0

Description

  • choisir un client
  • ouverture de port

settings.json (2.11 KB) Laurent Flori, 07/04/2017 03:14 PM

History

#1 Updated by Scrum Master almost 7 years ago

  • Project changed from Images CD to Distribution EOLE
  • Parent task deleted (#17881)

#2 Updated by Scrum Master almost 7 years ago

  • Tracker changed from Tâche to Scénario
  • Start date deleted (11/15/2016)
  • Release set to Interne EOLE
  • Story points set to 1.0

#3 Updated by Scrum Master over 6 years ago

  • Due date set to 06/23/2017
  • Target version set to sprint 2017 23-25 Equipe MENSR
  • Start date set to 06/06/2017

#4 Updated by Scrum Master over 6 years ago

  • Subject changed from Mettre en place un client torrent pour seeder les fichiers to Mettre en place un client torrent pour seeder les ISO

#5 Updated by Gérald Schwartzmann over 6 years ago

  • Tracker changed from Scénario to Tâche
  • Estimated time changed from 3.00 h to 6.00 h
  • Remaining (hours) changed from 3.0 to 6.0

#6 Updated by Gérald Schwartzmann over 6 years ago

  • Parent task set to #17881

#7 Updated by Laurent Flori over 6 years ago

  • Project changed from Distribution EOLE to Images CD
  • Status changed from Nouveau to En cours

#8 Updated by Laurent Flori over 6 years ago

  • Assigned To set to Laurent Flori

#9 Updated by Daniel Dehennin over 6 years ago

  • Due date changed from 06/23/2017 to 07/14/2017

#10 Updated by Laurent Flori over 6 years ago

  • Remaining (hours) changed from 6.0 to 2.0

On peut utiliser transmission en mode cli.
Il faut sur la machine qui seede la paquet transmission-daemon

La configuration est sotckée par défaut dans le dossier config du répertoire de l'utilisateur qui execute transmission-daemon (par défaut transmission dans /var/lib/transmission/)

Il faut au moins un port ouvert sur l'exterieur pour que le client fonctionne:

peer-port: 51413 # udp/tcp (valeur par défaut)

On peut utiliser transmission-remote pour tester que le port est bien disponible:
transmission-remote http://<url_ou_ip_du_daemon_transmission>:9091/transmission -pt

La réponse devrait être:
Port is open: Yes

Si on veut pouvoir interagir ave le daemon, il faut rendre disponible le port utilisé pour le rpc

rpc-port: 9091 # tcp   (valeur par défaut)

Pour seeder les isos EOLE, on rend disponibles les isos sur la machine qui seede (ici on prend: /path/to/iso/eole/<version>/)
puis avec un client transmission-remote (en local sur la machine qui seede ou depuis un client distant)

transmission-remote http://<url_ou_ip_du_daemon_transmission>:9091/transmission --add eole-<version>.torrent -w /path/to/iso/eole/<version>/

Si tout est convenable, le daemon transmission commence à seeder l'iso après une vérification des données sur le disque et le retour devrait être quelque chose comme ça:
<url_ou_ip_du_daemon_transmission>:9091/transmission/rpc/ responded: "success" 

On peut lister les torrents en cours de seed avec transmission-remote:

transmission-remote http://<url_ou_ip_du_daemon_transmission>:9091/transmission --list
ID     Done       Have  ETA           Up    Down  Ratio  Status       Name
  16   100%    1.28 GB  Unknown      0.0     0.0    0.0  Idle         eole-2.6.1-alternate-amd64.iso
Sum:           1.28 GB               0.0     0.0

On peut mettre les fichiers un peu ou on veut tant que le répertoire et les fichiers choisis appartiennent à l'utilisateur qui fait tourner transmission-daemon (ou qu'il peut lire/écrire)

J'ajoute un fichier settings.json example pour transmission-daemon

#11 Updated by Laurent Flori over 6 years ago

  • Remaining (hours) changed from 2.0 to 4.0

#12 Updated by Laurent Flori over 6 years ago

#13 Updated by Laurent Flori over 6 years ago

On peut protéger l'accès à l'interface web et à l'interface rpc de deux façons:
  • login/password (basic auth)
  • avec une whitelist d'ip autorisées à se connecter

On peut combiner les deux méthodes
Config:

    "rpc-authentication-required": false,
    "rpc-bind-address": "127.0.0.1",
    "rpc-enabled": true,
    "rpc-password": "<password rpc>",
    "rpc-username": "torrent",
    "rpc-whitelist": "127.0.0.1",
    "rpc-whitelist-enabled": true,

#14 Updated by Laurent Flori over 6 years ago

  • Remaining (hours) changed from 4.0 to 3.0

#15 Updated by Laurent Flori over 6 years ago

J'ajoute ici une liste de tracker pour les annonces sur la dht:

udp://tracker.opentrackr.org:1337
udp://tracker.coppersurfer.tk:6969
udp://tracker.leechers-paradise.org:6969
udp://zer0day.ch:1337
udp://explodie.org:6969 

Source: https://openbittorrent.com/

#16 Updated by Daniel Dehennin about 6 years ago

J’ai mis en place une machine torrent.eole.lan et j’ai demandé l’ouverture du port 51413 depuis Internet

#17 Updated by Daniel Dehennin about 6 years ago

  • % Done changed from 0 to 100

#18 Updated by Scrum Master about 6 years ago

  • Status changed from En cours to Résolu

#19 Updated by Daniel Dehennin about 6 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 3.0 to 0.0

Also available in: Atom PDF