Pomoc rtorrent na Natywnym Debianie i przekierowanie portów

magg

Passing Basics
Beginner
4 Grudzień 2014
18
3
3
36
QNAP
Ethernet
802.11n (Wi-Fi 4)
Witam.
Debian bez problemowo zainstalował się na moim 212P.
Mam jednak problem z rutorrentem ponieważ nie mogę wypościć jego portu. Na routerze ten zakres portów jest otwarty 51578-51588 nie wiem za bardzo od czego sa te 6890-6999 (w Transmission inny port jest otwarty i wszystko działa)
rutorrent caly czas pokazuje ze 51578 Port status nieznany


# Port range to use for listening.
# network.port_range.set = 6890-6999
port_range = 51578-51588


Druga sprawa to auto unpacking. Chce żeby przy sprawdzaniu co rozpakować było /katalog główny.*/kolejny katalog/
Czasem zdarza mi się pobierać cale serial w całej serii i wtedy nie wypakowuje ich automatycznie ponieważ jest każdy epizod osobno.
Jak dałem w filtrze rozpakowywania /.*/.*/ to nic się nie rozpakowało.

Dzieki i pozdrawiam
Nie wiem co źle robię ale mamy caly czas to samo ;/
Port 52578 na pewno jest otwarty...

Kod:
┌─[16:13:03]─[root@magdump]
└──> etc $ >> netstat -npl | grep rtorrent
tcp  0  0 0.0.0.0:52578  0.0.0.0:*  LISTEN  13901/rtorrent
tcp  0  0 127.0.0.1:5000  0.0.0.0:*  LISTEN  13901/rtorrent
 
Cokolwiek nie zmienie w rtorrent.conf robie resert
Cokolwiek nie zmienie w rtorrent.conf robie reset
Witam.
Temat może stary ale nadal nie mam pojecia jak sobie z tym poradzić. Zmieniłem router porty w configu domyślne wypuszczone i nadal jest że rtorrent ma wykrzyknik.
Mało tego mam łącze 150Mb a maksymalnie co wyciąga rtorrent to 6 MB/s choć na starym routerze było 12 MB/s. Łącze po Wifi AC wyciąga pełne 18 MB/s.
Jak sprawdzam obciążenie CPU oraz ram jest w normie co może być nie tak? Może jakiś update ruTorrent / rtorrenta by pomógł tylko jak go zrobić?
Proszę o pomoc co może być tego przyczyną.

BTW. Dodam też ze w Transmission mogę poprawie wypuścici port ale transfery są podobne masz 8MB/s i spadają do 3 MB/s

Kod:
┌─[11:00:52]─[root@magdump]
└──> etc $ >> cat rtorrent.conf
# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.

# Maximum and minimum number of peers to connect to per torrent.
# throttle.min_peers.normal.set = 40
# throttle.max_peers.normal.set = 100
min_peers = 40
max_peers = 100

# Same as above but for seeding completed torrents (-1 = same as downloading)
# throttle.min_peers.seed.set = 25
# throttle.max_peers.seed.set = 60
min_peers_seed = 25
max_peers_seed = 60

# Maximum number of simultanious uploads per torrent.
# throttle.max_uploads.set = 30
max_uploads = 30

# Global upload and download rate in KiB. "0" for unlimited.
# throttle.global_up.max_rate.set_kb = 0
# throttle.global_down.max_rate.set_kb = 0
download_rate = 0
upload_rate = 0

# tracker_numwant = -1
trackers.numwant.set = -1

# Max mapped memory
# nb does not refer to physical memory
# max_memory_usage = 768M
#pieces.memory.max.set = 768M

# Max number of files to keep open simultaneously
# max_open_files = 65536
#network.max_open_files.set = 65536

# max_open_http = 48
#network.http.max_open.set = 48

# Number of sockets to simultaneously keep open
# max_open_sockets = 65023
#network.max_open_sockets.set = 65023
#network.xmlrpc.size_limit.set = 4M

#pieces.preload.type.set = 1


# Default directory to save the downloaded torrents.
# directory.default.set = /share/Download/rtorrent/downloads/
directory = /share/Download/rtorrent/downloads/

# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
# session.path.set = /share/Download/rtorrent/session
session = /share/Download/rtorrent/session

# Schedule syntax: id,start,interval,command call cmd every interval seconds,
#  starting from start.
# An interval of zero calls the task once while a start of zero calls it immedia  tely.
# Start and interval may optionally use a time format dd:hh:mm:ss
# e.g. to start a task every day at 18:00, use 18:00:00,24:00:00.
# Commands: stop_untied =, close_untied =, remove_untied =
# Stop, Close or Remove the torrents that are tied to filenames that have been d  eleted

# Watch a directory for new torrents, and stop those that have been
# deleted.
schedule = watch_directory,5,5,load_start=/share/Download/rtorrent/watch/*.torre  nt
schedule = untied_directory,5,5,stop_untied=

# Close torrents when diskspace is low.
schedule = low_diskspace,5,60,close_low_diskspace=100M

# Stop torrents when reaching upload ratio in percent, when also reaching
# total upload in bytes, or when reaching final upload ratio in percent
# Example: stop at ratio 2.0 with at least 200 MB uploaded, or else ratio 20.0
#schedule = ratio,60,60,stop_on_ratio=200,200M,2000
ratio.enable=
ratio.min.set=500
ratio.max.set=2000
ratio.upload.set=200M
method.set = group.seeding.ratio.command, d.close=

# load = file, load_verbose = file, load_start = file, load_start_verbose = file
# load and possibly start a file, or possibly multiple files by using the wild-c  ard "*"
# this is meant for use with schedule, though ensure that the start is non-zero
# the loaded file will be tied to the filename provided.

# When the torrent finishes, it executes "mv -n <base_path> ~/Download/"
# and then sets the destination directory to "~/Download/". (0.7.7+)
#on_finished = move_complete,"execute=mv,-u,$d.get_base_path=,/share/Download/rt  orrent/complete/ ;d.set_directory=/share/Download/rtorrent/complete/"
method.set_key = event.download.finished,move_complete,"d.set_directory=/share/D  ownload/rtorrent/complete/; execute=mv,-f,$d.get_base_path=,/share/Download/rtor  rent/complete/"

# The ip address reported to the tracker.
# network.local_address.set = rakshasa.no
# network.local_address.set = 127.0.0.1
#ip = 127.0.0.1
#ip = rakshasa.no

# The ip address the listening socket and outgoing connections is
# bound to.
# network.bind_address.set = rakshasa.no
# network.bind_address.set = 127.0.0.1
#bind = 127.0.0.1
#bind = rakshasa.no

# Port range to use for listening.
# network.port_range.set = 6890-6999
port_range = 52578-52580

# Start opening ports at a random position within the port range.
# network.port_random.set = no
port_random = no

# Check hash for finished torrents. Might be usefull until the bug is
# fixed that causes lack of diskspace not to be properly reported.
# pieces.hash.on_completion.set = yes
check_hash = yes

# Set whether the client should try to connect to UDP trackers.
# use_udp_trackers = yes
trackers.use_udp.set = yes

# Alternative calls to bind and ip that should handle dynamic ip's.
#schedule = ip_tick,0,1800,ip=rakshasa
#schedule = bind_tick,0,1800,bind=rakshasa

# Remove a scheduled event
# schedule_remove = "ip_tick"

# Encryption options, set to none (default) or any combination of the following:
# allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plain  text
#
# The example value allows incoming encrypted connections, starts unencrypted
# outgoing connections but retries with encryption if they fail, preferring
# plaintext to RC4 encryption after the encrypted handshake
#
# protocol.encryption.set =
encryption = allow_incoming,enable_retry,prefer_plaintext

# Enable DHT support for trackerless torrents or when all trackers are down.
# May be set to "disable" (completely disable DHT), "off" (do not start DHT),
# "auto" (start and stop DHT as needed), or "on" (start DHT immediately).
# The default is "off". For DHT to work, a session directory must be defined.
#
# dht.mode.set = auto
dht = auto

# UDP port to use for DHT.
#
# dht_port = 6881
dht.port.set = 53577

# Enable peer exchange (for torrents not marked private)
#
# protocol.pex.set = yes
peer_exchange = no

# network.scgi.open_port = 127.0.0.1:5000
scgi_port = 127.0.0.1:5000
#scgi_local = /var/run/rtorrent-rpc.socket

xmlrpc_dialect=i8
encoding_list = UTF-8

# Hash read-ahead controls how many MB to request the kernel to read ahead ahead
# if the value is too low the disk may not be fully utilized,
# while if too high the kernel might not be able to keep the read pages
# in memory thus end up trashing.
# hash_read_ahead = 8
# system.hash.read_ahead.set = 8

# Interval between attempts to check the hash, in milliseconds
# hash_interval = 50
# system.hash.interval.set = 50

# Number of attempts to check the hash while using the mincore status, before fo  rcing
# overworked systems might need lower values to get a decent hash checking rate
# hash_max_tries = 3
# system.hash.max_tries.set = 3

# SSL certificate name
# http_cacert =
# SSL certificate path
# http_capath =

http_capath = /usr/share/ca-certificates
network.http.ssl_verify_peer.set = 0

# throttle.max_downloads.div.set =
# max_downloads_div =

# throttle.max_uploads.div.set =
# max_uploads_div =

system.file.max_size.set = -1

# preload type 0 = Off, 1 = madvise, 2 = direct paging
pieces.preload.type.set = 1
pieces.preload.min_size.set = 262144
pieces.preload.min_rate.set = 5120
network.send_buffer.size.set = 1M
network.receive_buffer.size.set = 131072

pieces.sync.always_safe.set = no
pieces.sync.timeout.set = 600
pieces.sync.timeout_safe.set = 900

# scgi_dont_route =
# network.scgi.dont_route.set =

# session.path.set =
# session.name.set =
session.use_lock.set = yes
session.on_completion.set = yes

system.file.split_size.set = -1
system.file.split_suffix.set = .part

# Use a http proxy. [url] ;an empty string disables this setting
# http_proxy =
# network.http.proxy_address.set =

# Set the umask applied to all files created by rtorrent
system.umask.set = 0000

# Alternate keyboard mappings
# qwerty | azerty | qwertz | dvorak
# key_layout = dvorak
# keys.layout.set = dvorak

# DO NOT USE IT SINCE ITS CHROOTED RTORRENT
####execute={sh,-c,/jail/usr/bin/php5-cgi /var/www/rtorrent/php/initplugins.php  rtorrent &}
execute={sh,-c,/usr/bin/php5-cgi /var/www/rtorrent/php/initplugins.php &}

log.open_file = "rtorrent.info.log", (cat,/share/Download/rtorrent/logs/rtorrent  .info.log)
log.add_output = "info", "rtorrent.info.log"

log.open_file = "rtorrent.dht_debug.log", (cat,/share/Download/rtorrent/logs/rto  rrent.dht_debug.log)
log.add_output = "dht_debug", "rtorrent.dht_debug.log"

log.open_file = "rtorrent.tracker_debug.log", (cat,/share/Download/rtorrent/logs  /rtorrent.tracker_debug.log)
log.add_output = "tracker_debug", "rtorrent.tracker_debug.log"

log.open_file = "rtorrent.critical.log", (cat,/share/Download/rtorrent/logs/rtor  rent.critical.log)
log.add_output = "critical", "rtorrent.critical.log"

log.open_file = "rtorrent.error.log", (cat,/share/Download/rtorrent/logs/rtorren  t.error.log)
log.add_output = "error", "rtorrent.error.log"

log.open_file = "rtorrent.warn.log", (cat,/share/Download/rtorrent/logs/rtorrent  .warn.log)
log.add_output = "warn", "rtorrent.warn.log"

log.execute = /share/Download/rtorrent/logs/rtorrent.execute.log

┌─[11:00:56]─[root@magdump]
└──> etc $ >> cat rtorrent.conf
# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.

# Maximum and minimum number of peers to connect to per torrent.
# throttle.min_peers.normal.set = 40
# throttle.max_peers.normal.set = 100
min_peers = 40
max_peers = 100

# Same as above but for seeding completed torrents (-1 = same as downloading)
# throttle.min_peers.seed.set = 25
# throttle.max_peers.seed.set = 60
min_peers_seed = 25
max_peers_seed = 60

# Maximum number of simultanious uploads per torrent.
# throttle.max_uploads.set = 30
max_uploads = 30

# Global upload and download rate in KiB. "0" for unlimited.
# throttle.global_up.max_rate.set_kb = 0
# throttle.global_down.max_rate.set_kb = 0
download_rate = 0
upload_rate = 0

# tracker_numwant = -1
trackers.numwant.set = -1

# Max mapped memory
# nb does not refer to physical memory
# max_memory_usage = 768M
#pieces.memory.max.set = 768M

# Max number of files to keep open simultaneously
# max_open_files = 65536
#network.max_open_files.set = 65536

# max_open_http = 48
#network.http.max_open.set = 48

# Number of sockets to simultaneously keep open
# max_open_sockets = 65023
#network.max_open_sockets.set = 65023
#network.xmlrpc.size_limit.set = 4M

#pieces.preload.type.set = 1


# Default directory to save the downloaded torrents.
# directory.default.set = /share/Download/rtorrent/downloads/
directory = /share/Download/rtorrent/downloads/

# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
# session.path.set = /share/Download/rtorrent/session
session = /share/Download/rtorrent/session

# Schedule syntax: id,start,interval,command call cmd every interval seconds,
#  starting from start.
# An interval of zero calls the task once while a start of zero calls it immediately.
# Start and interval may optionally use a time format dd:hh:mm:ss
# e.g. to start a task every day at 18:00, use 18:00:00,24:00:00.
# Commands: stop_untied =, close_untied =, remove_untied =
# Stop, Close or Remove the torrents that are tied to filenames that have been deleted

# Watch a directory for new torrents, and stop those that have been
# deleted.
schedule = watch_directory,5,5,load_start=/share/Download/rtorrent/watch/*.torrent
schedule = untied_directory,5,5,stop_untied=

# Close torrents when diskspace is low.
schedule = low_diskspace,5,60,close_low_diskspace=100M

# Stop torrents when reaching upload ratio in percent, when also reaching
# total upload in bytes, or when reaching final upload ratio in percent
# Example: stop at ratio 2.0 with at least 200 MB uploaded, or else ratio 20.0
#schedule = ratio,60,60,stop_on_ratio=200,200M,2000
ratio.enable=
ratio.min.set=500
ratio.max.set=2000
ratio.upload.set=200M
method.set = group.seeding.ratio.command, d.close=

# load = file, load_verbose = file, load_start = file, load_start_verbose = file
# load and possibly start a file, or possibly multiple files by using the wild-card "*"
# this is meant for use with schedule, though ensure that the start is non-zero
# the loaded file will be tied to the filename provided.

# When the torrent finishes, it executes "mv -n <base_path> ~/Download/"
# and then sets the destination directory to "~/Download/". (0.7.7+)
#on_finished = move_complete,"execute=mv,-u,$d.get_base_path=,/share/Download/rtorrent/complete/ ;d.set_directory=/share/Download/rtorrent/complete/"
method.set_key = event.download.finished,move_complete,"d.set_directory=/share/Download/rtorrent/complete/; execute=mv,-f,$d.get_base_path=,/share/Download/rtorrent/complete/"

# The ip address reported to the tracker.
# network.local_address.set = rakshasa.no
# network.local_address.set = 127.0.0.1
#ip = 127.0.0.1
#ip = rakshasa.no

# The ip address the listening socket and outgoing connections is
# bound to.
# network.bind_address.set = rakshasa.no
# network.bind_address.set = 127.0.0.1
#bind = 127.0.0.1
#bind = rakshasa.no

# Port range to use for listening.
# network.port_range.set = 6890-6999
port_range = 52578-52580

# Start opening ports at a random position within the port range.
# network.port_random.set = no
port_random = no

# Check hash for finished torrents. Might be usefull until the bug is
# fixed that causes lack of diskspace not to be properly reported.
# pieces.hash.on_completion.set = yes
check_hash = yes

# Set whether the client should try to connect to UDP trackers.
# use_udp_trackers = yes
trackers.use_udp.set = yes

# Alternative calls to bind and ip that should handle dynamic ip's.
#schedule = ip_tick,0,1800,ip=rakshasa
#schedule = bind_tick,0,1800,bind=rakshasa

# Remove a scheduled event
# schedule_remove = "ip_tick"

# Encryption options, set to none (default) or any combination of the following:
# allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext
#
# The example value allows incoming encrypted connections, starts unencrypted
# outgoing connections but retries with encryption if they fail, preferring
# plaintext to RC4 encryption after the encrypted handshake
#
# protocol.encryption.set =
encryption = allow_incoming,enable_retry,prefer_plaintext

# Enable DHT support for trackerless torrents or when all trackers are down.
# May be set to "disable" (completely disable DHT), "off" (do not start DHT),
# "auto" (start and stop DHT as needed), or "on" (start DHT immediately).
# The default is "off". For DHT to work, a session directory must be defined.
#
# dht.mode.set = auto
dht = auto

# UDP port to use for DHT.
#
# dht_port = 6881
dht.port.set = 53577

# Enable peer exchange (for torrents not marked private)
#
# protocol.pex.set = yes
peer_exchange = no

# network.scgi.open_port = 127.0.0.1:5000
scgi_port = 127.0.0.1:5000
#scgi_local = /var/run/rtorrent-rpc.socket

xmlrpc_dialect=i8
encoding_list = UTF-8

# Hash read-ahead controls how many MB to request the kernel to read ahead ahead
# if the value is too low the disk may not be fully utilized,
# while if too high the kernel might not be able to keep the read pages
# in memory thus end up trashing.
# hash_read_ahead = 8
# system.hash.read_ahead.set = 8

# Interval between attempts to check the hash, in milliseconds
# hash_interval = 50
# system.hash.interval.set = 50

# Number of attempts to check the hash while using the mincore status, before forcing
# overworked systems might need lower values to get a decent hash checking rate
# hash_max_tries = 3
# system.hash.max_tries.set = 3

# SSL certificate name
# http_cacert =
# SSL certificate path
# http_capath =

http_capath = /usr/share/ca-certificates
network.http.ssl_verify_peer.set = 0

# throttle.max_downloads.div.set =
# max_downloads_div =

# throttle.max_uploads.div.set =
# max_uploads_div =

system.file.max_size.set = -1

# preload type 0 = Off, 1 = madvise, 2 = direct paging
pieces.preload.type.set = 1
pieces.preload.min_size.set = 262144
pieces.preload.min_rate.set = 5120
network.send_buffer.size.set = 1M
network.receive_buffer.size.set = 131072

pieces.sync.always_safe.set = no
pieces.sync.timeout.set = 600
pieces.sync.timeout_safe.set = 900

# scgi_dont_route =
# network.scgi.dont_route.set =

# session.path.set =
# session.name.set =
session.use_lock.set = yes
session.on_completion.set = yes

system.file.split_size.set = -1
system.file.split_suffix.set = .part

# Use a http proxy. [url] ;an empty string disables this setting
# http_proxy =
# network.http.proxy_address.set =

# Set the umask applied to all files created by rtorrent
system.umask.set = 0000

# Alternate keyboard mappings
# qwerty | azerty | qwertz | dvorak
# key_layout = dvorak
# keys.layout.set = dvorak

# DO NOT USE IT SINCE ITS CHROOTED RTORRENT
####execute={sh,-c,/jail/usr/bin/php5-cgi /var/www/rtorrent/php/initplugins.php rtorrent &}
execute={sh,-c,/usr/bin/php5-cgi /var/www/rtorrent/php/initplugins.php &}

log.open_file = "rtorrent.info.log", (cat,/share/Download/rtorrent/logs/rtorrent.info.log)
log.add_output = "info", "rtorrent.info.log"

log.open_file = "rtorrent.dht_debug.log", (cat,/share/Download/rtorrent/logs/rtorrent.dht_debug.log)
log.add_output = "dht_debug", "rtorrent.dht_debug.log"

log.open_file = "rtorrent.tracker_debug.log", (cat,/share/Download/rtorrent/logs/rtorrent.tracker_debug.log)
log.add_output = "tracker_debug", "rtorrent.tracker_debug.log"

log.open_file = "rtorrent.critical.log", (cat,/share/Download/rtorrent/logs/rtorrent.critical.log)
log.add_output = "critical", "rtorrent.critical.log"

log.open_file = "rtorrent.error.log", (cat,/share/Download/rtorrent/logs/rtorrent.error.log)
log.add_output = "error", "rtorrent.error.log"

log.open_file = "rtorrent.warn.log", (cat,/share/Download/rtorrent/logs/rtorrent.warn.log)
log.add_output = "warn", "rtorrent.warn.log"

log.execute = /share/Download/rtorrent/logs/rtorrent.execute.log
 
Serwery na ARM'ie takie jak TS-212 mają za wolną magistrale, aby szybko robić sync i flush mmap'u na interfejs HDD więc nie doszukiwałbym się zwiększenia wydajności. Będąc szczerym TS-212 jest za słaby.

Te porty musisz przekierować na routerze. Jeśli nie masz pewności, że operator nie blokuje wysokich portów to zjechałbym nimi w dół. Zwłaszcza, że ISP lubią markować wysokie porty na najmniejszy priorytet.
 

Użytkownicy znaleźli tą stronę używając tych słów:

  1. Maximum and minimum number of peers to connect to per torrent.