WiFiDog certified WiFi hotspot for OPENWRT mandatory authentication

Source: Internet
Author: User

First install the WiFiDog to OpenWrt router:

opkg updateopkg Install WiFiDog

WiFiDog relies on the following modules:

iptables-mod-extraiptables-mod-ipoptkmod-ipt-natiptables-mod-nat-  Extralibpthread

Because trunk firmware update will be more frequent, will lead to direct opkg install WiFiDog installation, if you happen to not back up with the firmware corresponding packages, you need to http://downloads.openwrt.org/ Snapshots/trunk upgrade the firmware, and then install the WiFiDog.

If your router is not an officially supported version of OPENWRT, then you need to compile the firmware yourself. After make menuconfig, select WiFiDog in the Network–>captive portals.

After the installation is complete,

/etc/init.d/WiFiDog enable/etc/init.d/wifidog start

An error is thrown because we have not set the Authserver information yet. For more information on installing WiFiDog, refer to: Http://wiki.openwrt.org/doc/howto/wireless.hotspot.wifidog

Install auth Server below, according to the official statement:
Authpuppy is the next Generation authentication server for Wifidog networks.
Source Document http://www.authpuppy.org/
But seemingly this wifidog and authpuppy have been n long not updated ...

Authputty is required to install apache2, PHP5 and MySQL. Details are here: http://www.authpuppy.org/doc/Getting_Started

After successful installation, access to Authpuppy will require you to set up some database information, you can see the home page after all settings are complete:

Of course, we also need to set up an administrator's account.

Enter Manage Plugins,install Apauthlocaluserplugin, remember to enable this plugin.

Then, click Manage Nodes to change the status of the default node to deployed. This GW (Gateway) ID default is used when configuring wifidog.conf.

Here, the basic configuration of the authpuppy is complete.

Below back to the router, edit wifidog.conf, in general, we then configure Externalinterface,gatewayinterface and Authserver these three items will be available, other default. Here is my configuration:

Gatewayiddefault #注意这个ID必须跟AuthPuppy的GW ID Consistent # parameter:externalinterface# default:none# optional## Set 
     Thisto the externalInterface(The one Going outTo the inernet or your larger LAN). # typically Vlan1 forOpenWrt, and eth0 or ppp0 otherwise,# normally autodetectedexternalinterface eth0 #路由器外网的物理接口 # Parameter:gatewa yinterface# default:none# mandatory## Set Thisto theInternal Interface(typically your wifiInterface). # typically BR-lan forOpenWrt, and eth1, Wlan0, Ath0, etc. otherwisegatewayinterface wlan0 #路由器内网的物理接口AuthServer {Hostname192.170.1.104sslavailable No Path/}checkinterval -ClientTimeout5FirewallrulesetGlobal{}firewallruleset Validating-users {firewallrule allow to0.0.0.0/0}firewallruleset known-users {firewallrule allow to0.0.0.0/0}firewallruleset Unknown-users {firewallrule allow UDP port -firewallrule allow TCP port -firewallrule allow UDP port thefirewallrule allow TCP port the}firewallruleset Locked-Users {Firewallrule block to0.0.0.0/0}
wifidog.conf

Note that this interface is a physical interface.

[Email protected]:~# cat/etc/config/NetworkconfigInterface' loopback ' option ifname ' lo ' option Proto 'Static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config globals ' globals ' option Ula_prefix ' fd09:fd03:490d::/ -′configInterface' LAN ' option Proto 'Static' option ipaddr '192.168.1.1' option netmask '255.255.255.0' option Ip6assign ' -' option _orig_ifname ' eth0′option _orig_bridge 'false' configInterface' WAN ' option proto ' DHCP ' option _orig_ifname ' gretap0′option _orig_bridge 'false' option ifname ' eth0′
/etc/config/network

This article by http://www.wifidog.pro/2015/04/07/wifidog%E8%AE%A4%E8%AF%81wifi%E7%83%AD%E7%82%B9.html compilation, reprint please indicate the source

WiFiDog certified WiFi hotspot for OPENWRT mandatory authentication

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.