Changeset 724
- Timestamp:
- 09/08/05 23:30:32 (8 years ago)
- Location:
- trunk/wifidog
- Files:
-
- 5 modified
-
ChangeLog (modified) (1 diff)
-
NEWS (modified) (1 diff)
-
README.openwrt (modified) (1 diff)
-
configure.in (modified) (1 diff)
-
scripts/init.d/wifidog (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog/ChangeLog
r639 r724 1 1 # $Header$ 2 2005-05-23 Philippe April <philippe@ilesansfil.org> 3 * Added compile instructions and installation for OpenWrt Whiterussian-rc2 4 * Released 1.1.2 2 5 3 6 2005-05-24 Mina Naguib <mina@ilesansfil.org> -
trunk/wifidog/NEWS
r531 r724 1 WiFiDog 1.1.2: 2 - Added some informations so it compiles on newer OpenWRT's (whiterussian-rc2) 3 - Fixed minor issue with wdctl 4 - Changed the iptables rules priority to allow existing NAT rules to work 5 - read()s from central server in auth_server_request() are 6 now timed-out (via select). This is hopefully a bugfix to the 7 thread-freezing problem. 8 - Bugfix non-RFC compliant HTTP requests using \n instead of \r\n as line 9 terminations as per email from ludocornut@users.sourceforge.net 10 - Firewall: make the default ruleset for validating users = allow all 11 (except sending SMTP) 12 13 Fixed issue with FAQ 14 1 15 WiFiDog 1.1.1: 2 16 - An auth server on port 80 will now work -
trunk/wifidog/README.openwrt
r249 r724 2 2 3 3 OpenWRT specific README 4 5 Since the newest OpenWRT releases, we will be able to release 6 binary IPKGs that should work on all the OpenWRT installations. 7 8 The binaries are available at sourceforge. 9 10 The older instructions are now outdated, but they are still at the bottom. 11 12 Because they now release the images and an SDK, you can also compile 13 WiFiDog for the images they distribute if the current IPKG we distribute is 14 not up-to-date enough for you. 15 16 To do so, download the SDK named: OpenWrt-SDK-Linux..... from OpenWRT, 17 then unpack the OpenWrt-SDK-WiFiDog tarball into the "package" directory of 18 OpenWrt-SDK, to have the files in a layout similar to this: 19 20 OpenWrt-SDK-Linux-i686-1/package/ 21 OpenWrt-SDK-Linux-i686-1/package/depend.mk 22 OpenWrt-SDK-Linux-i686-1/package/rules.mk 23 OpenWrt-SDK-Linux-i686-1/package/wifidog 24 OpenWrt-SDK-Linux-i686-1/package/wifidog/Config.in 25 OpenWrt-SDK-Linux-i686-1/package/wifidog/Makefile 26 OpenWrt-SDK-Linux-i686-1/package/wifidog/ipkg 27 OpenWrt-SDK-Linux-i686-1/package/wifidog/ipkg/wifidog.control 28 OpenWrt-SDK-Linux-i686-1/package/wifidog/ipkg/wifidog.init 29 OpenWrt-SDK-Linux-i686-1/package/wifidog/ipkg/wifidog.conffiles 30 31 Then, simply run make at the root of OpenWrt-SDK-Linux-i686-1. 32 33 You should end up with an IPKG file in OpenWrt-SDK-Linux-i686-1/bin/packages/ 34 if everything went well. 35 36 ---- OLDER INSTRUCTIONS ---- 4 37 5 38 In order to compile OpenWRT for the linksys WRT54G, you must first -
trunk/wifidog/configure.in
r635 r724 21 21 WIFIDOG_MAJOR_VERSION=1 22 22 WIFIDOG_MINOR_VERSION=1 23 WIFIDOG_MICRO_VERSION=2 _pre123 WIFIDOG_MICRO_VERSION=2 24 24 WIFIDOG_VERSION=$WIFIDOG_MAJOR_VERSION.$WIFIDOG_MINOR_VERSION.$WIFIDOG_MICRO_VERSION 25 25 -
trunk/wifidog/scripts/init.d/wifidog
r215 r724 83 83 } 84 84 85 ### Test ipt_REDIRECT with iptables 86 test_ipt_REDIRECT () { 87 IPTABLES_OK=$($IPT -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 2060 2>&1 | grep "No chain.target.match") 88 if [ -z "$IPTABLES_OK" ]; then 89 $IPT -t nat -D PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 2060 2>&1 90 echo 1 91 else 92 echo 0 93 fi 94 } 95 85 96 ### Find a module on disk 86 97 module_exists () { … … 153 164 echo " ipt_mark module is working" 154 165 fi 166 167 echo " Testing ipt_REDIRECT" 168 TEST_IPT_MAC=$(test_ipt_REDIRECT) 169 if [ "$TEST_IPT_MAC" = "0" ]; then 170 echo " iptables is not working with ipt_REDIRECT" 171 echo " Scanning disk for ipt_REDIRECT module" 172 TEST_IPT_MAC_MODULE_EXISTS=$(module_exists "ipt_REDIRECT") 173 if [ "$TEST_IPT_MAC_MODULE_EXISTS" = "0" ]; then 174 echo " ipt_REDIRECT module is missing, please install it (kernel or module)" 175 exit 176 else 177 echo " ipt_REDIRECT module exists, trying to load" 178 insmod ipt_REDIRECT > /dev/null 179 TEST_IPT_MAC_MODULE_MEMORY=$(module_in_memory "ipt_REDIRECT") 180 if [ "$TEST_IPT_MAC_MODULE_MEMORY" = "0" ]; then 181 echo " Error: ipt_REDIRECT not loaded" 182 exit 183 else 184 echo " ipt_REDIRECT loaded sucessfully" 185 fi 186 fi 187 else 188 echo " ipt_REDIRECT module is working" 189 fi 190 155 191 ;; 156 192
