Getting started with OpenWrt – Linuxfying Routers

I just got myself a GL-MT300A (GL.iNet) mini router. GL.iNet routers have OpenWrt pre-installed, unlike other mini routers with which you have to flash an open source firmware, going through hacky processes.


Why OpenWrt

I do not think there is a need of repeating what below links say about using an open source firmware in your router.

I’m just quoting a line from second link written by “Artefact2

Your router is basically a full-blown computer that’s always powered on. Might as well make some good use of it!

OpenWrt turns your router in a fully capable GNU/Linux computer, not just a network magic box.

Security Researcher’s Point of View


WiFi Connectivity

Power up the router and  wait for few seconds. Once orange color light up you will have the default WiFi network up and running.


Default WiFi password is written on the back of the mini router. Once you are connected to the network, use the default IP address written on the back of the mini router to access the management console.

After language, country selection and setting admin password, you will get the simplified admin console for GL.iNet.



Towards the top-right corner of the console, there is a link for “Advanced Settings”, with which you can access the OpenWrt LuCI web GUI.



Ethernet Connectivity

Similarly you could connect with router using Ethernet cable by connecting router’s “LAN” port to computer’s Ethernet port.


Creating a WiFi Repeater Setup

Reset the router to remove any existing configuration or adjust below instructions according to your current configuration.

Connect with router using LAN interface and log into OpenWrt console.

Open “Interfaces” screen from “Network” section and “Edit” “LAN” interface.


Make sure, the WiFi router which you are going to repeat (main WiFi router) using OpenWrt is not using the same IP address as this interface. For example, if main WiFi router is using “” as its base IP address and exposes admin console of the main router with that address, you should change the OpenWrt LAN interface IPv4 address to “” or some range that does not conflict with other network. If you do not do this, routing will not work properly and you will not get internet access after repeater setup is done. If you had to change the IP address, you *might* need to disconnect the Ethernet cable and connect it again in other to renew the IP address you initially got. Note that administration console is now available at the IP address you selected for the interface.

Select “WiFi” option under “Network” menu. Remove any already available WiFi network configurations.

Click “Scan” button and select the network you need to connect to. Provide password for the access point, pick firewall zone “wan” and “Submit”.



If you do not see that router has connected to the WiFi network (interface does not display signal strength and such). Navigate to “Interfaces” screen of “Network” tab and click on “Connect” button for the interface connected to newly connected WiFi network.


Select “WiFi” option under “Network” menu. Click “Add” button to add another network configuration.

Select “Access Point” mode and pick “LAN” as the network.


In “Wireless Security” tab, provide password / authentication mechanism for the repeated network and select “Save and Apply”.


After all the configuration, “WiFi” screen should look like below :


Connect to “OpenWrt” access point and observe that internet connectivity is available or the main network has been repeated through the OpenWrt router.

Other internet access methods

  • Ethernet to WiFi/Ethernet
  • USB 3G modem to WiFi/Ethernet
  • WiFi/Ethernet connectivity using USB Tethering

2 comments on “Getting started with OpenWrt – Linuxfying Routers

  1. zyguo February 28, 2017 8:10 PM

    How many free space available before install anything?

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">