Ok thanks. Don't bother yourself too much. The problem is ultimately easily avoidable. Just access GUI via the naked IP, or www.asusrouter.com.
Does your router have a domain? Does bifrost.home.arpa (or whatever your domain is) work? Is the lack of dots a factor?
Jul 16 17:03:46 debug: host_name: gtaxe16000:8443 - host_name_temp: gtaxe16000
Jul 16 17:04:09 debug: host_name: bifrost:8443 - host_name_temp: bifrost:8443
192.168.50.1 bifrost bifrost.mylonely.lan
Does it receive the :8443 and consider the colon to be part of an IPv6 address?and it fails to detect "bifrost" as being a hostname and considers it to be an IP.
So I just tried that, and it fails certificate check and drops down to port 80. So, yeah, looks like I'll have to explicitly add bifrost.home.arpa to my certificate to make that work. And since I had to remake it recently and the process is fresh in my mind, and I'm quite curious if this'll actually *work* (meaning system status page doesn't break), let me go ahead and try that. For the science.The router calls ParseIPv4OrIPv6() on your hostname, and it fails to detect "bifrost" as being a hostname and considers it to be an IP.
The simplest workaround on your end is within your local host file, add a FQDN for it. I.e.:
Code:192.168.50.1 bifrost bifrost.mylonely.lan
Then if you use https://byfrost.mylonely.lan:8443 it will properly be detected as a hostname, and get correctly parsed.
No, because it deals fine with gtaxe16000:8443.Does it receive the :8443 and consider the colon to be part of an IPv6 address?
That is a browser issue. With a regular browser (Chrome or Firefox), you can tell it to accept the certificate anyway, and it should not try to switch you to a different port.So I just tried that, and it fails certificate check and drops down to port 80.
No, because it deals fine with gtaxe16000:8443.
That is a browser issue. With a regular browser (Chrome or Firefox), you can tell it to accept the certificate anyway, and it should not try to switch you to a different port.
It does that, but only after you log out, to limit disruptions.could you just make the router do a service restart_httpd after importing a new certificate?
else if (!strcmp(script, "prepare_cert")) {
int r;
r = prepare_cert_in_etc();
if (r > 0) {
/* Load new certification after the current session logout. */
nvram_set("httpds_reload_cert", "2");
#if defined(RTCONFIG_IPV6)
if (ipv6_enabled() && nvram_match("misc_http_x", "1")) {
nvram_set("httpds6_reload_cert", "2");
}
#endif
}
}
Did you figure out whyThis should take care of most cases of incorrectly detected IPs.
![]()
httpd: check that we have a potential IP before calling ParseIPv4OrIP… · RMerl/asuswrt-merlin.ng@79e7d0e
…v6() ParseIPv4OrIPv6() can sometimes incorrectly report a hostname as being an IP address (for instance it does that when asked to parse "bifrost:8443"). Ensure that we have at least s...github.com
I had a look at potentially rewriting ParseIPv4OrIPv6(), but too many chances of something else breaking along the way.
gtaxe16000:8443
was OK but not bifrost:8443
? Was it the digits before the colon?No idea. The ParseIPv4OrIPv6() is so long and complicated that I didn't bother trying to understand where it failed. I doubt that was it tho, because I use "stargate" on my primary router.Did you figure out whygtaxe16000:8443
was OK but notbifrost:8443
? Was it the digits before the colon?
This should take care of most cases of incorrectly detected IPs.
![]()
httpd: check that we have a potential IP before calling ParseIPv4OrIP… · RMerl/asuswrt-merlin.ng@79e7d0e
…v6() ParseIPv4OrIPv6() can sometimes incorrectly report a hostname as being an IP address (for instance it does that when asked to parse "bifrost:8443"). Ensure that we have at least s...github.com
I had a look at potentially rewriting ParseIPv4OrIPv6(), but too many chances of something else breaking along the way.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!