Community discussions

MikroTik App
 
gordon689
just joined
Topic Author
Posts: 1
Joined: Wed Dec 27, 2017 12:07 am

Bug: webfig login errors with SSL and hostname (v6.48.2)

Thu May 13, 2021 11:29 am

Hello,

I encountered a bug when trying login to webfig using ssl, when access the rounter with a DNS hostname (as opposed to IP).
I only found one previous reference to such error, but no follow-up or resolution: viewtopic.php?t=154444#p764586
--
details:
Using CRS125-24G-1S-2HnD with RouterOS v6.48.2(stable),
Using "Google Chrome" version 90.0.4430.72 on Debian Linux amd64.
When accessing webfig using HTTP and IP address (e.g. http://192.168.88.1) - works.
When accessing webfig using HTTPS and IP address (e.g. https://192.168.88.1) - works, and as expected, chrome displays a "PRIVACY ERROR" warning that the certificate does not match (NET::ERR_CERT_COMMON_NAME_INVALID ).
But,
when accessing webfig using HTTPS and hostname (e.g. https://router.mydomain.com , pointing to the same IP as above) - login fails with a generic red error message "ERROR: not found".

Looking at the google-chrome dev console, the following error appears after clicking the "login" button:
-------
master-min-79a26da00efe.js:798 GET https://router.mydomain.com/webfig/roteros-5e5cc36ce70b.jg 404 (Not Found)
request @ master-min-79a26da00efe.js:798
loadGUM @ master-min-79a26da00efe.js:1267
(anonymous) @ master-min-79a26da00efe.js:1271
req.onreadystatechange @ master-min-79a26da00efe.js:796
XMLHttpRequest.send (async)
request @ master-min-79a26da00efe.js:798
initWebfig @ master-min-79a26da00efe.js:1268
load (async)
(anonymous) @ master-min-79a26da00efe.js:1290
-------

As noted in the other forum message (linked above), trying the same ( https://router.mydomain.com ) DOES WORK from firefox.

So this looks like some strange edge-case of incompatibilities.

Happy to try more things if you have suggestions.
Regards,
- gordon
 
ludomagno
just joined
Posts: 1
Joined: Sun Sep 19, 2021 4:53 pm

Re: Bug: webfig login errors with SSL and hostname (v6.48.2)

Sun Sep 19, 2021 4:56 pm

Same exact symptoms with v6.48.4, took me a while to figure out it was not a wrong password.
 
Borreltje
just joined
Posts: 1
Joined: Mon Oct 18, 2021 7:51 pm

Re: Bug: webfig login errors with SSL and hostname (v6.48.2)

Tue Feb 15, 2022 9:50 pm

I have the exact same but it only started when I change ISP and got a different WAN-IP. Before that all worked as expected.
I can still login on https://local-ip but not on https://dns-name

Image

Login with Inbox works OK.

Any tips on how to resolve this??
 
robpacme
just joined
Posts: 1
Joined: Thu Feb 07, 2019 3:04 pm

Re: Bug: webfig login errors with SSL and hostname (v6.48.2)

Thu Mar 17, 2022 8:38 am

I have not experienced exactly the same error in the past as I noticed different behaviour on different OSes and browsers.
Before 7.x (I believe) it worked on some machine some browser always with the minimized version of the login screen where the winbox/telnet/graph part did not show up.
However I did not investigate why there are two different login screens as it simply worked and I was able to update then.
As I do not change the configuration often (my setup is not that bad ;-) and I don’t have time to play around, I didn‘t care that much.
But it‘s getting worse and actually it‘s a pain seeking which browser on which machine will the login work.
I have to investigate further but it‘s possible, that now with 7.x I have exactly the same situation as written above.

If I find some time, I will investigate further and post new findings here - looking forward to hear from Mikrotik or others about their experience.

Who is online

Users browsing this forum: nickvacula, sergejs and 93 guests