国内下载 BT 挺麻烦的,好在可以“应用层翻墙”。

即不直接使用代理隧道,而是在应用层面“代理”,比如用服务器下载一个文件,之后再用 https 常规方法下载。

Rclone 又更进一步,可以避免连接不稳定,导致下了一半的文件废掉。

Caddyfile

搭建 caddy。

1
2
3
4
5
6
7
8
9
10
11
example.domain {
root /
browse /
basicauth admin passwordx
gzip
}
example2.domain {
proxy / localhost:6800 {
transparent
}
}

Aria2c

安装后,

1
nohup aria2c -d /root/stuff/ --check-integrity=true --max-connection-per-server=16 --min-split-size=1048577 --listen-port=23423 --dht-listen-port=28432 --enable-dht6=true --bt-max-peers=0 --bt-request-peer-speed-limit=100M --bt-tracker="udp://tracker.coppersurfer.tk:6969/announce,udp://tracker.leechers-paradise.org:6969/announce,udp://9.rarbg.to:2710/announce,udp://9.rarbg.me:2710/announce,udp://tracker.opentrackr.org:1337/announce,udp://tracker.internetwarriors.net:1337/announce,udp://exodus.desync.com:6969/announce,udp://tracker.tiny-vps.com:6969/announce,udp://retracker.lanta-net.ru:2710/announce,udp://open.demonii.si:1337/announce,udp://tracker.torrent.eu.org:451/announce,udp://torrentclub.tech:6969/announce,udp://open.stealth.si:80/announce,udp://denis.stalker.upeer.me:6969/announce,udp://tracker.cyberia.is:6969/announce,udp://tracker.moeking.me:6969/announce,udp://ipv4.tracker.harry.lu:80/announce,udp://tracker.openbittorrent.com:80/announce,udp://tracker3.itzmx.com:6961/announce,udp://explodie.org:6969/announce,udp://valakas.rollo.dnsabr.com:2710/announce,udp://tracker.yoshi210.com:6969/announce,udp://tracker.uw0.xyz:6969/announce,udp://tracker.nyaa.uk:6969/announce,udp://tracker.iamhansen.xyz:2000/announce,udp://tracker.ds.is:6969/announce,udp://tracker-udp.gbitt.info:80/announce,udp://retracker.netbynet.ru:2710/announce,udp://retracker.akado-ural.ru:80/announce,udp://opentor.org:2710/announce,udp://bt2.archive.org:6969/announce,http://tracker.bt4g.com:2095/announce,http://h4.trakx.nibba.trade:80/announce,udp://xxxtor.com:2710/announce,udp://tracker.nextrp.ru:6969/announce,udp://tracker.msm8916.com:6969/announce,udp://tracker.filepit.to:6969/announce,udp://bt1.archive.org:6969/announce,https://tracker.fastdownload.xyz:443/announce,https://opentracker.xyz:443/announce,https://opentracker.co:443/announce,http://opentracker.xyz:80/announce,http://open.trackerlist.xyz:80/announce,udp://zephir.monocul.us:6969/announce,udp://tracker.filemail.com:6969/announce,udp://tracker.dler.org:6969/announce,udp://retracker.sevstar.net:2710/announce,udp://amigacity.xyz:6969/announce,https://tracker.nanoha.org:443/announce,https://tracker.lelux.fi:443/announce,https://tracker.hama3.net:443/announce,http://www.proxmox.com:6969/announce,http://tracker.tvunderground.org.ru:3218/announce,http://tracker.opentrackr.org:1337/announce,http://tracker.lelux.fi:80/announce,http://torrentclub.tech:6969/announce,http://t.nyaatracker.com:80/announce,http://retracker.sevstar.net:2710/announce,http://explodie.org:6969/announce,udp://tracker4.itzmx.com:2710/announce,udp://tracker2.itzmx.com:6961/announce,udp://tr.bangumi.moe:6969/announce,udp://chihaya.toss.li:9696/announce,udp://bt2.54new.com:8080/announce,https://tracker.vectahosting.eu:2053/announce,https://tracker.publictorrent.net:443/announce,https://tracker.gbitt.info:443/announce,https://opentracker.acgnx.se:443/announce,https://1337.abcvg.info:443/announce,http://www.loushao.net:8080/announce,http://vps02.net.orel.ru:80/announce,http://tracker4.itzmx.com:2710/announce,http://tracker3.itzmx.com:6961/announce,http://tracker2.itzmx.com:6961/announce,http://tracker1.itzmx.com:8080/announce,http://tracker01.loveapp.com:6789/announce,http://tracker.yoshi210.com:6969/announce,http://tracker.torrentyorg.pl:80/announce,http://tracker.publictorrent.net:80/announce,http://tracker.gbitt.info:80/announce,http://tracker.bz:80/announce,http://sukebei.tracker.wf:8888/announce,http://opentracker.acgnx.se:80/announce,http://open.acgnxtracker.com:80/announce,http://mail2.zelenaya.net:80/announce,http://bt2.54new.com:8080/announce,http://bt-tracker.gamexp.ru:2710/announce,http://acg.rip:6699/announce," --enable-rpc=true --rpc-allow-origin-all=true --rpc-secret=<TOKEN>  -D >/dev/null 2>&1

Firefox 的 Aria 插件

https://addons.mozilla.org/firefox/addon/aria2-integration

注意 rpc 的域名是example2.domain,端口设为443,协议https

Rclone

1
rclone config

配置 rclone 后,测试一下,rclone ls name:/

下载

aria 上下载完之后,用 rclone 同步到本地。

有两种方式,sync 和 copy。

sync 会删除本地文件,所以说除非目标文件夹是空的,还是用 copy 为好。

1
sudo rclone sync "blurhy:/sourceDir/" /mnt/d/someFolder/ -P --create-empty-src-dirs  --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0" --use-cookies --transfers 2