Changeset 724

Show
Ignore:
Timestamp:
09/08/05 23:30:32 (3 years ago)
Author:
aprilp
Message:

* Added compile instructions and installation for OpenWrt? Whiterussian-rc2
* Released 1.1.2

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wifidog/ChangeLog

    r639 r724  
    11# $Header$ 
     22005-05-23 Philippe April <philippe@ilesansfil.org> 
     3        * Added compile instructions and installation for OpenWrt Whiterussian-rc2 
     4        * Released 1.1.2 
    25 
    362005-05-24 Mina Naguib <mina@ilesansfil.org> 
  • trunk/wifidog/NEWS

    r531 r724  
     1WiFiDog 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 
     13Fixed issue with FAQ 
     14 
    115WiFiDog 1.1.1: 
    216    - An auth server on port 80 will now work 
  • trunk/wifidog/README.openwrt

    r249 r724  
    22 
    33OpenWRT specific README 
     4 
     5Since the newest OpenWRT releases, we will be able to release 
     6binary IPKGs that should work on all the OpenWRT installations. 
     7 
     8The binaries are available at sourceforge. 
     9 
     10The older instructions are now outdated, but they are still at the bottom. 
     11 
     12Because they now release the images and an SDK, you can also compile 
     13WiFiDog for the images they distribute if the current IPKG we distribute is 
     14not up-to-date enough for you. 
     15 
     16To do so, download the SDK named: OpenWrt-SDK-Linux..... from OpenWRT, 
     17then unpack the OpenWrt-SDK-WiFiDog tarball into the "package" directory of 
     18OpenWrt-SDK, to have the files in a layout similar to this: 
     19 
     20OpenWrt-SDK-Linux-i686-1/package/ 
     21OpenWrt-SDK-Linux-i686-1/package/depend.mk 
     22OpenWrt-SDK-Linux-i686-1/package/rules.mk 
     23OpenWrt-SDK-Linux-i686-1/package/wifidog 
     24OpenWrt-SDK-Linux-i686-1/package/wifidog/Config.in 
     25OpenWrt-SDK-Linux-i686-1/package/wifidog/Makefile 
     26OpenWrt-SDK-Linux-i686-1/package/wifidog/ipkg 
     27OpenWrt-SDK-Linux-i686-1/package/wifidog/ipkg/wifidog.control 
     28OpenWrt-SDK-Linux-i686-1/package/wifidog/ipkg/wifidog.init 
     29OpenWrt-SDK-Linux-i686-1/package/wifidog/ipkg/wifidog.conffiles 
     30 
     31Then, simply run make at the root of OpenWrt-SDK-Linux-i686-1. 
     32 
     33You should end up with an IPKG file in OpenWrt-SDK-Linux-i686-1/bin/packages/ 
     34if everything went well. 
     35 
     36---- OLDER INSTRUCTIONS ---- 
    437 
    538In order to compile OpenWRT for the linksys WRT54G, you must first 
  • trunk/wifidog/configure.in

    r635 r724  
    2121WIFIDOG_MAJOR_VERSION=1 
    2222WIFIDOG_MINOR_VERSION=1 
    23 WIFIDOG_MICRO_VERSION=2_pre1 
     23WIFIDOG_MICRO_VERSION=2 
    2424WIFIDOG_VERSION=$WIFIDOG_MAJOR_VERSION.$WIFIDOG_MINOR_VERSION.$WIFIDOG_MICRO_VERSION 
    2525 
  • trunk/wifidog/scripts/init.d/wifidog

    r215 r724  
    8383    } 
    8484 
     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 
    8596    ### Find a module on disk 
    8697    module_exists () { 
     
    153164    echo "   ipt_mark module is working" 
    154165    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 
    155191    ;; 
    156192