upvote
GL.iNet devices are great, and their stock firmware is itself based on OpenWRT so it is natively supported. Flashed upstream OpenWRT on mine and it turned into the best router I've ever had. Highly recommended.
reply
Unfortunately, my (GL-BE9300) router doesn’t have an official OpenWRT release yet. The cloud service is enabled by default, even if I haven’t bound my account. For those in the same situation, you can disable it using SSH. Run the following command: `/etc/init.d/gl-cloud disable`
reply
I just disabled it for my Comet IP KVM through the web interface:

1. Click the cloud icon in the menu bar

2. Click the gear icon

3. Choose Disable

SSH into it and then confirm:

ps aux | grep '[g]l-cloud'

netstat -tnp | grep 28883

reply
Note however that not all of GL.iNet's devices have upstream OpenWRT support. Many run forked vendor OpenWRT containing proprietary blobs upstream won't ever accept.

Caveat emptor. And look it up in the OpenWRT wiki first.

reply
I apologize for generalizing to all GL.iNet devices. Here is my specific router:

https://openwrt.org/toh/gl.inet/gl-mt6000

It comes with an OpenWRT fork preinstalled, and installing upstream OpenWRT was really easy. Best router I've ever had.

reply
It seems to me to be mostly down to qualcomm BE (wifi 7) support in openwrt. It looks like support in openwrt is progressing well, but qualcomm devices are also usually very securely locked down, meaning you cannot install unsigned roms without manufacturer support.
reply
My B3000 was abandoned shortly after I bought it almost 2 years ago. The latest official FW is an almost 1.5 year old beta. Luckily it looks like there's an OpenWrt recent branch for it.
reply
And those which run openwrt often come with very outdated versions.

I do like the hardware though, so I just wipe them and flash stock openwrt immediately

reply
OpenWRT version in glinet is old. Openwrt has since fixed a lot of vulnerabilities.
reply
Long time OpenWrt user (since the original WRT54G) here :) I have also the same FLint 2, and am eyeing the Flint 4, support is coming:

https://openwrt.org/toh/hwdata/gl.inet/gl.inet_gl-be14000

reply
> stock firmware is itself based on OpenWRT

Not really, it's about as close to OpenWrt as all other makers are using. Still just vendor SDKs as far as I know. Especially their Qualcomm based devices which are fairly transparently QCSDK based.

They do have a fairly decent stock image though, if one can ignore this particular security incident...

reply
Both my GL.iNet routers seem to be pretty clearly OpenWRT with a custom layer on top?

Like to do advanced config there's a "go to the LuCI console" button.

reply
Yeah, that was my experience. I have a GL-MT6000 router and it essentially is an OpenWRT device.

https://openwrt.org/toh/gl.inet/gl-mt6000

> The GL-MT6000 ships with a modified fork of OpenWrt.

I apologize for improperly generalizing to all GL.iNet devices, but still, highly recommended.

reply
What're you talking about? The glinet front end lets you login using luci to a standard openwrt experience.

Its just openwrt with a different front end for the most part.

reply
> Not really, it's about as close to OpenWrt as all other makers are using

eeros don't run anything remotely resembling openwrt

reply
Did the same, it's been great.
reply
Vanilla OpenWrt is not necessarily more secure than a vendor fork (though dropping the cloud/remote-access layer obviously reduces the attack surface). It really depends on the build and config options.

For example, by default (in OpenWrt):

- The web UI serves plaintext HTTP and doesn't redirect to HTTPS, even though it generates a self-signed cert for 443 on first boot. [1]

- The router generates a persistent DUID from its LAN MAC and sends it to your ISP. [2][3]

- Userspace is FORTIFY_SOURCE=1 and PIE/ASLR are not enabled on all binaries. BusyBox (which runs the WAN DHCP and NTP clients) isn't built with PIE unless you set PKG_ASLR_PIE_ALL. [4]

There are other defaults and unneeded packages that can be changed or removed. I spent a lot of time tuning the configs and switching some daemons to Rust before ultimately deciding that a NixOS gateway + separate AP was more viable.

[1] https://github.com/openwrt/openwrt/blob/main/package/network...

[2] https://github.com/openwrt/openwrt/blob/main/package/base-fi...

[3] https://github.com/openwrt/openwrt/blob/main/package/network...

[4] https://github.com/openwrt/openwrt/blob/main/config/Config-b...

reply
> The web UI serves plaintext HTTP and doesn't redirect to HTTPS, even though it generates a self-signed cert for 443 on first boot.

How much does that matter? I suppose it provides confidentiality in the face of a passive local attacker, but the moment they do an active MITM I don't think a self-signed cert will be very useful

> I spent a lot of time tuning the configs and switching some daemons to Rust before ultimately deciding that a NixOS gateway + separate AP was more viable.

On the same (tiny) hardware? Have you published it anywhere? (Or did you move to a "big" gateway with less-trusted APs?)

reply
> but the moment they do an active MITM I don't think a self-signed cert will be very useful

In my experience, it's TOFU (Trust On First Use): once you accept the self-signed certificate the first time, Firefox will store its hash and no longer warn you as long as the certificate doesn't change. An active MITM after that point should still warn about an untrusted certificate, since the certificate would no longer be the same as the stored exception.

(And the same would happen if you initially accepted the self-signed certificate while under an active MITM, and the attack later stops; the only way to avoid a warning would be to have the attack be running continuously since the first use.)

reply
Except browsers periodically rewarn about such certs, and users will accept it. It will not work as a protection in practice.
reply
I've never seen Firefox re-warn about the self-signed certificate of my OpenWRT router, and I've been using the same self-signed certificate for over a year.
reply
How does HTTPS even work in this case? HTTPS relies on a valid SSL cert, which either sign the site is really foo.com But in the case of a router, you have a configurable IP address. Obviously the router can't self-sign a cert that the configindeed lives a whatever address you set
reply
you just blindly trusts the router self-signed cert upon first login, and if you're paranoid enough, add it to your system keychain so subsequent logins can be locally verified.
reply
Care to share your nixos config?
reply
> The web UI serves plaintext HTTP

Nobody is expected to use HTTPS in a LAN. This isn't supposed to be exposed to the Internet.

reply
So we just assume there's never an adversary in the LAN that might want to move laterally? Maybe I'm stupid, but that seems like a bad idea.
reply
I thought gl.inet ran close to stock openwrt with their skin?
reply
By default, gl.inet devices do not. This is an optional convenience management feature that makes dyndns unnecessary.

Their OS is built on OpenWRT and includes luci and dropbear ssh. An old PC or laptop doesn’t fit in my pocket and doesn’t have DPI and VPNs with exclusions that auto update from a https url. An old PC or laptop doesn’t have a SIM slot and do auto failover when the WAN is down. An old PC or laptop doesn’t have a simple web interface for viewing the DHCP leases. An old PC or laptop can’t easily clone the MAC address of my phone when being an L3 repeater on a public hotspot.

I am a very happy gl.inet customer and have been for a long time. The people developing the firmware are people like us. This incident is unfortunate but ultimately not a big deal. Malware in your router doesn’t matter that much or connecting to airport or coffee shop wifi would be inherently risky and it is not. There’s already plenty of malware on your path to the internet two hops up inside your ISP, too.

reply