source: repoman/bin/torrent-tracker @ 31d4f1a5

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since 31d4f1a5 was 6baac83, checked in by ramon <ramongomez@…>, 10 years ago

#536: Mejorar la seguridad modificando torrent-tracker para evitar la descarga no autorizadas de torrents (BTALLOW_GET=0).

git-svn-id: https://opengnsys.es/svn/branches/version1.0@4458 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100755
File size: 887 bytes
Line 
1#!/bin/bash
2BTTRACK=/usr/bin/bttrack.bittorrent
3BTSEEDER=/usr/bin/btlaunchmany.bittornado
4BTTRACKPORT=6969
5BTTRACKDFILE=/tmp/dstate
6BTTRACKLOG=/opt/opengnsys/log/bttrack.log
7BTINTERVAL=10
8BTTORRENTSDIR=/opt/opengnsys/images
9# Desactivar descarga de torrents desde clientes no autorizados.
10BTALLOW_GET=0
11# parametros basados en EAC 05-04-2009 antonio doblas viso.
12BTTRACK_OPTIONS=" --save_dfile_interval $BTINTERVAL --timeout_downloaders_interval $BTINTERVAL --port $BTTRACKPORT --dfile $BTTRACKDFILE --reannounce_interval $BTINTERVAL --logfile $BTTRACKLOG --allowed_dir $BTTORRENTSDIR --allow_get $BTALLOW_GET "
13BTTRACKPID="/var/run/bttrack.pid"
14BTSEEDERPID="/var/run/btseeder.pid"
15
16###################  #######################################
17
18pkill bttrack
19rm $BTTRACKDFILE
20sleep 2
21bttrack $BTTRACK_OPTIONS &>> $BTTRACKLOG &
22ps aux | grep bttrack | grep -v grep | awk -F: '{print $3}'
Note: See TracBrowser for help on using the repository browser.