1

For the use case where the WAN connection goes down, but employees can still access wifi, I'd like them to be able to check on some sort of a public router status page in their problem reports. This may have been available on DD-WRT at one point (or still is), I can't 100% recall anymore.

Going through all LuCI's screens with a fine-toothed comb and googling a fair amount isn't producing results. Anyone have a solution?

lkraav
  • 786
  • 1
  • 8
  • 22

2 Answers2

2

It can be achieved easily but can be a threat to your netwrok security (eg: The client MAC addresses are not masked). Better use Michael Hampton's suggestion to create your own status page with the API.

  1. Create /usr/lib/lua/luci/controller/overview.lua

    module("luci.controller.overview", package.seeall)
    
    function index()
        assign({"overview"}, {"admin", "status", "overview"}, nil)
    end
    
  2. Run rm -rf /tmp/luci-indexcache /tmp/luci-modulecache/

  3. Logout from luci interface

  4. Visit http://192.168.1.1/cgi-bin/luci/overview (change the IP according to your setup)

  5. Add /usr/lib/lua/luci/controller/overview.lua to /etc/sysupgrade.conf so it survives upgrades

Anyway, you can always strip down/modify the admin->status->overview page Lua codes and add it to a new public page. Adding new pages on Luci web interface is also quite easy.

More info:

Sourav Ghosh
  • 123
  • 9
1

DD-WRT had a public status page (which can be a security risk); OpenWrt does not.

However, LuCI does have an API, so you could write your own status page pretty quickly, and secure it properly.

Michael Hampton
  • 244,070
  • 43
  • 506
  • 972
  • Thanks. Hmm maybe there's a way to take LuCI's status screen code and strip it down something less risky but still useful. Good pointer to the API. – lkraav Aug 25 '14 at 15:58