WifiDog and OpenWrt
| $Id$ | |
| 2 | |
|---|---|
| 3 | OpenWRT specific README |
| 4 | ======================= |
| 5 | |
| 6 | So, you want to run wifidog on one of linksys's WRT wireless routers! |
| 7 | |
| 8 | OpenWRT is the embedded linux-gnu bundle that runs on the linksys WRT |
| 9 | series routers (among numerous others). |
| 10 | |
| 11 | OpenWRT's home page is http://openwrt.org/ |
| 12 | |
| 13 | ---- I just want to RUN the thing: ---- |
| 14 | -DO NOT use the wifidog packages distributed by OpenWRT (you are asking for trouble, they are broken in various ways; you will get no support if you do) |
| 15 | -Use the official wifidog packages on sourceforge (currently only available for whiterussian. |
| 16 | |
| 17 | ---- I want to develop and test on OpenWRT ---- |
| 18 | |
| 19 | To build wifidog so that it may be run on the linksys wrt routers you |
| 20 | must first obtain the OpenWRT toolchain. This toolchain is a set of |
| 21 | compilers and other software development tools that will allow you, |
| 22 | running on your intel/pentium/mac computer to compile and develop software |
| 23 | that is to run on the mips based linksys wrt series routers, which is |
| 24 | based on another computer cpu chip entirely. |
| 25 | |
| 26 | You have several options for building wifidog using the OpenWRT toolchain. |
| 27 | |
| 28 | Option 1. get the prebuilt, minimal OpenWRT toolchain (The OpenWRT SDK), and give the makefile it's path. This is the best option, assuming you have a x86_64 Os (the SDK is distributed only for x86_64). |
| 29 | |
| 30 | For OpenWRT 0.9 (Whiterussian): |
| 31 | cd ~ |
| 32 | wget http://downloads.openwrt.org/whiterussian/newest/OpenWrt-SDK-Linux-i686-1.tar.bz2 |
| 33 | tar -jxvf OpenWrt-SDK-Linux-i686-1.tar.bz2 |
| 34 | cd wifidog |
| 35 | make whiterussianipk OPENWRTSDK=~/OpenWrt-SDK-Linux-i686-1/ |
| 36 | |
| 37 | For OpenWRT Kamikaze up till 7.09: |
| 38 | cd ~ |
| 39 | wget http://downloads.openwrt.org/kamikaze/7.09/brcm-2.4/OpenWrt-SDK-brcm-2.4-for-Linux-x86_64.tar.bz2 |
| 40 | tar -jxvf OpenWrt-SDK-brcm-2.4-for-Linux-x86_64.tar.bz2 |
| 41 | cd wifidog |
| 42 | make kamikazeipk OPENWRTSDK=~/OpenWrt-SDK-brcm-2.4-for-Linux-x86_64 |
| 43 | |
| 44 | For OpenWRT Kamikaze 8.09 and up, there is no SDK available and the 7.09 SDK does not work. So Option 1 is not an option. Option 2 is not an option either since building the SDK did not seem to work (https://forum.openwrt.org/viewtopic.php?id=17879). So jump to Option 3! |
| 45 | |
| 46 | If it works (!) you will have an ipkg file in $(OPENWRTSDK)/bin/packages/ |
| 47 | You can then boot up your OpenWrt |
| 48 | router, copy the .ipk to it, and install it using the ipkg commands. |
| 49 | |
| 50 | You should also make sure that the wifidog prereqs are already |
| 51 | installed on the router before you try to run wifidog. Note that if you build the |
| 52 | packages with the instructions above, they will download the required dependencies auomatically (if you have an internet connecion on yout router) and will refuse to install without them. |
| 53 | |
| 54 | The prereqs are: |
| 55 | * iptables command and modules mac, mark and MARK |
| 56 | * iptables kernel module mac |
| 57 | * libpthread |
| 58 | |
| 59 | These are all packages you can install on your running OpenWrt router |
| 60 | using the ipkg commands. If the router is on the net, the ipkg |
| 61 | commands can download the packages from www.openwrt.org, just like |
| 62 | debian apt-get or fedora yum or up2date. |
| 63 | |
| 64 | Option 2. Build your own SDK (or find someone to do it for you) |
| 65 | cd ~ |
| 66 | wget http://downloads.openwrt.org/kamikaze/7.09/kamikaze_7.09.tar.bz2 |
| 67 | tar -jxvf kamikaze_7.09.tar.bz2 |
| 68 | cd kamikaze_7.09 |
| 69 | make menuconfig #(Make sure you build the SDK in "special targets") |
| 70 | make #(could take hours downloading and compiling all dependencies) |
| 71 | Follow the instructions in Option 1, using the SDK you build instead of downloading it. |
| 72 | |
| 73 | Option 3. Use the full buildroot directly (time consuming...) |
| 74 | cd wifidog |
| 75 | make dist |
| 76 | cd ~ |
| 77 | wget http://downloads.openwrt.org/kamikaze/7.09/kamikaze_7.09.tar.bz2 |
| 78 | tar -jxvf kamikaze_7.09.tar.bz2 |
| 79 | cp -R wifidog/contrib/build-openwrt-kamikazeipk/wifidog kamikaze_7.09/package/ |
| 80 | cp wifidog/wifidog-1.1.5.tar.gz kamikaze_7.09/dl/ |
| 81 | cd kamikaze_7.09 |
| 82 | make menuconfig #(Follow instructions on OpenWRT's site to setup your buildroot for your platform) |
| 83 | make #(could take hours downloading and compiling all dependencies) |
| 84 | |
| 85 | For Kamikaze 8.09 and up, there is an extra dependency to add to the package, so here would be the new procedure |
| 86 | cd wifidog |
| 87 | make dist |
| 88 | cd ~ |
| 89 | wget http://downloads.openwrt.org/kamikaze/8.09/kamikaze_8.09.tar.bz2 |
| 90 | tar -jxvf kamikaze_8.09.tar.bz2 |
| 91 | cp -R wifidog/contrib/build-openwrt-kamikazeipk8.09up/wifidog kamikaze_8.09/package/ |
| 92 | cp wifidog/wifidog-1.1.5.tar.gz kamikaze_8.09/dl/ |
| 93 | cd kamikaze_8.09 |
| 94 | make menuconfig #(Follow instructions on OpenWRT's site to setup your buildroot for your platform) |
| 95 | make #(could take hours downloading and compiling all dependencies) |
| 96 |
WifiDog and OpenWrt的更多相关文章
- OpenWRT使用wifidog实现强制认证的WIFI热点
首先安装wifidog到OpenWRT的路由器: opkg update opkg install wifidog wifidog依赖下面这些模块: iptables-mod-extra iptabl ...
- [转载]OpenWRT使用wifidog实现强制认证的WIFI热点 | 半个橙子
首先安装wifidog到OpenWRT的路由器: opkg update opkg install wifidog wifidog依赖下面这些模块: iptables-mod-extra iptabl ...
- 手机连接wifi自动弹窗的原理及其实现方案
一.手机连上wifi后会自动弹窗的原理 生活中,有很多需要认证的路由器,手机连接wifi热点后会自动弹出一个网页,让用户输入账号和密码,比如星巴克,肯地基,麦当劳,甚至是火车站和机场的候车室.其实这是 ...
- wifidog编译到openwrt
首先敲一下 cd 命令,定位到自己的用户目录, 然后 mkdir openwrt 新建一个openwrt文件夹,然后开始装openwrt的编译用到的工具, sudo apt-get install g ...
- OpenWrt中wifidog的配置及各节点页面参数
修改/etc/wifidog.conf, 只需要修改文件的前半部分, 其他都保持默认 GatewayID default GatewayInterface br-lan GatewayAddress ...
- openwrt opkg update wget returned 4 wget returned 1
最近在正捣鼓mt7620芯片的路由器,刷入openwrt Pandora系统以后想装wifidog实现web认证. 我用我自己的一个水星的路由器PPPOE拨号,通过水星的lan口连接网线到我openw ...
- WifiDog系统
WifiDog:A captive portal suite What is it composed of ? A: It is composed of 2 components: The clien ...
- wifidog交叉编译
本文主要记录在linux平台下.交叉编译wifidog并在openwrt平台上执行的过程.主要是针对wifidog源代码被改动后. 不得不亲自进行交叉编译移植的时候,所碰到的一些问题. (1)下载源代 ...
- wifidog接口文档(转)
目录(?)[-] 网关心跳协议 请求信息 回复格式 例子 用户状态心跳协议 请求格式 注意 回复格式 状态码 例子 跳转协议 请求格式 例子 注册协议 请求格式 例子 wifidog是搭建无线热点认证 ...
随机推荐
- Could not open ServletContext resource [/WEB-INF/applicationContext.xml]解决方法
抛错: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document ...
- Python字典的操作与使用
字典的描述 字典是一种key-value的数据类型,使用就像我们上学用的字典,通过拼音(key)来查对应字的详细内容(value). 字典的特性 1.字典是无序的(不像列表一样有下标,它通过key来获 ...
- IOS详解TableView——选项抽屉(天猫商品列表)
在之前的有篇文章讲述了利用HeaderView来写类似QQ好友列表的表视图. 这里写的天猫抽屉其实也可以用该方法实现,具体到细节每个人也有所不同.这里采用的是点击cell对cell进行运动处理以展开“ ...
- Sonar入门(五):使用 Sonar 进行代码质量管理
Sonar 概述 Sonar 是一个用于代码质量管理的开放平台.通过插件机制,Sonar 可以集成不同的测试工具,代码分析工具,以及持续集成工具. 与持续集成工具(例如 Hudson/Jenkins ...
- Windows使用WxWidgets开发界面(c++)环境搭建
一直想学习wxWidgets,之前使用的都是wxPython,现在终于鼓起勇气学习这个了,发现原来是基于vc6.0开发的.所以最好的学习办法就是安装vistual studio 2010,方便学习看代 ...
- jQuery中 $ 符号的冲突问题
jQuery中 $ 符号的冲突问题是常见问题之一. 在jQuery中,$是jQuery的别名,为了书写方便,我们更习惯用$('#id')这一类的方式来书写代码.当同一页面引用了jQuery多个版本 ...
- Picasso – Android系统的图片下载和缓存类库
Picasso – Android系统的图片下载和缓存类库 Picasso 是Square开源的一个用于Android系统下载和缓存图片的项目.该项目和其他一些下载图片项目的主要区别之一是:使用4.0 ...
- jQuery.extend 和 jQuery.fn.extend
1.jQuery.extend 我们先把jQuery看成了一个类,这样好理解一些.jQuery.extend(),是扩展的jQuery这个类. 假设我们把jQuery这个类看成是人类,能吃饭能喝水能跑 ...
- HTML5 prefetch即预加载
原文地址 声明:此文带着自己的理解,不完全按原文翻译 prefetch 即预加载,在用户需要前我们就将所需的资源加载完毕. 有了浏览器缓存,为何还需要预加载? 用户可能是第一次访问网站,此时还无缓存 ...
- javascript系统时间
<div> <%--系统时间--%> 当前时间是: <script type=& ...