WRT54GL: Difference between revisions
From charlesreid1
| Line 46: | Line 46: | ||
[[Image:LinksysRouterUpgrade1stLogin.png|500px]] | [[Image:LinksysRouterUpgrade1stLogin.png|500px]] | ||
==Secure the router== | |||
First thing you do should be to set a password. | |||
In the administration panel where you change the password, you'll also see configuration for a Dropbear SSH client, which will allow you to SSH to the router and remotely administer it. This can be set up to only listen on the local LAN, or only listen on the wifi interface, or listen on both. | |||
==Ensure tftp access== | ==Ensure tftp access== | ||
Revision as of 06:42, 29 August 2016
Notes on getting the WRT54GL set up as an OpenWRT router.
This follows instructions on the OpenWRT wiki: https://wiki.openwrt.org/toh/linksys/wrt54g
Connect to Router
Before you can install OpenWRT, make sure the router is functioning normally.
Plug in
Start by plugging the router in, and connect a computer to it with an ethernet cable.
Log in
The default IP schema (discovered using ifconfig to see what IP address had been assigned to the ethernet port of the laptop connected to the router) was 192.168.1.1.
When I went to this page I logged in with the default username/password combo of admin/admin and saw the Linksys router management page:
We won't be changing any of these settings, as we'll be re-flashing the router with a new operating system.
Install OpenWRT
Download image
Next you'll download the openwrt-wrt54g-squashfs.bin image from the OpenWRT page: https://downloads.openwrt.org/backfire/10.03.1/brcm-2.4/
Direct link: https://downloads.openwrt.org/backfire/10.03.1/brcm-2.4/openwrt-wrt54g-squashfs.bin
Load image onto router
On the router, navigate to the page http://192.168.1.1/Upgrade.asp
Now upload the OpenWRT binary:
Log in to OpenWRT router
After 2 minutes the router will reboot itself automatically once the upgrade is complete.
You can now telenet to the router at 192.168.1.1 or you can use the Luci web interface at 192.168.1.1
Once you set a password, telnet will be disabled and ssh will be enabled.
Secure the router
First thing you do should be to set a password.
In the administration panel where you change the password, you'll also see configuration for a Dropbear SSH client, which will allow you to SSH to the router and remotely administer it. This can be set up to only listen on the local LAN, or only listen on the wifi interface, or listen on both.
Ensure tftp access
To ensure tftp is enabled, in case router gets bricked, type these commands out in telnet or ssh:
nvram set boot_wait=on nvram set boot_time=10 nvram set wait_time=10 #important for some models nvram commit && reboot
This will start tftp on boot. It is possible to flash the router via tftp, and is the recommended way to restore factory Linksys image.
Tftp flashing instructions: https://wiki.openwrt.org/doc/howto/generic.flashing.tftp
Upgrade OpenWRT
If you want to upgrade OpenWRT from bcrm-2.4 to bcrm47xx, you can do so by downloading the upgrade and applying it:
$ cd /tmp $ wget http://downloads.openwrt.org/backfire/10.03.1/brcm47xx/openwrt-brcm47xx-squashfs.trx $ sysupgrade /tmp/openwrt-brcm47xx-squashfs.trx