What is wrong with my aria2.conf?

Hello folks,
Trying to figure out how to use aria2 as the main downloading tool. Following some instructions available on internet, I have these lines in ~/.aria2/aria2.conf. When I run aria2c command the message is No files to download. Downloading via http links works ok when/if I remove the aria2.conf file. The thing is, I need to config aria2 to fetch things via magnet or bt links. So, some help with the config file is appreciated.
Code:
log=aria2.log
log-level=error

dir=~/Downloads
disk-cache=32M
file-allocation=falloc
continue=true

max-concurrent-downloads=3
max-connection-per-server=5
min-split-size=10M
split=5
#max-overall-download-limit=0
max-download-limit=0
max-overall-upload-limit=1M
#max-upload-limit=0
disable-ipv6=true

input-file=/home/bxbzq/.aria2/aria2.session
save-session=/home/bxbzq/.aria2/aria2.session
save-session-interval=60

#enable-rpc=true
#rpc-allow-origin-all=true
#rpc-listen-all=true
#event-poll=select
#rpc-listen-port=6800
#rpc-secret=<TOKEN>
#rpc-user=<USER>
#rpc-passwd=<PASSWD>#event-poll=select


follow-torrent=true
listen-port=51413-52333
bt-max-peers=0
enable-dht=true
enable-dht6=true
dht-listen-port=6881-6999
dht-file-path=~/.aria2/dht.dat
#bt-enable-lpd=false
enable-peer-exchange=true
bt-request-peer-speed-limit=50M
peer-id-prefix=-UT3500-
user-agent=uTorrent/3500(43580)
seed-ratio=0
seed-time=0
force-save=true
#bt-hash-check-seed=true
bt-seed-unverified=true
#bt-save-metadata=falseenable-peer-exchange=true
bt-seed-unverified=true
bt-remove-unselected-file=true

bt-tracker=http://1337.abcvg.info:80/announce,http://bt.okmp3.ru:2710/announce,http://bvarf.tracker.sh:2086/announce,http://nyaa.tracker.wf:7777/announce,http://open.acgnxtracker.com:80/announce,http://share.camoe.cn:8080/announce,http://t.nyaatracker.com:80/announce,http://torrentsmd.com:8080/announce,http://tracker.bt4g.com:2095/announce,http://tracker.electro-torrent.pl:80/announce,http://tracker.files.fm:6969/announce,http://tracker.gbitt.info:80/announce,http://tracker.ipv6tracker.ru:80/announce,http://tracker.nartlof.com.br:6969/announce,http://tracker.renfei.net:8080/announce,http://tracker.tfile.co:80/announce,http://v6-tracker.0g.cx:6969/announce,http://www.all4nothin.net:80/announce.php,http://www.wareztorrent.com:80/announce,https://1337.abcvg.info:443/announce,https://t1.hloli.org:443/announce,https://tr.burnabyhighstar.com:443/announce,https://tracker.gbitt.info:443/announce,https://tracker.kuroy.me:443/announce,https://tracker.lilithraws.cf:443/announce,https://tracker.lilithraws.org:443/announce,https://tracker.loligirl.cn:443/announce,https://tracker.tamersunion.org:443/announce,https://tracker.yemekyedim.com:443/announce,https://tracker1.520.jp:443/announce,https://trackers.mlsub.net:443/announce,https://www.peckservers.com:9443/announce,udp://api.alarmasqueretaro.com:3074/announce,udp://bt.ktrackers.com:6666/announce,udp://d40969.acod.regrucolo.ru:6969/announce,udp://ec2-18-191-163-220.us-east-2.compute.amazonaws.com:6969/announce,udp://exodus.desync.com:6969/announce,udp://ipv6.fuuuuuck.com:6969/announce,udp://moonburrow.club:6969/announce,udp://movies.zsw.ca:6969/announce,udp://new-line.net:6969/announce,udp://ns1.monolithindustries.com:6969/announce,udp://odd-hd.fr:6969/announce,udp://oh.fuuuuuck.com:6969/announce,udp://open.demonii.com:1337/announce,udp://open.stealth.si:80/announce,udp://open.tracker.ink:6969/announce,udp://opentor.org:2710/announce,udp://opentracker.io:6969/announce,udp://p4p.arenabg.com:1337/announce,udp://retracker.hotplug.ru:2710/announce,udp://retracker.lanta.me:2710/announce,udp://retracker01-msk-virt.corbina.net:80/announce,udp://sabross.xyz:6969/announce,udp://thetracker.org:80/announce,udp://tracker-udp.gbitt.info:80/announce,udp://tracker.0x7c0.com:6969/announce,udp://tracker.cyberia.is:6969/announce,udp://tracker.dler.com:6969/announce,udp://tracker.doko.moe:6969/announce,udp://tracker.edkj.club:6969/announce,udp://tracker.filemail.com:6969/announce,udp://tracker.fnix.net:6969/announce,udp://tracker.mirrorbay.org:6969/announce,udp://tracker.moeking.me:6969/announce,udp://tracker.openbittorrent.com:6969/announce,udp://tracker.opentrackr.org:1337/announce,udp://tracker.skynetcloud.site:6969/announce,udp://tracker.skyts.net:6969/announce,udp://tracker.srv00.com:6969/announce,udp://tracker.t-rb.org:6969/announce,udp://tracker.theoks.net:6969/announce,udp://tracker.therarbg.com:6969/announce,udp://tracker.tiny-vps.com:6969/announce,udp://tracker.torrent.eu.org:451/announce,udp://tracker.torrust-demo.com:6969/announce,udp://tracker.tryhackx.org:6969/announce,udp://tracker1.bt.moack.co.kr:80/announce,udp://tracker2.dler.com:80/announce,udp://tracker3.itzmx.com:6961/announce,udp://ttk2.nbaonlineservice.com:6969/announce,udp://u4.trakx.crim.ist:1337/announce,udp://u6.trakx.crim.ist:1337/announce,udp://uploads.gamecoast.net:6969/announce,udp://www.torrent.eu.org:451/announce,udp://y.paranoid.agency:6969/announce,wss://tracker.openwebtorrent.com:443/announce,
 
You can also use aria2c as an external downloader for yt-dlp

yt-dlp config location

Code:
~/.config/yt-dlp/config

yt-dlp config

Code:
# external downloader aria2
--downloader aria2c --downloader-args aria2c:'-c -j 3 -x 3 -s 3 -k 1M'

# native downloader for dash and m3u8
--downloader 'dash,m3u8:native'

# restrict filenames
--restrict-filenames

# merge output format mkv
--merge-output-format mkv
 
You can also use aria2c as an external downloader for yt-dlp

yt-dlp config location

Code:
~/.config/yt-dlp/config

yt-dlp config

Code:
# external downloader aria2
--downloader aria2c --downloader-args aria2c:'-c -j 3 -x 3 -s 3 -k 1M'

# native downloader for dash and m3u8
--downloader 'dash,m3u8:native'

# restrict filenames
--restrict-filenames

# merge output format mkv
--merge-output-format mkv
Nice. And twitter?
 
Hi,
How do I make pf allow aria2 pass through? I suspect it's pf that is blocking aria2 on one of my old FBSD workstation.
 
Heres my pf

ports 6881 and 6882 open for bittorrent


and my aria2.conf


and aria2 set to use those ports

Code:
# Bit Torrent: ports and protocols used for bit torrent TCP and UDP
# connections. Make sure DHT is enabled in order to connect to UDP trackers as
# well as negotiating with DHT and PEX peers.
 dht-listen-port=6882
 enable-dht=true
 enable-peer-exchange=true
 listen-port=6881
 
Doesn't work. In order for aria2 to download via a magnet link, I have to stop pf service.
My /etc/pf.conf as following:
ext_if = "re0"
#int_if = "re1"
#localnet = $int_if:network
fsvr_int = "192.168.1.254"
fsvr_ext = $ext_if
wkst1_int = "192.168.1.96"
wkst1_ext = $ext_if
wkst2_int = "192.168.1.98"
wkst2_ext = $ext_if
wkst3_int = "192.168.1.99"
wkst3_ext = $ext_if
#bsd_dsktp_int = "192.168.1.151"
#bsd_dsktp_ext = $ext_if
client_out = "{ ssh, domain, ntp, http, https }"
tcp_services = "{ ntp, 6881 }" # tcp services - torrent
udp_services = "{ ntp, 6882 }" # udp services - torrent
icmp_types = "{ echoreq, unreach }"
table <bruteforce> persist
table <rfc6890> { 0.0.0.0/8 10.0.0.0/8 100.64.0.0/10 127.0.0.0/8 169.254.0.0/16 \
172.16.0.0/12 192.0.0.0/24 192.0.0.0/29 192.0.2.0/24 192.88.99.0/24 \
192.168.0.0/16 198.18.0.0/15 198.51.100.0/24 203.0.113.0/24 \
240.0.0.0/4 255.255.255.255/32 }
set skip on lo0
set block-policy return
set loginterface $ext_if
scrub in all fragment reassemble max-mss 1440
#nat on $ext_if from $localnet to any -> ($ext_if)
rdr on $ext_if proto tcp from any to $ext_if port 9990 -> $fsvr_int port 22
#rdr on $ext_if proto tcp from any to $ext_if port 9992 -> $bsd_dsktp_int port 22
rdr on $ext_if proto tcp from any to $ext_if port 9996 -> $wkst1_int port 3389
rdr on $ext_if proto tcp from any to $ext_if port 9998 -> $wkst2_int port 3389
rdr on $ext_if proto tcp from any to $ext_if port 9999 -> $wkst3_int port 3389
antispoof quick for $ext_if
pass in quick from $fsvr_int
block in quick on egress from <rfc6890>
block return out quick on egress to <rfc6890>
block all
#pass from { lo0, $localnet } to any keep state
anchor "blacklistd/*" in on $ext_if
#anchor blocked_hosts
#load anchor blocked_hosts from "/etc/blocked-hosts-anchor"
#pass in quick from $fsvr_int
pass in on $ext_if proto tcp to port { ssh, 3389 } \
keep state (max-src-conn 5, max-src-conn-rate 3/1, \
overload <bruteforce> flush global)
pass out proto { tcp, udp } to port { 22, 53, 80, 123, 139, 443, 445, 3389 }
pass out inet proto icmp icmp-type $icmp_types
#pass inet proto tcp from $localnet to any port $client_out \
flags S/SA keep state

table <sshguard> persist
block in quick on $ext_if from <sshguard> label "SSH Guard"
 
Back
Top