Showing posts with label Gargoyle. Show all posts
Showing posts with label Gargoyle. Show all posts

Wednesday, January 26, 2011

Good Small Business Router

Since I really like the Gargoyle firmware and used it on my WRT54GL I wondered if there was a better quality hardware to use with this firmware to get a better performance and even good enough for small business use.

The answer is yes there is plenty of hardware choice when it comes to this (and many other) open source firmware that matches if not surpasses the quality of competing brands such as snapgear and sonicwall firewalls.

Buffalo WZR-HP-G300NH can be widely found (amazon shipped fast) and fairly cheap for the hardware you get. Note you even get a community firmware with the router already (dd-wrt.com) but I preferred the gargoyle firmware for many reasons (easy interface + great features) so I wanted to upgrade it but it turns out you will need to do a few tricks to get it on this one!

There's a choice of two possible ways to upgrade, using tftp (the method I used) and some other command line method. I normally like the command line but these were new commands to me so I tried the TFTP method and after about 30minutes to an hour I got it! Here's my definitive guide to get it:

1. it is recommended that you connect to the router through a switch (or a router with dhcp turned off - turning it into a switch) this is necessary step for me since my NIC will be turned off until the right upgrade moment has passed.

2. once connected through a switch I played with the arp command on my windows xp PC and figured out that the easiest is to simply do arp -a and copy the mac of your router (for this example purposes I will use 00-23-69-25-aa-aa)

3. now you prepare the arp command in this cmd window while opening another cmd window for tftp. arp -s 192.168.11.1 00-23-69-25-aa-aa is your command that you keep queued up we will need this later.

4. download and locate the right file which is named something like gargoyle_[version#]-ar71xx-wzr-hp-g300nh-squashfs-tftp.bin - get it from Gargoyle download site by choosing Atheros AR71XX from "Select Architecture" menu.

5. in the new cmd window prepare the tftp command which will be something like this: tftp -i 192.168.11.1 PUT gargoyle_[version#]-ar71xx-wzr-hp-g300nh-squashfs-tftp.bin
(keep in mind you will either need to move to the directory of download in command prompt or place the file under the default location that you are in.)

6. Finally, unplug the router, plug it back in and execute the arp -s command queued up in step 3, try the tftp command, and again if it was timed out, it worked for me after once failed as you see in the image below but keep in mind there were a lot of playing until this stage so check arp -a if it shows the router as static. Also note I was unable to ping the router even though it uploaded the image so that appears unreliable but once uploaded leave it be for at least 5 minutes to do it's work. Done!

Enjoy!

Friday, November 6, 2009

If it ain't broke, take it apart and fix it.

I gotta make this quick for now so here is what I've been looking at instead of doing school projects....

The famous saying: "if it ain't broke don't fix it" has to be changed to a more appropriate "If it ain't broke, take it apart and fix it" :)

I found this on a T-shirt while browsing the net, this started when I was reading up on my router firmware (gargoyle) and updating to a new beta (version 1.1.1. experimental) as well as looking at information which referenced me to an interesting blog.

'I void warranties' is ironically also the title of that blog and T-shirt I linked to earlier but I got to the tshirt initially from looking at the post about sysadminday which then linked to gift ideas at thinkgeek.

That should cover my day of surfing the interweb and hopefully conclude it by finishing the assignments I am looking forward to forgetting about already...

Sunday, August 9, 2009

Gargoyle router for bandwidth limiting / cap linksys wrt54g

Not as bad as it sounds. Actually this firmware wins me over the best right now!

Gargoyle is based on openwrt, in fact if you have it installed gargoyle is just a package install away!

Basically what i love about this firmware most is that it allows me to STOP [Update: now you can throttle it to slow it down after the cap is reached!] internet traffic when i reach my bandwidth cap (rogers allows me 60GB a month at the moment)

but that is definitely not the only feature, it's also great with other features you would expect from a good firmware, like; QoS and live bandwidth display and monitoring, port forwarding, iptables and ssh with your usual Linux commands normally provided in the busybox system on these types of firmware, as well as the dnsmasq and other packages that are typical in this firmware distros (ie.e dd-wrt, tomato) .

It had some drawbacks as you can expect, but they are fixed and patched as the firmware is actively being developed you can track versions and fixes provided. New features and addition to previous ones so always be on the lookout for new updates on the main site.

in this post i talked about tomato and sure it is great with neat features (which mostly gargoyle has) including javascript, ajax, svg bandwidth graphs, QoS - but the major feature that i was looking for and could not figure out how to do (i have extensive Linux knowledge, which is what these firmwares are based on... just look in the blog - and take my word for it * ) which was to stop my internet when my cap is reached, when you go over - you pay extra;

i used a lot of bandwidth recently and found that only 5 extra GB cost as much as $12 which might not sound like much but looking at my history from before the new caps i quickly found this project on my hands...

*of course i suspect there is a way to do this with lots of scripts but it just isn't what i am used to, can't save scripts except for the gui, nor is there much if any documentation; found a bandwidth statistic backup script which didn't work... go figure reverse engineering these things... much too complex to try to do, i should hope they will have this in the future in which point i will be glad to switch back to tomato because it still wins the graphics and usability [maybe stability too] of most things but for now it was just easier to implement gargoyle for my needs...

But I am open to any custom scripts or implementations of tomato that anyone may have out there, feel free to send them my way and i will test it out!

so for those American users with 200gb or 250gb cap from Comcast or Time Warner (which is a heck of a lot more than what we Canadians get!) - i found posts while searching for a solution and seems they were searching for one also, well for the time being, this is your match.

to update to gargoyle: use the .bin if your upgrading from the default Linksys firmware or .trx files when upgrading from tomato or dd-wrt (or any other third party firmware except for openwrt) but make sure to read the documentation - it is well documented for what seems like a small but growing project

so install and enjoy the benefits!!!

P.S. I forgot to post this before but the first few months after installing the initial versions (new ones are even much better now) I can confirm that the bandwidth is very accurate. From my research which composed of taking daily Mb usage from the router and comparing to my ISP's Mb usage (from the self service interface) the results are great, although not 100% I would put it at 99.9% which is excellent
So it is very safe to use and with the new throttling instead of internet stopping once the quote is reached you have a great service that is unmatched.

And I use the web interface as a quick check on much percent is currently taken which is way faster if anyone knows how slow login into rogers is :)

(Updated Sep. 1 2010)
References:
http://www.gargoyle-router.com
http://digiex.net/guides-tutorials/776-how-backup-tomato-firmwares-bandwidth-logs-rstats-ftp-server.html

Sunday, March 29, 2009

Good router

Just tried out the WRT54GL from Linksys and I must say that it's just great.

UPDATE [March 2011]: if you are looking for more flash, ram and wireless N try the very cost effective:
TP-Link TL-WR741ND or a little better 
TP-Link TL-WR1043ND or one of the best available
Buffalo WZR-HP-G300NH with great specs, perfect for small business

For anyone who doesn't know, it is an open source firmware version from Linksys; which means you can change from the default routing admin interface (and features) - in which case this opens up for some amazing possibilities.

I choose the tomato firmware (just google for any others) and it just amazes me how much things get better when opening up the source code to regular people - communities form to improve software!

The major features I love are:
  • Bandwidth monitoring (as my local ISP has monthly limits),
  • QoS (Quality of Service) - which means downloading/uploading (things like bittorrents or moving large files) won't interrupt regular browsing on any computer connected,
  • SSH service is great for me because I don't have to run another Linux box or vmware just for it,
  • And finally it can also be used as a wireless bridge to connect off of existing wireless networks or to extend the range (but I havn't tried that yet so comment below if you have!).

It is really simple to upgrade:
1. Download the file Tomato_1_23.7z (or newest version) and unzip the folder
2. Log in to the Linksys firmware (Wired) at http://192.168.1.1/ (blank username, admin for password)
3. Click the Administration tab, then Firmware Upgrade.
4. Upload the WRT54G_WRT54GL.bin file - DO NOT Sneaze! this must complete without power or network interruptions, so it's best to wait patiently.
5. Wait to be prompted then enter root for username and admin for password (you should change that after logon)

Now for my favorite features (so far):
  • Bandwidth monitoring is enabled by default
  • Enable the QoS: click the QoS button on the left > check the Enable checkbox and click save.
  • SSH is enabled ineternally and can also be enabled for external networks but isn't recommended for begginers.
  • To change the wireless functions go to Basic > Network > choose Wireless Ethernet Bridge from the drop down menu of wireless section and click Save then you can click on Wireless Survey and connect to available networks.
Notice how saving settings does not restart the router as with most default firmware!

Enjoy!