Aria2C + OpenWRT
- Tutorial
Installation
The installation itself is extremely simple, literally in two commands
opkg update
opkg install aria2c
Customization
Create a file with server settings
mkdir / etc / aria2
touch /etc/aria2/aria2.conf
Let's edit it with any editor convenient for you
nano /etc/aria2/aria2.conf
For example, my file
daemon
allow-overwrite = false
check-certificate = false
auto-file-renaming = false
dir = / home
enable-rpc = true
rpc-listen-port = 6800
rpc-listen-all = true
rpc-user = test
rpc-passwd = test
file-allocation = none
enable-dht = false
disable-ipv6 = true
max-download-limit = 1500K
max-overall-download-limit = 1500K
log = / etc / aria2 / aria2.log
log-level = warn
auto-save -interval = 30
save-session = / etc / aria2 / aria2.sav
All settings are intuitive, for explanations and additional settings you can refer to the documentation , even in Russian.
There was no time to write the startup script, so for now it cost a simple command to start
aria2c --conf-path = / etc / aria2 / aria2.confin /etc/rc.local
For remote control, you can assign any port, the main thing is not to forget to forward it, how to do it can be read here .
Everything can be checked.
Check
To manage all this, there is a ready-made program for Windows, you can get it here , but unfortunately I have Ubuntu so I had to look for another way. It was also found quickly, it’s a very convenient and nice web muzzle, it can be downloaded here and put directly on the router, but in my opinion this action is superfluous so as not to load the router more than once, for this there is a direct link on the developers website here it is . After downloading, go to the settings and drive the external ip of your router and port, that's all, good downloads.
PS wrote the topic at work in his spare time, do not kick much for errors.