RT-N16 Wifi Router Running TomatoUSB Firmware

Recently upgraded my Wifi router to Asus RT-N16. The tech specs are follows:

wireless N, throughput of 300Mbps , 3 x external antenna , 2.4~2.5 GHz
Output power

n mode: 15.8~19.5dBm
* g mode: 15.5~16.5dBm
* b mode: 15.8~19.5dBm
4 x giga port ethernet , WAN x 1, LAN x 4 RJ-45 for 10/100/1000 Base-T, Supports Ethernet and 802.3 with max. bit rate 10/100/1000 Mbps and auto cross-over function (MDI-X)

2 x usb ports ( hdd / mem stick / print server )

CPU: Broadcom BCM4718 533MHZ
RAM: 128MB (2x 64MB)
ROM: 32MB
ETH: 4x GIGABIT (LAN) 1x GIGABIT (WAN)
USB Ports: 2
Wireless N 2.4 gig

Updates the Router firmware to TomatoUSB.

http://tomatousb.org/tut:installing-on-asus-rt-n16

Now I have complete control over the router. Have access to root shell and several popular Linux packages( Perl,Ruby,Python,curl…name anything 🙂 ) is available via Optware

http://www.dd-wrt.com/wiki/index.php/Optware

What is that I gain from it right away:

  1.  Running Transmission Bittorrent Client. It’s a simple and lightweight Bittorrent client that has a Web interface. Now the torrent can be downloaded and scheduled from any machine on the network. The router downloads it to the connected USB drive without a need for PC to running 24×7 !
  2. Second advantage is auto login to Reliance broadband. Reliance BB has an annoying Web based authentication even on a unlimited connections. We can not use the net unless the form is submitted with username and password. This makes connecting to the Wifi router via mobile phones / or use a non browser based apps roundabout process. With libcurl installed( thanks to optware) this is automated with router startup and scheduling every 12 hours( as they have 24 hours session limit)

Find a sample ssh screenshot to the router:

As requested following is the script that I use for reliance auto login. Optware libcurl needs  to be installed first.

curl -A "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 GTB6 (.NET CLR 3.5.30729)" --referer "http://www.reliancebroadband.co.in/reliance/login.do" --cookie-jar /tmp/mnt/FLASH/tomato/reliance/relcookie "http://www.reliancebroadband.co.in/reliance/login.do" --connect-timeout 15 --max-time 20 --retry 2 --retry-delay 5
curl -A "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 GTB6 (.NET CLR 3.5.30729)" --referer "http://www.reliancebroadband.co.in/reliance/login.do" --cookie /tmp/mnt/FLASH/tomato/reliance/relcookie --data "userId=3432432444&password=paswd" "http://www.reliancebroadband.co.in/reliance/login.do?action=doLoginSubmit" --connect-timeout 15 --max-time 20 --retry 2 --retry-delay 5

  • Lenin Raj Rajasekaran

    You didnt mention the price? From where did you get it? Mercy electricals?

    • Bought it for Rs6000( three months back) at Delta Peripherals – Ritchie Street.

  • rishi

    Hi Krish,
    Can you share the script of auto web login on reliance broadband using router linksys wrt54g flashed with tomato (non usb). Thanks in advance.

    • Here is the script: You need to change the file system dir as per the location you placed the script.

      curl -A “User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 GTB6 (.NET CLR 3.5.30729)” –referer “http://www.reliancebroadband.co.in/reliance/login.do” –cookie-jar /tmp/mnt/FLASH/tomato/reliance/relcookie “http://www.reliancebroadband.co.in/reliance/login.do” –connect-timeout 15 –max-time 20 –retry 2 –retry-delay 5 > /mnt/FLASH/tomato/reliance/rel.htmlcurl -A “User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 GTB6 (.NET CLR 3.5.30729)” –referer “http://www.reliancebroadband.co.in/reliance/login.do” –cookie /tmp/mnt/FLASH/tomato/reliance/relcookie –data “userId=396711216951&password=04442660426” “http://www.reliancebroadband.co.in/reliance/login.do?action=doLoginSubmit” –connect-timeout 15 –max-time 20 –retry 2 –retry-delay 5 –trace-ascii debugdump.txt >>/tmp/mnt/FLASH/tomato/reliance/rel.html

  • rishi

    Thanks for the script.

    Just to remind you I am doing this on tomato NON USB, so i don’t think there is enough space on jffs2 to install optware libcurl or is there any other way to install?

    So is it possible to write above script using telnet or any cru commands that could be done without installing any package.

  • rishi

    Thanks for your reply. In tomaot Overview there is about 5Mb out of 14Mb of free space left but JFFS has 700kb out of 1Mb left. I tried to format JFFS but still the free space is same at 700Kb. Do you know why. Is this enough to install the curl ?

    • Sorry for the late reply.

      I am not sure why it shows very little space. I know the libcurl is a small package. Not sure how much it will be with any dependency it might have. Why not you try installing and see for yourself. Share the results 🙂

  • rishi

    Thanks for the reply. I tried but not possible to install within 700Kb.
    See this http://tinypic.com/r/sfwlck/7 for the error message which says no space left.

  • Nick

    I have just bought the N16 and i have reliance connection. currently running on Shibbys mod.

    can you guide me how to install Optware and libcurl ? Thanks