WifiDog系统

简介: WifiDog:A captive portal suite What is it composed of ? A: It is composed of 2 components: The client is a daemon process - this gets installe...

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  SourceForge

    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.sh
    make
    make 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).

    OpenWrt? ipkg

    More details can be found in the README.openwrt file.

    mkdir ~/wifidog.openwrt
    cd ~/wifidog.openwrt
    wget http://downloads.openwrt.org/whiterussian/newest/OpenWrt-SDK-Linux-i686-1.tar.bz2
    tar -jxvf OpenWrt-SDK-Linux-i686-1.tar.bz2
    svn checkout https://dev.wifidog.org/svn/trunk/wifidog
    cd wifidog
    ./autogen.sh
    make 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.

目录
相关文章
|
JSON 安全 IDE
基于ESP8266网络天气时钟的OLED显示
【8月更文挑战第25天】基于ESP8266的网络天气时钟通过OLED显示屏提供直观的时间与天气信息。硬件包括ESP8266开发板、OLED显示屏及其他元件。软件实现涉及Wi-Fi连接、天气API数据获取、NTP时间同步及OLED显示控制。显示内容设计包括清晰的时间格式与详细的天气描述,支持图标展示。项目支持自动更新机制、低功耗模式,并可扩展闹钟等功能。开发者需根据具体环境调整优化,确保系统稳定可靠。
598 0
|
自然语言处理 Java 数据库连接
掌握JSP页面编程:动态生成Web内容
【4月更文挑战第3天】Java Server Pages (JSP) 是一种用于创建动态Web内容的Java技术,它结合HTML并允许在页面中嵌入Java代码。JSP支持代码片段、表达式语言(EL)和JSTL标签库,简化动态内容生成。当服务器接收到请求时,执行JSP中的Java代码并将结果嵌入HTML返回给客户端。示例展示了如何显示当前日期和时间。JSP可与Servlet、JavaBeans、数据库等结合,用于构建功能丰富的交互式Web应用。
339 5
掌握JSP页面编程:动态生成Web内容
|
传感器 编解码 监控
|
4月前
|
自然语言处理 API
tiktok养号脚本, 抖音自动养号脚本app,批量起号插件脚本
该养号系统包含三大核心模块:主控程序实现自动化操作流程,内容生成器创建自然语言内容
|
6月前
|
机器学习/深度学习 运维 资源调度
运维,不再“救火”!机器学习如何让故障预警成为现实?
运维,不再“救火”!机器学习如何让故障预警成为现实?
210 2
|
存储 运维 安全
软件体系结构 - 信息系统架构
【4月更文挑战第20天】软件体系结构 - 信息系统架构
607 13
|
SQL 存储 分布式计算
从 0 到 1 搭建大数据平台之计算存储系统
从 0 到 1 搭建大数据平台之计算存储系统
562 0
|
弹性计算 监控 BI
抢占式实例最佳实践——如何选择出价模式
本文为您介绍新的组合方案"SpotAsPriceGo+OOSPriceMonitor",在帮助您有效降低中断概率的同时,又能保障价格不会偏离您的预期值,帮助您合理控制成本。
抢占式实例最佳实践——如何选择出价模式
|
存储 弹性计算 对象存储
阿里云4核8G服务器10M带宽支持在线人数并发量计算
阿里云4核8G服务器支持多少人同时在线?阿里云服务器10M带宽支持多少并发量?阿里云4核8G服务器选择计算型c6还是共享型s6?
597 1
阿里云4核8G服务器10M带宽支持在线人数并发量计算
|
机器学习/深度学习 人工智能 自然语言处理
机器之心独家对话田渊栋:无监督学习具有超过人类的发展潜力
近期,机器之心对田渊栋进行了一次独家专访。关于人工智能、个人经历以及前沿技术研究的进展,田博士分享了诸多鲜为人知的故事和观点。
687 0
机器之心独家对话田渊栋:无监督学习具有超过人类的发展潜力