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是搭建无线热点认证 ...
随机推荐
- 用Nginx实现Session共享的均衡负载
前言 大学三年多,也做个几个网站和APP后端,老是被人问到,如果用户多了服务器会不会挂,总是很尴尬的回答:“哈哈,我们的用户还少,到了服务器撑不住的时候,估计都上市了吧”.说是这么说,但是对于有强迫症 ...
- scp 对拷文件夹 和 文件夹下的所有文件 对拷文件并重命名
对拷文件夹 (包括文件夹本身) scp -r /home/wwwroot/www/charts/util root@192.168.1.65:/home/wwwroot/limesurvey_ba ...
- 程序员必备基础知识:通信协议——Http、TCP、UDP
CP HTTP UDP: 都是通信协议,也就是通信时所遵守的规则,只有双方按照这个规则“说话”,对方才能理解或为之服务. TCP HTTP UDP三者的关系: TCP/IP是个协议组,可分为四个层次: ...
- 充分发挥 JavaScript 语言的优势
尽管我在生产环境中使用 JavaScript 长达 8 年之久了,但是,直到最近 2 年,我才开始学习如何正确地编写 JavaScript 代码,根据我对人们的理解,很多开发者都有类似经历.我们有相当 ...
- 上传图片代码(chuantouxiang.php+touxiangchuli.php)
<body> <form action="touxiangchuli.php" method="post" enctype="mul ...
- Eclipse创建java webproject配置Tomacat和JDK
在学习AJAX过程中.还用Intellij就有点老旧了,这是后装个Eclipse时,发现这个配置也非常头疼.如今就叫你怎样创建一个webproject,同一时候叫你配置Eclipse. 一.创建一个w ...
- oracle卸载Oracle Clusterware(转载)
1.脚本自动删除 切换到root用户 $Su – root #cd $ORA_CRS_HOME/install 1.执行rootdelete.sh脚本 # ./rootdelete.sh 2.执行ro ...
- js_day13
- 查看哪些进程占用了SWAP分区?
在日常管理中,我们经常会遇到swap分区使用比较多,那么导致是那些进程使用的呢,其实我们可以通过/proc/pid/下的smaps来获得.使用下面的命令可以列出所有进程占用的swap分区的大小,分别我 ...
- .NET基础拾遗(4)委托为何而生?
生活中的例子: 你早上要吃包子作为早饭,那么你可能让你爸爸或者妈妈帮你做,那你就会调用 爸爸.要包子() 或妈妈.要包子() 返回包子对象. 但是如果你爸妈不在家的时候,你只能去街上买,问题是你根本不 ...