Original admin panel is forwarding to luci

Hi guys, I'm on GL-MT3000, the latest 4.6.6-op24. I've used to open the standard gl.inet router admin panel via 192.168.8.1 in my browser usually and also I've used the luci admin panel 192.168.8.1/cgi-bin/luci/ pretty often. Switching between them has never been an issue. But now whenever I try to open the standard gl.inet admin panel it redirects me to luci page. I've tried clearing the browser cache, incognito mode, and different devices (my PC and mobile phone) - but nothing helps. Also, console.gl-inet.com redirects to luci admin page. Is this a known bug that could be fixed somehow? I don't think I've changed any settings for that. It just started to happen.

Are you accessing Luci locally or through VPN/GoodCloud?

It seems to not be reproduce this problem on my router.
To say 192.168.8.1 and 192.168.8.1/cgi-bin/luci/, the IP (or domain name) prefix has not changed, only /cgi-bin/luci has been added, this is not a redirect.

I'm using my Beryl on a daily base and i never saw this problem.

Can you try curl on commandline and check what happens:

$ curl -i -v -k https://192.168.8.1/


Here is the output looks same for both https and http. Yes, I also never seen this before but somehow I managed to get that bug. Don't really know what is causing it.

That is strange. I expected to see a 301 redirect or something similar, but you end up on the luci page directly.

Then is is a bug.....

Can you please run those 2 commands:

netstat -tulpen | grep :80
netstat -tulpen | grep :443

It seems like you flashed plain OpenWrt? There is no GL UI then.

It's a 4.6.6 op24 snapshot from official GL.inet firmware download page. There was original GL.inet admin page for 2 weeks and then it started to open luci directly. Is it possible that some file with settings has been changed?

Usually the GL GUI is provided by nginx instead of uhttpd. Maybe it's an binding issue here, you would need to check the configs then.

But the SSH output confuses me: Never saw those „fancy“ texture lines on any GL firmware, only the plain OpenWrt ones comes with that, afaik.

I just edited the /etc/banner and put that ASCII art there because I have many routers and servers and wanted to make some distinction for each one once I log in. Please point me out how I can check configs for nginx and uhttpd?

Yes, this looks like a redirect but not exactly a redirect. I am trying to open 192.168.8.1 locally, also 192.168.8.1/#/login should point directly to gl.inet standard login page, right? Whenever I try to open it it adds /cgi-bin/luci automatically and opens luci login page instead. Same happens if I am opening my router admin page via Zerotier or Tailscale via VPN outside...

Thanks a lot for pointing this out to me! After I did
service uhttpd stop
service nginx start
I was able to open the standard gl.inet admin page via https://192.168.8.1 but, weirdly, http://192.168.8.1 is still adding /cgi-bin/luci automatically and I can't open gl.inet page via http. Also I am wondering what app could change nginx to uhttpd and how to get back default config of that settings without resetting the router?

I having the same issue with my x3000nr. What ai did was debrick via uboot to the very 1st fw. But when i upgrade to the latest fw again, the issue happens again. So i just left it as is since i can still use it anyways. Dont really know also why its happening but i cant seem to find a workaround on it. In using beryl and opal but has not encountered this issue

1 Like

Could you please execute:

uci get uhttpd.main.listen_http
uci get uhttpd.main.listen_https

0.0.0.0:80 [::]:80
0.0.0.0:443 [::]:443

That's the issue.

Change the ports like this - be careful to replace $Local-IP-of-your-router with the IP of the router like 192.168.8.1

uci set uhttpd.main.listen_http=$Local-IP-of-your-router:8080
uci set uhttpd.main.listen_https=$Local-IP-of-your-router:8443
uci commit uhttpd

Example:

uci set uhttpd.main.listen_http=192.168.8.1:8080
uci set uhttpd.main.listen_https=192.168.8.1:8443
uci commit uhttpd

After that reboot your router.

Hmm i could be mistaken, but i believe nginx needs to use 443 and 80 then rewrites url for luci.

But if nginx does not exists or does not start, it fallsback to openwrts behaviour (at least if uhttpd by default co-exist which is what im questioning).

Did you tried to install luci on top of that which installed its dependency uhttpd? (Im not sure here if uhttpd starts next to nginx in a default configuration).

Can you search if you find logs about nginx not starting?

If you installed uhttpd by accidentally installing luci and not luci-nginx then this likely is the issue.

Edit:

I stand correct, uhttpd is not installed, please see:

root@GL-MT6000:~# opkg list-installed | grep uhttpd
root@GL-MT6000:~# opkg list-installed | grep nginx
nginx-ssl - 1.17.7-r2
root@GL-MT6000:~# opkg list-installed | grep luci
gl-sdk4-luci - git-2024.035.07689-7946792-r1
liblucihttp-lua - 2023.03.15~9b5b683f-r1
liblucihttp-ucode - 2023.03.15~9b5b683f-r1
liblucihttp0 - 2023.03.15~9b5b683f-r1
luci-app-firewall - 24.148.86114~fbbfdb4
luci-app-opkg - 24.148.86114~fbbfdb4
luci-base - 24.188.41532~d3bf675
luci-i18n-base-zh-cn - 24.191.83533~124eb56
luci-i18n-firewall-zh-cn - 24.191.83533~124eb56
luci-i18n-opkg-zh-cn - 24.189.71327~8dc130d
luci-lib-base - 24.079.46064~3e3005c
luci-lib-ip - 23.311.79148~ac7b37e
luci-lib-json - 18.184.37844~cde13dc
luci-lib-jsonc - 24.079.46156~c1e3fa9
luci-lib-nixio - 24.031.06905~d46da53
luci-lua-runtime - 24.079.46338~374af8b
luci-mod-admin-full - 19.253.48496~3f93650
luci-mod-network - 24.179.53069~5755899
luci-mod-rpc - 21.020.56896~af422b1
luci-mod-status - 24.190.52475~7893f2d
luci-mod-system - 24.165.47464~37ea60d
luci-proto-ipv6 - 24.148.86114~fbbfdb4
luci-proto-ppp - 24.148.86114~fbbfdb4
luci-theme-bootstrap - 24.123.27749~3e967fd
rpcd-mod-luci - 20240305-r1

But i dont see luci-nginx, i see gl-sdk4-luci.

Please remove uhttpd,luci if it still fails try this:

opkg update
opkg install gl-sdk4-luci --force-reinstall --force-maintainer

I am sorry, but you are wrong.

root@Robbenrouter:~# netstat -tulpen | grep nginx
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      8461/nginx.conf -g
tcp        0      0 :::443                  :::*                    LISTEN      8461/nginx.conf -g
root@Robbenrouter:~# netstat -tulpen | grep uhttpd
tcp        0      0 192.168.177.1:8443      0.0.0.0:*               LISTEN      5794/uhttpd
tcp        0      0 192.168.177.1:8080      0.0.0.0:*               LISTEN      5794/uhttpd

nginx is for the GL GUI, uhttpd for luci

Hmm not installed for me :wink: