OpenWrt on a Buffalo WHRG54S

These are some instructions describing one way to construct an OpenWrt-loaded Buffalo WHR-G54S, an inexpensive wireless router (around $40 new, as of 2007-02).

Build OpenWrt Kamikaze

Flash Firmware

Using tftp

Configuration

Configuring a Wifidog AP

Configuring as a client device

OLDER STUFF

Steps for creating a NoCat Openwrt Build on a Linksys WRT54g or gs

"OpenWRT is a linux distribution for the Linksys WRT54G. Instead of trying to cram every possible feature into one firmware, OpenWRT provides only a minimal firmware with support for add-on packages. For users this means the ability to custom tune features, removing unwanted packages to make room for other packages and for developers this means being able to focus on packages without having to test and release an entire firmware."

To use nocatsplash on openwrt, you need to do some fiddling.

OpenWRT binary (CVS 10-Dec-2004) WRT54G md5sum: 37664add5eafd051ec07e339d26f0e37
OpenWRT binary (CVS 10-Dec-2004) WRT54GS md5sum: 459df29183d7afcb8ffbbac3b7726c3f

(The patch adds mac address logging, and more levels of logging. I recommend level 1, which shows auths and timeouts only. The logging part was by the ewrt people)

After installing, configure by editing /etc/nocat.conf. Check all the options in there. Also, add the option InsideIP 10.11.x.y, or the redirects won't work (IE, no way to auth).

TODO

The wiring of the WRT network devices: There are 2 'real' devices, eth0 and eth1. eth0 is an interface to the switch on the back. eth1 is the wireless link. eth0 uses vlans. vlan0 is the 'lan' set of ports, and vlan1 is the 'wan' port. The default configuration creates a bridge, br0, of eth1 and vlan0. OpenWRT networking is configured with *_ipaddr, *_proto, etc. These are documented more extensively on the OpenWRT site. The default config is lan_* is br0, wan_* is vlan1. If you want to break the bridge, and treat lan, wan, and wifi separately, you use lan_* for vlan0, wifi_* for eth1, and wan_* for vlan1.


Troubleshooting

Q) I have flashed the OpenWrt bin on but whenI try to telnet in my old username/pswd simply do not work. I even reflashed it with the previous firmware (ewrt) and test the username/password just to be sure. Any thoughts? (TomHiggins)

A) You're using the old broken image. Get the 10 december one and try again. This problem is due to using the wrong /bin/login file, one that was actually trying to check credentials. However, there aren't any credentials, so it will always deny. The correct /bin/login just logs you in without asking anything. (Worked like a charm, thanks Ben! (TomHiggins))

_

!!!!WARNING!!!!

The firmare and package needs libpthread. But even with it, the rotuer *FAILS* to capture pages. It does not do anything but drop packets. DO NOT USE THIS, IT IS BROKEN!