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