Hi Everyone,
I post this tutorial because I found the infos regarding the subject too scattered on the net. Some of the info is not even out there or not easy to find at all.
I hope you will find this helpful.
Feel free to comment if there is anyhing important to add.
In order to succcesfully set up the router and SSD for Transmission remote you need to have the followings as minimum:
My setup:
Router: ASUS TUF Gaming AX5400 (router)
https://www.asus.com/networking-iot-servers/wifi-routers/asus-gaming-routers/tuf-gaming-ax5400/
Firmware: GNUton’s ASUS Merlin, Release: 388.1_0-gnuton1, TUF-AX5400_388.1_0-gnuton1_tuf_puresqubi.w 48.6 MB
https://github.com/gnuton/asuswrt-merlin.ng/releases/
Storage connected to the USB 3.0 of the router:
SSD Patriot P210 512GB
SSD rack:
Gembird E2-U3S-6 USB3.1 Enclosure Aluminum with USB Type-C Black
(I have tried the AXAGON EE25-XA6 ALINE but the reading/writing was stopped after 200MB.
ref.: https://www.snbforums.com/threads/b...ning-qbittorrent-on-an-ssd.82538/#post-819874)
Prepare the SSD:
Make two partition:
(I have used: AOMEI Partition Assistant Standard 9.13.0,
https://www.diskpart.com/free-partition-manager.html)
1. type: ext4, label:e4, size: 9GB,
2. type: ntfs, label:nt, size: the rest of the SSD
Format them.
Connect the SSD to the router.
Router settings:
Administration -> System tab
Format JFFS partition at next boot: Yes
Enable JFFS custom scripts and conscripts: Yes
Enable SSH: LAN & WAN
SSH Port: 22
Click on Apply
WAN -> DDNS tab
Enable the DDNS Client: Yes
Server: www.asus.com,
Host Name: unique_name_not_used
Click on Register
Free Certificate from Let’s Encrypt: Yes
Click on Apply
Reboot the router (small gray gear icon in the top right corner next to the USB icon)
SSH to the router:
Use PuTTY to ssh to the router (https://www.putty.org/)
Create connection:
Saved Sessions: tuf,
Host Name (or IP address): unique_name_not_used.asuscomm.com,
Port:22
Connection type: SSH
Click Save and then Connect button (nex time you can Load this settings)
(username and password is the one you created to access the router settings menu)
Install Entware:
Make sure we have the required partitions mounted:
There should be two folders: e4 and nt
Choose a team with colors you can see clearly i.e.: 8
Create a swap file:
i -> sw -> follow instruction to create 2GB swap file on the e4 partition
Install Entware:
i -> ep -> follow instructions to install Entware
Setup Transmission:
Create the required directories on nt partition:
Make the required directories, torrent download directory, incomplete directory, watch directory:
Install nano the text editor:
Install Transmission packages:
Stop transmission to avoid rewriting conf. file:
Edit conf. file:
(if it doesn’t work with -w then leave this option out, ref.: https://www.nano-editor.org/dist/latest/nano.html)
adjust the followings:
(Your password will be hashed the first time Transmission runs, so make sure you note it somewhere for yourself.)
Ctrl+o -> enter -> Ctrl+x
Create init-start script for some memory tweaks:
Copy & Paste the following four lines(ctrl+c and in the PuTTY terminal right mouse click):
Ctrl+o -> enter -> Ctrl+x
Make the script executable:
Make Transmission accessible from WAN i.e. from other networks (Create firewall script on the /jffs partition to open the 9091 and 51413 port):
Copy & Paste the following four lines(ctrl+c and in the PuTTY terminal right mouse click):
Ctrl+o -> enter -> Ctrl+x
Make the script executable:
Apply the firewall rules:
Using Transmission:
To start Transmission:
Access the web GUI from internet browser:
http://<Your device IP or your DDNS created above>:9091/
(i.e. http://unique_name_not_used.asuscomm.com:9091/)
Android app:
There are several apps, I use Transmission Remote (by Yury Polek)
Trouble shooting options:
Try to install Download Master and remove it before installing Entware.
If something went wrong but no clue and surely followed the instruction above try to format the /jffs partition from the router
(Administration -> System tab, Format JFFS partition at next boot: Yes) and start from there.
useful links:
I post this tutorial because I found the infos regarding the subject too scattered on the net. Some of the info is not even out there or not easy to find at all.
I hope you will find this helpful.
Feel free to comment if there is anyhing important to add.
In order to succcesfully set up the router and SSD for Transmission remote you need to have the followings as minimum:
- You have to have Public IP Address
- Router should be in PPoE mode
My setup:
Router: ASUS TUF Gaming AX5400 (router)
https://www.asus.com/networking-iot-servers/wifi-routers/asus-gaming-routers/tuf-gaming-ax5400/
Firmware: GNUton’s ASUS Merlin, Release: 388.1_0-gnuton1, TUF-AX5400_388.1_0-gnuton1_tuf_puresqubi.w 48.6 MB
https://github.com/gnuton/asuswrt-merlin.ng/releases/
Storage connected to the USB 3.0 of the router:
SSD Patriot P210 512GB
SSD rack:
Gembird E2-U3S-6 USB3.1 Enclosure Aluminum with USB Type-C Black
(I have tried the AXAGON EE25-XA6 ALINE but the reading/writing was stopped after 200MB.
ref.: https://www.snbforums.com/threads/b...ning-qbittorrent-on-an-ssd.82538/#post-819874)
Prepare the SSD:
Make two partition:
(I have used: AOMEI Partition Assistant Standard 9.13.0,
https://www.diskpart.com/free-partition-manager.html)
1. type: ext4, label:e4, size: 9GB,
2. type: ntfs, label:nt, size: the rest of the SSD
Format them.
Connect the SSD to the router.
Router settings:
Administration -> System tab
Format JFFS partition at next boot: Yes
Enable JFFS custom scripts and conscripts: Yes
Enable SSH: LAN & WAN
SSH Port: 22
Click on Apply
WAN -> DDNS tab
Enable the DDNS Client: Yes
Server: www.asus.com,
Host Name: unique_name_not_used
Click on Register
Free Certificate from Let’s Encrypt: Yes
Click on Apply
Reboot the router (small gray gear icon in the top right corner next to the USB icon)
SSH to the router:
Use PuTTY to ssh to the router (https://www.putty.org/)
Create connection:
Saved Sessions: tuf,
Host Name (or IP address): unique_name_not_used.asuscomm.com,
Port:22
Connection type: SSH
Click Save and then Connect button (nex time you can Load this settings)
(username and password is the one you created to access the router settings menu)
Install Entware:
Make sure we have the required partitions mounted:
Code:
ls /tmp/mnt
Code:
amtm
Create a swap file:
i -> sw -> follow instruction to create 2GB swap file on the e4 partition
Install Entware:
i -> ep -> follow instructions to install Entware
Setup Transmission:
Create the required directories on nt partition:
Make the required directories, torrent download directory, incomplete directory, watch directory:
Code:
mkdir /tmp/mnt/nt/tr
mkdir /tmp/mnt/nt/tr/0i
mkdir /tmp/mnt/nt/tr/0w
Code:
opkg install nano
Code:
opkg install transmission-web transmission-daemon-openssl transmission-remote-openssl
Code:
/opt/etc/init.d/S88transmission stop
Code:
nano -w /opt/etc/transmission/settings.json
adjust the followings:
Code:
"download-dir": "/tmp/mnt/nt/tr",
"incomplete-dir": "/tmp/mnt/nt/tr/0i",
"peer-port": 51413,
"rpc-authentication-required": true,
"rpc-enabled": true,
"rpc-username": "admin",
"rpc-password": "yourpassword",
"rpc-port": 9091,
"watch-dir": "/tmp/mnt/nt/tr/0w",
Ctrl+o -> enter -> Ctrl+x
Create init-start script for some memory tweaks:
Code:
nano /jffs/scripts/init-start
Code:
#!/bin/sh
echo 524288 > /proc/sys/net/core/rmem_max
echo 524288 > /proc/sys/net/core/wmem_max
echo 8192 > /proc/sys/vm/min_free_kbytes
Make the script executable:
Code:
chmod a+rx /jffs/scripts/*
Code:
nano /jffs/scripts/firewall-start
Code:
#!/bin/sh
iptables -I INPUT -p tcp --destination-port 9091 -j ACCEPT
iptables -I INPUT -p tcp --destination-port 51413 -j ACCEPT
iptables -I INPUT -p udp --destination-port 51413 -j ACCEPT
Make the script executable:
Code:
chmod a+rx /jffs/scripts/*
Code:
sh /jffs/scripts/firewall-start
Using Transmission:
To start Transmission:
Code:
/opt/etc/init.d/S88transmission start
Access the web GUI from internet browser:
http://<Your device IP or your DDNS created above>:9091/
(i.e. http://unique_name_not_used.asuscomm.com:9091/)
Android app:
There are several apps, I use Transmission Remote (by Yury Polek)
Trouble shooting options:
Try to install Download Master and remove it before installing Entware.
If something went wrong but no clue and surely followed the instruction above try to format the /jffs partition from the router
(Administration -> System tab, Format JFFS partition at next boot: Yes) and start from there.
useful links: