{"id":2138,"date":"2023-05-26T20:52:54","date_gmt":"2023-05-27T00:52:54","guid":{"rendered":"https:\/\/lowtek.ca\/roo\/?p=2138"},"modified":"2023-05-27T11:38:12","modified_gmt":"2023-05-27T15:38:12","slug":"gl-inet-gl-ar300m16-with-openwrt-22-03-05","status":"publish","type":"post","link":"https:\/\/lowtek.ca\/roo\/2023\/gl-inet-gl-ar300m16-with-openwrt-22-03-05\/","title":{"rendered":"GL.iNet GL-AR300M16 with OpenWRT 22.03.05"},"content":{"rendered":"<p><a href=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet_.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-2139\" src=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet_-500x420.jpg\" alt=\"\" width=\"500\" height=\"420\" srcset=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet_-500x420.jpg 500w, https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet_-1024x861.jpg 1024w, https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet_-768x645.jpg 768w, https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet_-1200x1009.jpg 1200w, https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet_.jpg 1398w\" sizes=\"auto, (max-width: 500px) 85vw, 500px\" \/><\/a><\/p>\n<p>When travelling I usually just deal with the internet situation that is provided, I&#8217;ve got <a href=\"https:\/\/lowtek.ca\/roo\/2021\/wireguard-self-hosted-vpn\/\">wireguard<\/a> if I want to have <a href=\"https:\/\/lowtek.ca\/roo\/2021\/pi-hole-a-black-hole-for-advertisements\/\">ad blocking<\/a> or reach to my home network. The other day I got looking at travel routers, and while TP-Link has some popular ones, the <a href=\"https:\/\/www.gl-inet.com\/\">GL.iNet<\/a> devices seem to have more flash and RAM for basically the same prices.<\/p>\n<p>The GL.iNet AR300M16 was under $40 on amazon.ca, and it shipped (free) in a few days. Look at it, very tiny and cute &#8211; but more powerful than the <a href=\"https:\/\/lowtek.ca\/roo\/2012\/how-to-dd-wrt-on-the-netgear-wnr3500l\/\">Netgear WNR3500L<\/a> that I&#8217;ve used in the past. The USB power supply I&#8217;m using is larger than the router.<\/p>\n<p>Of course, I selected this device with <a href=\"http:\/\/openwrt.org\/\">OpenWRT<\/a> in mind. While the stock firmware has some really nice features as a travel router &#8211; I think I can achieve the same things with plain old OpenWRT. The GL.iNet device family apparently uses an OpenWRT base and customizes it. There are a number of GL.iNet devices documented on the OpenWRT site, but nothing specific for the AR300M16. The <a href=\"https:\/\/openwrt.org\/toh\/gl.inet\/gl-ar300m\">AR300M<\/a> is close, but has a different flash module setup.<\/p>\n<p>The first thing I did was just connect to the device, both wireless and wired. I knew that the OpenWRT install was going to require a wired only connection so I wanted to make sure that the laptop I was using was going to be able to successfully connect to the stock firmware over wire.<\/p>\n<p><a href=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-admin.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-2140\" src=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-admin-500x328.jpg\" alt=\"\" width=\"500\" height=\"328\" srcset=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-admin-500x328.jpg 500w, https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-admin-1024x672.jpg 1024w, https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-admin-768x504.jpg 768w, https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-admin-1536x1009.jpg 1536w, https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-admin-2048x1345.jpg 2048w, https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-admin-1200x788.jpg 1200w\" sizes=\"auto, (max-width: 500px) 85vw, 500px\" \/><\/a><\/p>\n<p>I was impressed at the quality of the user interface. I may have to give the stock firmware a proper try, but first let&#8217;s flash OpenWRT to it.<\/p>\n<p>This turns out to be very easy. The stock firmware &#8216;local&#8217; upgrade process will accept a .bin file. The <a href=\"https:\/\/firmware-selector.openwrt.org\">OpenWRT firmware selector<\/a> gives us an easy way to find a compatible firmware for the &#8220;GL.iNet GL-AR300M16&#8221; device.<\/p>\n<p>I started with the <code>Kernel<\/code> image. This is the recommended path for moving from stock as it&#8217;s a smaller image. The stock firmware was happy to accept this .bin file as an upload, but warned me that I was treading in dangerous waters.<\/p>\n<p><a href=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-upgrade-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-2142\" src=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-upgrade-500x312.jpg\" alt=\"\" width=\"500\" height=\"312\" srcset=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-upgrade-500x312.jpg 500w, https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-upgrade-1024x638.jpg 1024w, https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-upgrade-768x479.jpg 768w, https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-upgrade-1536x957.jpg 1536w, https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-upgrade-2048x1276.jpg 2048w, https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-upgrade-1200x748.jpg 1200w\" sizes=\"auto, (max-width: 500px) 85vw, 500px\" \/><\/a><\/p>\n<p>No problem, I know what I&#8217;m doing (so I told myself). Hitting &#8220;Install&#8221; and off we went. I did made sure that before I flashed the firmware I was using a quality USB power supply that delivered more than 2A of power.<\/p>\n<p>This went smoothly, but the IP address of the router changed from <code>192.168.8.1<\/code> to <code>192.168.1.1<\/code>. This is a difference between the stock firmware defaults and the OpenWRT defaults.<\/p>\n<p>I then used the OpenWRT firmware upgrade to flash the <code>sysupgrade<\/code> image. This went smoothly as well. Now I have a teeny tiny router with OpenWRT installed.<\/p>\n<p><a href=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-openwrt.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-2143\" src=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-openwrt-500x222.jpg\" alt=\"\" width=\"500\" height=\"222\" srcset=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-openwrt-500x222.jpg 500w, https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-openwrt-1024x455.jpg 1024w, https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-openwrt-768x341.jpg 768w, https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-openwrt-1536x682.jpg 1536w, https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-openwrt-2048x909.jpg 2048w, https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2023\/05\/gl.inet-openwrt-1200x533.jpg 1200w\" sizes=\"auto, (max-width: 500px) 85vw, 500px\" \/><\/a><\/p>\n<p>Next I need to figure out how I want to configure this particular device to be my travel router, allowing me to connect my devices to it &#8211; and have it use another wifi network as the upstream. Then explore adding some ad blocking and some other nice features.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When travelling I usually just deal with the internet situation that is provided, I&#8217;ve got wireguard if I want to have ad blocking or reach to my home network. The other day I got looking at travel routers, and while TP-Link has some popular ones, the GL.iNet devices seem to have more flash and RAM &hellip; <a href=\"https:\/\/lowtek.ca\/roo\/2023\/gl-inet-gl-ar300m16-with-openwrt-22-03-05\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;GL.iNet GL-AR300M16 with OpenWRT 22.03.05&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,21],"tags":[],"class_list":["post-2138","post","type-post","status-publish","format-standard","hentry","category-how-to","category-network"],"_links":{"self":[{"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/posts\/2138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/comments?post=2138"}],"version-history":[{"count":4,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/posts\/2138\/revisions"}],"predecessor-version":[{"id":2146,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/posts\/2138\/revisions\/2146"}],"wp:attachment":[{"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/media?parent=2138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/categories?post=2138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/tags?post=2138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}