Introduction (Rambling)
Had some free time, so I decided to tinker with my router and use it as a gateway. (Later found out this router has too little space to install many plugins, so it was a wasted afternoon.)
Update 2022.02.17: Accidentally found an FIR300M firmware with a built-in gateway. However, it uses a very old method for flashing. Please be careful when identifying it if you plan to flash it.
Original Post: Update Compilation Method - FIR300M/FIR302M Openwrt Firmware No Disassembly Flash
Baidu Netdisk: Password: vouv
What is OpenWRT?
OpenWRT is a Linux-based system for routers. It offers many powerful plugins and strong expandability, and you can connect via SSH.
Official Site: OpenWrt Wiki - Welcome to the OpenWrt Project
OpenWRT General Tutorial: Learning OpenWrt from Scratch: Flashing + Usage + Compilation Tutorial
Preparation
- Software: HFS
- OpenWRT Firmware for FIR300M: Baidu Netdisk
- Enable Telnet Service on your PC: Refer to How to Enable Telnet Service in Win10 (Works for Win11 too; search for “Control Panel” in Settings).
Brief Steps
- Log in to the router’s admin panel (192.168.1.1).
- Visit
http://192.168.1.1/goform/Diagnosis?pingAddr=192.168.1.100|echo""|telnetd - Open Command Prompt (cmd) and type:
telnet 192.168.1.1 - Transfer the firmware to the router and wait for it to complete.
- Accessing the router’s admin panel now will show OpenWRT (no password initially, just log in).
- Go to
System - Language and Styleto change the language to Chinese.
Detailed Steps (Step 4)
Open HFS, rename the firmware from “Preparation” step 2 to “1.bin”, and drag it into the window.
After connecting via telnet 192.168.1.1 in cmd, enter the following commands sequentially:
| |
After successful execution, the router will automatically reboot, and you’ll see “Connection Lost”.
Installing Plugins
In the OpenWRT admin panel, click “System - Software” to install the desired plugins.
It’s recommended to search GitHub for plugins or write your own. You can directly copy the .ipk file link from the Release section of the corresponding project on GitHub.
How to install your own written plugins? If you can write them, you can figure this out, right? (doge)
Notes
Plugin installation requires compatibility with your router. Some plugins might need environment dependencies, meaning other plugins need to be installed first.
You can usually figure this out from the error messages.