Installing Nodogsplash
It is based on a plugin on OPENWRT for user login verification, see:
Https://github.com/nodogsplash/nodogsplash
This name is very lively, very interesting, called Nodog. In fact, he is for OpenWrt on another similar plug-in: WiFi dog, that configuration is more complex, need to deploy the authentication server, not suitable for me to use.
This is not the watchdog (no dog) is very suitable for me!
Installing the plugin is simple, after Telnet connects, execute the command:
opkg updateopkg Install Nodogsplash
Attention:
It is possible to perform the first line to update the Times error, unable to connect to the server, check the server address in the etc/opkg.conf, whether the change has occurred.
When you perform the second line, you may be prompted that the current firmware version does not match the Nodogsplash on the server, then upgrade the existing firmware, which is not expanded here, generally not encountered (but I encountered, because my firmware was downloaded one months ago, the version of the server has been upgraded)
Configure Nodogsplash
An example of a configuration is introduced: Http://wiki.openwrt.org/doc/howto/wireless.hotspot.nodogsplash
But with the new version of the plug-in is not very compatible with the new version after installation, there is no/etc/nodogsplash/nodogsplash.conf this configuration file, you need to manually build a WINSCP
Attention:
Do not refer to the first half of the example, just copy the configuration in the Nodogsplash section (see)
This is introduced in a very detailed, generally do not have to modify, the only easy to confuse and also need to modify is this gatewayinterface configuration
In fact, it refers to the need to be taken over by the Nodog to take over the interface, it is clear, this example is in the network configuration of the guest interface, but we are to fill in the guest?
No, this time you need to see the current network interface configuration through the Ifconfig command, see.
Our guest interface assigns 10.0.0.1, so its gatewayinterface name is Wlan0-1
You might ask me, where is the guest name? Don't ask me, I don't know ... sign
Start Nodog
Type the command:
/etc/init.d/nodogsplash start
To view the Nodog status command:
ndsctl status![ndgctl.jpg][3]
Nodog status after final configuration, take note of line fourth, Managed interface:wlan0-1
Auto Start Nodog
You will find that after restarting the route, how does the Nodog not start??
Add self-starter configuration!
Open WinSCP, enter:/etc/hotplug.d/iface
New file: 95-nodog
Modify 95-nodog Content:
#!/bin/shif [ "$ACTION" = ifup ]; then if [ "$DEVICE" = "wlan0-1" ]; then /etc/init.d/nodogsplash enabled /etc/init.d/nodogsplash start fi fi
Complete
When you connect to WiFi using your computer or mobile phone, you will be redirected to the certification page.
This article by http://www.wifidog.pro/2015/04/27/openwrt%E5%AE%89%E8%A3%85nodogsplash.html compilation, reprint please indicate the source
OpenWrt installation Nodogsplash