Back to Home

Aria2C + OpenWRT

OpenWRT · Aria2c

Aria2C + OpenWRT

  • Tutorial
    Have a nice day. Today there is a need to remotely download a couple of files to the router. I decided to share how I decided this question. Of course, you can use the usual wget by going to the router via ssh, but somehow it is not convenient. Googling found under OpenWRT only Aria2C , of course, maybe I was looking badly, if you suggest more options, I will only be glad. It fits all my criteria, plus a nice bonus: it also downloads torrents and ftp just as easily. The only drawback is that there is no web interface, but this drawback is easily fixed. Although for the test, you can go the other way about this a little later. In general, all interested please under cat

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.conf
in /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.

Read Next