What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Aria2 install manual

I installed and started this manager.But not working download.Web interface when loged is empty.What is bad?I installed only aria2 with putty.Change password and download directory to mnt/sda1/Downloads
 
Last edited:
Did you open the right ports?

http://aria2.sourceforge.net/manual/en/html/aria2c.html#files

According to the sample configs you would need to add this to the /jffs/scripts/firewall-start script:

iptables -I INPUT -p tcp --destination-port 60000 -j ACCEPT
iptables -I INPUT -p udp --destination-port 60000 -j ACCEPT

Change 60000 to what ever port you specified in the Aria2 config file.
 
Last edited:
Using Aria2 download manager

Prerequisites
asuswrt-merlin firmware on board and a USB drive with an Entware installation.

1. Installation
Install aria2 package:
Code:
opkg install aria2

2.Configuration
Edit /opt/etc/aria.conf file, at least, two lines must be changed:
Code:
dir=/opt/var/aria2/torrents
…
rpc-secret=Passw0rd
The first one is a folder where torrent content will be placed, the second one is a web-interface password.

Now, create /jffs/scripts/firewall-start file with the following content:
Code:
#!/bin/sh
iptables -I INPUT -p tcp -m tcp --dport 6800:6801 -j ACCEPT
iptables -I INPUT -p udp -m udp --dport 6801 -j ACCEPT
and make it executable:
Code:
chmod +x /jffs/scripts/firewall-start
That's all, reboot router and pick one of web interfaces.

3. Using web interface.
You don't need to place WebUI files into router, pick webui-aria2 or yaaw. I prefer the last one. Configure WebUI with following string:
Code:
http://token:[COLOR="Red"]Passw0rd[/COLOR]@[COLOR="Red"]111.222.111.222[/COLOR]:6800/jsonrpc
where "Passw0rd" is a keyword from /opt/etc/aria.conf file and "111.222.111.222" is an IP address of the router.


rt-n66u.jpg



Pro:
  • Supports HTTP(S), FTP, BitTorrent, and Metalink.
  • Small and fast, easy to use.
  • Do not requires a web server for WebUI.

Contra:
  • uTP is not supported.
  • no day/night scheduler.
 
Last edited:
Securing connection between aria2 and browser

This is an option part.

While using WebUI, our browser is "talking" with Aria2 via HTTP protocol. There is a way to secure this connection by using HTTPS.

1. Create certificate
openssl utility comes form asuswrt-merlin firmware. Please, leave "Password" field empty when it's prompted:
Code:
cd /opt/var/aria2
openssl req -x509 -nodes -days 3650 -newkey rsa:1024 -keyout aria2.pem -out aria2.pem
openssl pkcs12 -export -out aria2.pfx -in aria2.pem -name "Aria2 Certificate"

2. Edit Aria2 configuration file
Uncomment following lines in /opt/etc/aria2.conf:
Code:
rpc-certificate=/opt/var/aria2/aria2.pfx
rpc-secure=true

3. Edit WebUI settings
Reboot router or restart Aria2 manually:
Code:
/opt/etc/init.d/S81aria2 restart

If you are using yaaw, edit connection string by adding "s" after "http":
Code:
http[COLOR="Red"]s[/COLOR]://token:Passw0rd@111.222.111.222:6800/jsonrpc


PS Firefox denies to use self-signed certificate, you have to add it to the trusted list. Point browser to
Code:
https://111.222.111.222:6800/jsonrpc
and click "add this site to trusted, permanently".
 
Last edited:

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top