openwrt connection refused luci

OpenWRT – connection refused after install or upgrade

Are you unable to access LuCi – OpenWRT – connection refused after install or upgrade ? You might get this error ERR_CONNECTION_REFUSED.

openwrt connection refused luci
openwrt connection refused luci

So how do you login to web interface of your router? scared that it does not work after a fresh install of OpenWRT ?

This should be simple to fix. I’ll asume that you downloaded an RC2 version of OpenWRT. It is specified that it does not include Luci (the web interface). The browser will report that the connection is not secure and will show “ERR_CONNECTION_REFUSED”.

In order to fix this issue, open a ssh connection to your router.

First connect to your router using a LAN cable. Then open putty and start a connection to 192.168.1.1 User:root

Since Luci is not part of OpenWRT RC2, the solution is to install it.

Use

opkg update 

then

opkg install luci.

You will see the log listed below and after this, you will be able to login to your router using a web browser:

root@OpenWrt:/etc# opkg install luci
Installing luci (git-16.117.68571-313e325-1) to root…
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/luci/luci_git-16.117.68571-313e325-1_all.ipk.
Installing uhttpd (2015-11-08-fe01ef3f52adae9da38ef47926cd50974af5d6b7) to root…
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/base/uhttpd_2015-11-08-fe01ef3f52adae9da38ef47926cd50974af5d6b7_ar71xx.ipk.
Installing uhttpd-mod-ubus (2015-11-08-fe01ef3f52adae9da38ef47926cd50974af5d6b7) to root…
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/base/uhttpd-mod-ubus_2015-11-08-fe01ef3f52adae9da38ef47926cd50974af5d6b7_ar71xx.ipk.
Installing luci-mod-admin-full (git-16.117.68571-313e325-1) to root…
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/luci/luci-mod-admin-full_git-16.117.68571-313e325-1_ar71xx.ipk.
Installing luci-base (git-16.117.68571-313e325-1) to root…
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/luci/luci-base_git-16.117.68571-313e325-1_ar71xx.ipk.
Installing lua (5.1.5-1) to root…
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/base/lua_5.1.5-1_ar71xx.ipk.
Installing liblua (5.1.5-1) to root…
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/base/liblua_5.1.5-1_ar71xx.ipk.
Installing libuci-lua (2016-02-02.1-1) to root…
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/base/libuci-lua_2016-02-02.1-1_ar71xx.ipk.
Installing luci-lib-nixio (git-16.117.68571-313e325-1) to root…
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/luci/luci-lib-nixio_git-16.117.68571-313e325-1_ar71xx.ipk.
Installing luci-lib-ip (git-16.117.68571-313e325-1) to root…
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/luci/luci-lib-ip_git-16.117.68571-313e325-1_ar71xx.ipk.
Installing rpcd (2016-04-13-73aea9b8b621a1ce034bc6ee00c9d058a40c8a3d) to root…
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/base/rpcd_2016-04-13-73aea9b8b621a1ce034bc6ee00c9d058a40c8a3d_ar71xx.ipk.
Installing libubus-lua (2016-01-26-619f3a160de4f417226b69039538882787b3811c) to root…
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/base/libubus-lua_2016-01-26-619f3a160de4f417226b69039538882787b3811c_ar71xx.ipk.
Installing luci-lib-jsonc (git-16.117.68571-313e325-1) to root…
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/luci/luci-lib-jsonc_git-16.117.68571-313e325-1_ar71xx.ipk.
Installing luci-theme-bootstrap (git-16.117.68571-313e325-1) to root…
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/luci/luci-theme-bootstrap_git-16.117.68571-313e325-1_all.ipk.
Installing luci-app-firewall (git-16.117.68571-313e325-1) to root…
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/luci/luci-app-firewall_git-16.117.68571-313e325-1_all.ipk.
Installing luci-proto-ppp (git-16.117.68571-313e325-1) to root…
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/luci/luci-proto-ppp_git-16.117.68571-313e325-1_all.ipk.
Installing libiwinfo-lua (2016-01-25-e4aca3910dff532ed878d0ceaf1ab6e8ad7719bf) to root…
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/base/libiwinfo-lua_2016-01-25-e4aca3910dff532ed878d0ceaf1ab6e8ad7719bf_ar71xx.ipk.
Installing luci-proto-ipv6 (git-16.117.68571-313e325-1) to root…
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/luci/luci-proto-ipv6_git-16.117.68571-313e325-1_all.ipk.
Configuring liblua.
Configuring libuci-lua.
Configuring rpcd.
Configuring luci-lib-ip.
Configuring libubus-lua.
Configuring libiwinfo-lua.
Configuring luci-theme-bootstrap.
Configuring luci-app-firewall.
Configuring lua.
Configuring luci-proto-ppp.
Configuring luci-lib-nixio.
Configuring luci-lib-jsonc.
Configuring luci-base.
Configuring luci-mod-admin-full.
Configuring luci-proto-ipv6.
Configuring uhttpd.
Configuring uhttpd-mod-ubus.
Configuring luci.
root@OpenWrt:/etc#