OpenWRT
From WugWiki
Getting started
Get OpenWRT here : http://downloads.openwrt.org/whiterussian/
Use squashfs if this is your first attempt at loading something new on the WRT54.
Remember the basics, before doing anything, do the following
nvram set boot_wait=on
This enables boot_wait, the ability to tftp firmware across if things go bad
If you bugger up your firewall severely and can't get in, or perhaps do something even dumber... who knows, have no fear, openwrt built in a failsafe boot, that boots with your existing nvram settings, but does not load firewall, and some other extras, allowing you to go in, and modify the nvram to a stable state! to boot failsafe,
# unplug the power # plug back in # as soon as the dmz light pops on, # hit the reset button for 1 second (or until dmz light starts flashing) # go in and fix your mess!
Client Mode ( break the bridge ) with firewalled wireless interface
WRT54CLIENT-REVFWWL Put the WRT into client mode, break the bridge and firewall wireless.
AP Mode wifi and lan separated ( break the bridge mode ) ie firewalled wireless interface Follow Howto for client mode, but where it says
nvram set wl0_mode=sta replace it with nvram set wl0_mode=ap
and set your ap name and channel with
nvram set wl0_ssid=my_AP_NAME nvram set wl0_channel=my_AP_chan
do firewalling as in clientmode
AP Mode and reversing the firewall to WAN
WRT54AP-REVFWWAN WRT is AP with wifi and lan on the bridge. WAN interface connected to your private network firewalled from LAN and Wireless. (Don't break the bridge)
TFTP Uploading
The basic procedure for uploading/recovering is outlined below.
You will need:
Linux machine with tftp Image that you want to upload A network cable directly to the WRT Your PC set to an IP in the 192.168.1.0/24 network (eg: 192.168.1.2) Not .1!
Heres how
- First, unplug the power from your WRT.
- Then, execute these commands on your linux machine
tftp 192.168.1.1 > binary > trace > rexmt 1 > put openwrt-g-code.bin
On Windows XP and Server 2003 ( comes standard )
Start -> Run ... -> type cmd
In the command prompt window type : tftp -i 192.168.1.1 put fwimage.bin
Dont press enter on the "put" just yet!
Now plug in the Power
about 2 seconds later (if you aren't sure when its ok to hit enter on put command, have another terminal running with a ping on 192.168.1.1, as soon as a response comes, hit enter on put!)
hit enter on the tftp "put" command.
It should take a few seconds, and then you'll see it start the actual upload, things will scroll quite fast
Now wait a few minutes for it to complete the boot, and try pinging it.
