Tonite I tried to make the luci using https,
but indeed not working as in vanilla (native?) openwrt, by install luci-ssl.
Then I tried luci-openssl, and then I lost the GL inet UI page. (finally i reset the router)
Please see if later could try force the https protocol as it’s year 2020 now.
using http means your family/friends/enemies can read your packets between you
and the router.
Thank you.
.
.
.
for luci-ssl one:
I am expert, show me some extra “hardening”…
If you have >=8MB Flash ROM and share your homenetwork with other people, it is good practice to activating https for your LuCi admin web GUI. As this requires some free flash space, https isn’t activated by default in the current version (as otherwise several devices <=4MB could not be supported by OpenWrt any longer). It may be that the maintainer of your device has already activated https in your devices OpenWrt edition by default. In this case you already got this security bonus right away without extra effort. (And note: The SSH admin access is always SSL-encrypted by default)
opkg update
opkg install luci-ssl
/etc/init.d/uhttpd restart
.
.
.
for the openssl one:
2. Providing encryption
Connect to your router via SSH and install the packages.
For devices with limited flash or running v18 (or prior, though you should strongly consider upgrading)
opkg update opkg install luci-ssl-openssl
For routers without significant space constraints running on snapshots/master or v19 or later, it is possible to install using nginx (a commercial-grade web server)
It will say not secure, that is just because the certificate is self signed, made on the router and not validated. Browsers will only say it’s secure if you:
a) use a hostname (your gl DDNS address for example)
AND
b) use a paid certificate or LetsEncrypt (on the hostname above)
For any ip’s, even if you do the above, it will show as not secure, even though it is HTTPS and is encrypted.
I usually do this process on my server not on the router itself, and just copy the certificate automatically from the server. If you want to do it directly on the router, you will need to use this tool:
There is unfortunately no version compiled, so you would have to do it using the GL SDK:
@alzhao Might be able to ask the GL guys to build you one for your specific router.