eZwa
Occasional Visitor
My endgame is similar to that of the OP's, in wanting to access the WebGUI via https: without having to deal with "invalid certificate" warnings that comes about by way of accessing it via the router's internal IP address.OK, so what is the end game here? Is it to access the router via a FQDN via https (https://router.mydomain.tld)? If so, using the--server
directive is not what you want. The server directive in dnsmasq is used to redirect dns queries for a specific subdomain to another upstram server. What you want is to add an entry to the /jffs/configs/hosts.add file. The entry would be;
Code:10.10.10.1 router.mydomain.tld
where10.10.10.1
would be the IP address of your router androuter.mydomain.tld
is the FQDN of your Let's Encrypt certificate (CN).
The domain namerouter.mydomain.tld
would have be match your common name in your certificate.
If the endgame here is to refer to your router as a an IP address using https (SSL/TLS), then I think you are out of luck. SSL/TLS just plainly does not work that way - by design. I can see some security issues if you could use SSL/TLS with an IP address as opposed to a FQDN.
I gave it a try with the hosts.add file, and after restarting DNSmasq it did nothing to change the situation and am still unable to access the WebGUI via its' FQDN. I did notice when looking at the hosts file that the FQDN was already listed, and that my entry in hosts.add added it a second time. I've since deleted the hosts.add entry, so now the hosts file only shows the one that was already listed.
I mean, seeing how my access to the WebGUI is via LAN only, to go without the added security of TLS in accessing it isn't necessarily a bad thing. It would be nice to have, but I'm in agreeance with your view that this looks like something that simply can't be done.
While on the topic of viewing the hosts file, I've noticed these two entries which - when accessed - don't redirect to the WebGUI:
Code:
10.10.10.1 www.asusnetwork.net
10.10.10.1 www.asusrouter.com
Would this be due to having access via router.asus.com disabled, and if so do these entries need to remain in the hosts file?