博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
WifiDog系统
阅读量:6127 次
发布时间:2019-06-21

本文共 3069 字,大约阅读时间需要 10 分钟。

WifiDog:A captive portal suite

What is it composed of ?

A: It is composed of 2 components:

  1. The client is a daemon process - this gets installed on every wireless router
  2. The auth server is a web application - this gets installed in a central location

    What do I need ?

    1. Basic proficiency in a GNU/Linux environment
    2. A GNU/Linux OS with netfilter compiled into the kernel
    3. The iptables package
    4. The GNU C compiler (gcc). Other compilers may work, but we have not tested and will not support them.
    5. The latest Wifidog tarball which can be obtained from

    Pre-installation

    This is where a lot of people run into problems, so let's state this in bold:

    MAKE SURE EVERYTHING WORKS FIRST BEFORE INTRODUCING Wifidog INTO THE ENVIRONMENT

    That especially means:

    • The router must boot properly
    • The router must bring up the interfaces properly
    • The router must set up the routes properly
    • The router must connect to the internet properly
    • DNS settings must be set or obtained properly. DNS must work.
    • DHCP settings (client, server or both) must be set or obtained properly.
    • The ipt_mac.o kernel module must be loaded.
    • If using NAT, the router must setup NAT/masquerading rules with iptables properly
    • Clients on the desired (WIFI) network must be able to bind, associate, lease and connect the internet properly
    • All the above must happen automatically when the router starts or gets rebooted

    Do NOT proceed with installing Wifidog until you've satisfied the above. It will not work otherwise and you will waste lots of time.

    Installation

    Wifidog, like many open source projects, is distributed with standard autotools utilities to make installation easy. Unpack the tarball (from Sourceforge) or get the lastest source from SVN (see Download menu), then follow the standard:

    ./autogen.shmakemake install

    If you do not install it with make install, then you will find the compiled wifidog gateway binary in src/wifidog (also don't forget to copy wifidog.conf to /etc).

    ipkg

    More details can be found in the file.

    mkdir ~/wifidog.openwrtcd ~/wifidog.openwrtwget http://downloads.openwrt.org/whiterussian/newest/OpenWrt-SDK-Linux-i686-1.tar.bz2tar -jxvf OpenWrt-SDK-Linux-i686-1.tar.bz2svn checkout https://dev.wifidog.org/svn/trunk/wifidogcd wifidog./autogen.shmake ipk OPENWRTSDK=~/wifidog.openwrt/OpenWrt-SDK-Linux-i686-1

    If there were no errors, your package should be in ~/wifidog.openwrt/OpenWrt-SDK-Linux-i686-1/bin/packages

    Configuration

    Edit /etc/wifidog.conf and follow the instructions in the file. Things should be self-explanatory.

    Running Wifidog for the first time

    Run Wifidog with the following switches:

    wifidog -f -d 7  -f means to run in foreground (do not become a background daemon)  -d 7 increases debug output level to the maximum

    Testing

    As a client on the WiFi network (or whatever interface is configured as the LAN interface in /etc/wifidog.conf), open a web browser and try to browse to your favourite web site.

    Monitor the output of the running Wifidog to see what it's doing.

posted on
2015-05-23 20:54 阅读(
...) 评论(
...)

转载于:https://www.cnblogs.com/ruiy/p/4524857.html

你可能感兴趣的文章
Qt Style Sheet实践(四):行文本编辑框QLineEdit及自动补全
查看>>
[物理学与PDEs]第3章习题1 只有一个非零分量的磁场
查看>>
深入浅出NodeJS——数据通信,NET模块运行机制
查看>>
onInterceptTouchEvent和onTouchEvent调用时序
查看>>
android防止内存溢出浅析
查看>>
4.3.3版本之引擎bug
查看>>
SQL Server表分区详解
查看>>
使用FMDB最新v2.3版本教程
查看>>
SSIS从理论到实战,再到应用(3)----SSIS包的变量,约束,常用容器
查看>>
STM32启动过程--启动文件--分析
查看>>
垂死挣扎还是涅槃重生 -- Delphi XE5 公布会归来感想
查看>>
淘宝的几个架构图
查看>>
Android扩展 - 拍照篇(Camera)
查看>>
JAVA数组的定义及用法
查看>>
充分利用HTML标签元素 – 简单的xtyle前端框架
查看>>
设计模式(十一):FACADE外观模式 -- 结构型模式
查看>>
iOS xcodebuile 自动编译打包ipa
查看>>
程序员眼中的 SQL Server-执行计划教会我如何创建索引?
查看>>
cmake总结
查看>>
数据加密插件
查看>>