MAC Clone on GL-MT3000 fails

My GL-MT3000 is not getting an IP address from the hotel wifi I’m on (associates fine, but gets stuck at “Getting…” in the IP address settings). As recommended by another thread, I’m trying to set a randomized MAC address. When I do that, the web UI says “Unknown error occurred”. The nginx error log shows the following:

2023/06/11 23:11:57 [error] 4046#0: *13 lua entry thread aborted: runtime error: /usr/lib/oui-httpd/rpc/macclone:116: bad argument #4 to 'set' (string expected, got nil)
stack traceback:
coroutine 0:
	[C]: in function 'set'
	/usr/lib/oui-httpd/rpc/macclone:116: in function 'set_wan_mac'
	/usr/lib/oui-httpd/rpc/macclone:176: in function </usr/lib/oui-httpd/rpc/macclone:148>
	(tail call): ?
	/usr/share/gl-ngx/oui-rpc.lua:102: in function '?'
	/usr/share/gl-ngx/oui-rpc.lua:154: in function </usr/share/gl-ngx/oui-rpc.lua:1>, client:, server: , request: "POST /rpc HTTP/1.1", host: "", referrer: ""

I should note that I had the network connector set to “LAN” when this happened.

Switching it back to WAN seems to have resolved the problem, but I already wrote this note so I’ll post it anyway as a bug report and for others that might be running into the same problem.

1 Like