Server/saugbert
< Server
Vorlage:Beinhaltet Abweichungen von der Realität
Server/freebert is gone!
Hardware
Virtualisiert durch Server/freebert/FreeBSD
Software
- FreeBSD Jail
- rtorrent-0.9.2_5
Verwendungszweck
- legales Filesharing
JAIL: /home/k-ot/.rtorrent.rc
session = ~/.rtorrent-session
directory = /export/down
schedule = watch_directory,10,10,load_start=/export/add/*.torrent
schedule = tied_directory,10,10,start_tied=
schedule = untied_directory,10,10,close_untied=
# system.method.set_key = event.download.finished,move_complete,"execute=cp,-R,-l,$d.get_base_path=,/export/finished"
system.method.set_key = event.download.finished,move_complete,"execute=mv,$d.get_base_path=,/export/finished"
dht = on
upload_rate = 10
download_rate = 500
# max_memory_usage = 314572800
max_memory_usage = 256000000
peer_exchange = yes
min_peers = 10
max_peers = 40
max_uploads = 5
# Same as above but for seeding completed torrents (-1 = same as downloading)
min_peers_seed = 5
max_peers_seed = 10
check_hash = yes
port_range = 65001-65001
#encryption = require,require_RC4,allow_incoming,try_outgoing,enable_retry
dht_port = 6881
peer_exchange = yes
JAIL: Zugriff
wie üblich
JAIL: ZFS rpool Verlinkung
/export/add
/export/down
/export/finished
Files werden periodisch nach rpool/saugbert verschoben
Log
- 28.04.2014
zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/usr/jails/storage.hq.c3d2.de/zimport zroot/ezjail/storage.hq.c3d2.de/zimport
zfs set sharenfs=-maproot=root -alldirs -network=172.22.99.0 -mask=255.255.255.0 zroot/ezjail/storage.hq.c3d2.de/zimport
zfs destroy -r zroot/ezjail/storage.hq.c3d2.de/rpool/saugbert
@FreeBert Crontab:
### storage zimport rsync // ###
*/45 * * * * root /usr/local/bin/rsync -avz --delete /usr/jails/storage.hq.c3d2.de/zimport/saugbert/add/ /usr/jails/saugbert.hq.c3d2.de/export/add/ > /dev/null 2>&1
*/46 * * * * root /usr/local/bin/rsync -avz --delete /usr/jails/storage.hq.c3d2.de/zimport/lostbert/add/ /usr/jails/saugbert.hq.c3d2.de/export/add/ > /dev/null 2>&1
#
*/55 * * * * root mv /usr/jails/saugbert.hq.c3d2.de/export/finished/* /usr/jails/storage.hq.c3d2.de/zimport/saugbert/finished/ > /dev/null 2>&1
### // storage zimport rsync ###
- 27.04.2014 - zfs set sharenfs="-maproot=root -alldirs -network=172.22.99.0 -mask=255.255.255.0" zroot/ezjail/storage.hq.c3d2.de/rpool/saugbert
- 26.04.2014 - rtorrent compiled ohne IPv6, static route über ipredator
- 16.04.2014 - einfaches Basis Setup