Recommended Aria2 BT IPv6 Configuration to Resolve Slow Download Speeds
Index
Normally, the download tools on my NAS can achieve full speed when downloading BitTorrent (BT) files. To optimize your setup, first contact your ISP to enable IPv6 support on your router, then assign a public IPv6 IP to your NAS device. Recently, I’ve configured Aria2 using the settings below, which should resolve any slow download issues. The key lies in the tracker and DHT configurations. Feel free to adjust the file paths to your preferred custom locations.
Aria2 Configuration
# Enable RPC (Remote Procedure Call) for remote control of Aria2
enable-rpc=true
# Allow all origins to access the RPC interface (useful for remote access)
rpc-allow-origin-all=true
# Listen for RPC requests on all network interfaces
rpc-listen-all=true
# Set the RPC port to 4105
rpc-listen-port=4105
# Set a secret token for RPC authentication (replace 'tokensss' with your own secure token)
rpc-secret=tokensss
# Directory where downloaded files will be saved
dir=/home/root/app/aria2/downloads
# Use falloc for file allocation (faster pre-allocation for large files)
file-allocation=falloc
# Resume incomplete downloads if supported by the server
continue=true
# Sync file timestamps with the remote server
remote-time=true
# Maximum number of retries if a file is not found (stops after 5 failures)
max-file-not-found=5
# Unlimited retries for failed downloads (0 means infinite)
max-tries=0
# Wait 10 seconds between retries
retry-wait=10
# Use UTF-8 for content disposition by default (better compatibility with non-ASCII filenames)
content-disposition-default-utf8=true
# Maximum number of concurrent downloads (up to 50 tasks at once)
max-concurrent-downloads=50
# Maximum connections per server (up to 16 connections per download)
max-connection-per-server=16
# Minimum size of file chunks for splitting (4MB minimum)
min-split-size=4M
# Split each download into 16 parts for parallel downloading
split=16
# Limit overall upload speed to 32MB/s
max-overall-upload-limit=32M
# Limit upload speed per task to 32MB/s
max-upload-limit=32M
# Enable IPv6 support (set to false to disable IPv6, true to enable)
disable-ipv6=false
# Accept gzip-compressed responses from HTTP servers (saves bandwidth)
http-accept-gzip=true
# Do not reuse URIs from previous sessions (forces fresh connections)
reuse-uri=false
# Disable use of .netrc file for authentication
no-netrc=true
# File to store download session data (for resuming downloads)
input-file=/home/root/app/aria2/config/aria2.session
# File to save session data periodically
save-session=/home/root/app/aria2/config/aria2.session
# Save session data every 1 second
save-session-interval=1
# Auto-save session data every 60 seconds
auto-save-interval=60
# Do not force-save session data (saves only when needed)
force-save=false
# Prevent overwriting existing files (downloads will fail if file exists)
allow-overwrite=false
# Port for BitTorrent listening (default port 6881)
listen-port=6881
# Maximum number of peers to connect to per torrent (100 peers max)
bt-max-peers=100
# File to store IPv4 DHT (Distributed Hash Table) data
dht-file-path=/home/root/app/aria2/config/dht.dat
# File to store IPv6 DHT data
dht-file-path6=/home/root/app/aria2/config/dht6.dat
# Enable DHT for IPv4 (improves peer discovery)
enable-dht=true
# Enable DHT for IPv6 (improves peer discovery over IPv6)
enable-dht6=true
# Port for DHT listening (matches BitTorrent port)
dht-listen-port=6881
# Enable Local Peer Discovery (LPD) for BitTorrent
bt-enable-lpd=true
# Enable peer exchange (PEX) for finding more peers
enable-peer-exchange=true
# Limit peer request speed to 10MB/s during BitTorrent downloads
bt-request-peer-speed-limit=10M
# User-agent string to identify Aria2 to HTTP servers
user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3602.2 Safari/537.36
# Peer agent string for BitTorrent (mimics qBittorrent v4.1.9)
peer-agent=qBittorrent v4.1.9
# Peer ID prefix for BitTorrent (matches qBittorrent v4.1.9)
peer-id-prefix=-qB4190-
# Seed until the share ratio reaches 1.0 (1:1 upload/download ratio)
seed-ratio=1.0
# No time limit for seeding (0 means unlimited)
seed-time=0
# Save torrent metadata as .torrent files
bt-save-metadata=true
# Load saved metadata from previous downloads
bt-load-saved-metadata=true
# Remove unselected files in multi-file torrents after download completes
bt-remove-unselected-file=true
# List of BitTorrent trackers for improved peer discovery (comma-separated)
bt-tracker=http://1337.abcvg.info:80/announce,http://bt.okmp3.ru:2710/announce,http://bz.tracker.bz:80/announce,http://fxtt.ru:80/announce,http://nyaa.tracker.wf:7777/announce,http://open-v6.demonoid.ch:6969/announce,http://open.acgnxtracker.com:80/announce,udp://open.tracker.ink:6969/announce,http://p2p.0g.cx:6969/announce,http://parag.rs:6969/announce,http://share.camoe.cn:8080/announce,http://t.acg.rip:6699/announce,udp://tracker.opentrackr.org:1337/announce,https://tracker2.ctix.cn:443/announce,https://tracker1.520.jp:443/announce,http://tracker.opentrackr.org:1337/announce,udp://open.tracker.cl:1337/announce,udp://opentracker.i2p.rocks:6969/announce,udp://open.demonii.com:1337/announce
About Aria2
Aria2 is a lightweight, open-source, multi-protocol download tool that supports various operating systems (e.g., Windows, Mac, Linux) and operates via the command line. It supports protocols like HTTP/HTTPS, FTP, SFTP, BitTorrent, and Metalink, allowing simultaneous downloads from multiple sources to maximize bandwidth usage. Key features include low resource usage (typically just a few MB of memory), multi-threaded downloads, resumable downloads, and support for magnet links and torrent files. Additionally, Aria2 offers built-in JSON-RPC and XML-RPC interfaces, enabling remote management through web interfaces (e.g., AriaNg) or scripts. Thanks to its high customizability and robust functionality, Aria2 is widely used on personal computers, NAS devices, routers, and even Raspberry Pi systems, making it a top choice for tech enthusiasts and advanced users.
Recommended iOS App
If you’re using an Apple device, you can install NeoAria2 for remote management of Aria2.