Hey everyone.
I have a Linksys WRT54G v2.0
I was trying to upgrade my WRT54G from an official firmware to an official one. I didn't mean to install OpenWRT in the first place. But I know how to use many features of the Linux OS and I'm familiar with the command line so it seems I have downloaded it in the past. One thing I am not familiar with are IPTABLES.
So, I accidentally locked myself out of my router and the internet.
I was checking around the docs and found out that I could just have the router boot without running the iptables script, allowing me access once again.
I have enabled and comited boot_wait, whether or not it's still set to on is a mystery. I may have reset the NVRAM with the reset button.
Anyway. I tried the following on what I believe is version 1.0 of white russian. The site says it's currently 0.9 RC# but when I was in the info page it said it was white russian 1.0.
2.1. How to get into failsafe mode
OpenWrt itself uses the reset button to enter into failsafe mode, and for no other purpose. In particular, it will not reset the NVRAM. The boot loader, however, may reset the NVRAM in response to the reset button. Therefore, it's important to know what's running when you hold down the reset button. One indicator is that OpenWrt will light the DMZ LED (on systems that have one) from the time it begins until the time the bootup scripts complete. If the DMZ LED has not yet lit up, you are still in the bootloader!
2.1.1. All Models (RC5+)
When OpenWrt boots, it will broadcast a UDP packet to port 4919 of network 192.168.1.x containing the message:
Press reset now, to enter Failsafe!
You can use the recvudp utility provided below, or a network monitor/sniffer to view the messages, for example nc -l -p 4919 -u. Remember, your PC must be set to have an address like 192.168.1.2 When the above message appears, press and hold the reset button for 2 seconds. You should now get the message:
Entering Failsafe!I ran man on nc to figure out what the options were and found that I could just copy and paste. I ran that and almost exactly 15 seconds after I plug the router back in the DMZ light comes on and with almost no delay the message "Press reset now, to enter Failsafe!" apears. I use a watch screwdriver to push the reset and use my desktop clock to time it. I tried repeatedly pressing it. 2 seconds, until the DMZ light is off but nothing. I can't disable the firewall.
So I figure I have two options.
1) Figure out what's not working with the failsafe mode
2) Flash using tftp assuming the 15 seconds that the boot loader has is hopefully enough to get the tftp started and starting to flash.
Then there is option 3). I don't remember quite where I read it but I read something that if boot_wait is off there is still a way, albeit more difficult, to flash the router with a new firmware and hence a new firewall script that isn't locking me out of it. I was pretty sure I had included a rule for ssh from the lan but nothing is working. I tried connecting to both the WAN and LAN port and I can get the message at either end of the router but I can't get in through any of the ports I thought I had left open. Not 8080 for the webif module. Nothing.
Any help would be greatly appreciated. Everything I could find at this site hasn't worked and I am really hoping there is something I can do to get the failsafe to work.
I'm going to try tftp and hope that works
(Last edited by WrinkledCheese on 27 Apr 2008, 20:37)
