Changeset 1162

Show
Ignore:
Timestamp:
01/06/07 18:51:02 (2 years ago)
Author:
benoitg
Message:
  • Documentation update in the code
  • Released 1.1.3_beta6
Files:

Legend:

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

    r1121 r1162  
    11# $Id$ 
     22007-01-06 Benoit Gr�ire  <bock@step.polymtl.ca> 
     3        * Documentation update in the code 
     4        * Released 1.1.3_beta6 
     5 
    262006-10-26 Benoit Gr�ire  <bock@step.polymtl.ca> 
    37        * src/conf.h: Fix #238 by using $sysconfdir to compute the default config-file location. 
  • trunk/wifidog/NEWS

    r936 r1162  
    11# $Id$ 
     2WiFiDog 1.1.3beta6: 
     3        -Fix bug #238 (config file location was hardcoded) 
     4        -Fix problem with autodectection of the External interface if the interface isn't fully up yet.  wifidog wil now retry for up to two minutes. 
     5 
     6WiFiDog 1.1.3beta4: 
     7        -Changed ordering in the filter.FORWARD chain 
     8        -Added TCPMSS rule 
     9        -Fixed rules bieng left over on shutdown 
     10        -Fixed wdctl reset problem 
     11 
    212WiFiDog 1.1.3beta2: 
    313        -Fix bug #65 (Whitelisted servers would still splash on port 80 
  • trunk/wifidog/configure.in

    r1101 r1162  
    2121WIFIDOG_MAJOR_VERSION=1 
    2222WIFIDOG_MINOR_VERSION=1 
    23 WIFIDOG_MICRO_VERSION=3_beta5_pre1 
     23WIFIDOG_MICRO_VERSION=3_beta6 
    2424WIFIDOG_VERSION=$WIFIDOG_MAJOR_VERSION.$WIFIDOG_MINOR_VERSION.$WIFIDOG_MICRO_VERSION 
    2525 
  • trunk/wifidog/src/centralserver.c

    r1104 r1162  
    5353 * update the traffic counters at the server 
    5454@param authresponse Returns the information given by the central server  
    55 @param request_type Use the REQUEST_TYPE_* #defines in centralserver.h 
     55@param request_type Use the REQUEST_TYPE_* defines in centralserver.h 
    5656@param ip IP adress of the client this request is related to 
    5757@param mac MAC adress of the client this request is related to 
  • trunk/wifidog/src/conf.h

    r1121 r1162  
    3030/*@{*/  
    3131/** Defines */ 
     32/** How long till we give up detecting the interface with the default route */ 
    3233#define NUM_EXT_INTERFACE_DETECT_RETRY 120 
     34/** How often should we try to detect the interface with the default route 
     35 *  if it isn't up yet */ 
    3336#define EXT_INTERFACE_DETECT_RETRY_INTERVAL 1 
    3437 
  • trunk/wifidog/src/firewall.c

    r935 r1162  
    2626  @brief Firewall update functions 
    2727  @author Copyright (C) 2004 Philippe April <papril777@yahoo.com> 
     28  2006 Benoit Grégoire, Technologies Coeus inc. <bock@step.polymtl.ca> 
    2829 */ 
    2930 
     
    239240 
    240241            UNLOCK_CLIENT_LIST(); 
    241         /* Ping the client, if he responds it'll keep activity on the link */ 
     242        /* Ping the client, if he responds it'll keep activity on the link. 
     243         * However, if the firewall blocks it, it will not help.  The suggested 
     244         * way to deal witht his is to keep the DHCP lease time extremely  
     245         * short:  Shorter than config->checkinterval * config->clienttimeout */ 
    242246        icmp_ping(ip); 
    243247        /* Update the counters on the remote server only if we have an auth server */ 
  • trunk/wifidog/src/fw_iptables.c

    r968 r1162  
    442442} 
    443443 
    444 /** Set the firewall access for a specific client */ 
     444/** Set if a specific client has access through the firewall */ 
    445445int 
    446446iptables_fw_access(fw_access_t type, char *ip, char *mac, int tag) 
  • trunk/wifidog/src/ping_thread.c

    r1104 r1162  
    2121/* $Id$ */ 
    2222/** @file ping_thread.c 
    23     @brief Periodically checks in with the central auth server to make sure everything is running properly. 
     23    @brief Periodically checks in with the central auth server so the auth 
     24    server knows the gateway is still up.  Note that this is NOT how the gateway 
     25    detects that the central server is still up. 
    2426    @author Copyright (C) 2004 Alexandre Carmel-Veilleux <acv@miniguru.ca> 
    2527*/ 
  • trunk/wifidog/src/util.c

    r1101 r1162  
    241241        fclose(input); 
    242242        debug(LOG_ERR, "get_ext_iface(): Failed to detect the external interface after try %d of %d (maybe the interface is not up yet?)", i, NUM_EXT_INTERFACE_DETECT_RETRY); 
    243         /* Sleep for config.checkinterval seconds... */ 
     243        /* Sleep for EXT_INTERFACE_DETECT_RETRY_INTERVAL seconds */ 
    244244        timeout.tv_sec = time(NULL) + EXT_INTERFACE_DETECT_RETRY_INTERVAL; 
    245245        timeout.tv_nsec = 0; 
  • trunk/wifidog/wifidog.conf

    r935 r1162  
    44# Parameter: GatewayID 
    55# Default: default 
    6 # Optional but essential for monitoring purposes 
     6# Optional 
    77# 
    8 # Set this to the template ID on the auth server 
    9 # this is used to give a customized login page to the clients 
    10 # If none is supplied, the mac address of the GW interface will be used, 
     8# Set this to the node ID on the auth server 
     9# this is used to give a customized login page to the clients and for 
     10# monitoring/statistics purpose 
     11# If none is supplied, the mac address of the GatewayInterface interface will be used, 
    1112# without the : separators 
    1213 
     
    1718# Optional 
    1819# 
    19 # Set this to the external interface.  Typically vlan1 for OpenWrt, and eth0 or ppp0 otherwise 
     20# Set this to the external interface.  Typically vlan1 for OpenWrt, and eth0 or ppp0 otherwise, 
     21# Normally autodetected 
    2022 
    2123# ExternalInterface eth0 
     
    6466#} 
    6567 
    66 #AuthServer { 
    67 #    Hostname auth3.ilesansfil.org 
    68 #    SSLAvailable yes 
    69 #    Path / 
    70 #} 
    71  
    7268# Parameter: Portal 
    7369# Default: none 
     
    109105# Optional 
    110106# 
    111 # How many seconds should we wait between timeout checks 
    112 CheckInterval 60 
     107# How many seconds should we wait between timeout checks.  This is also 
     108# how often the gateway will ping the auth server and how often it will 
     109# update the traffic counters on the auth server.  Setting this too low 
     110# wastes bandwidth, setting this too high will cause the gateway to take  
     111# a long time to switch to it's backup auth server(s). 
     112 
     113# CheckInterval 60 
    113114 
    114115# Parameter: ClientTimeout 
     
    142143#  
    143144# Used for rules to be applied to all other rulesets except locked. 
    144 # This is the default config for the Teliphone service. 
    145145FirewallRuleSet global { 
    146     FirewallRule allow udp to 69.90.89.192/27 
    147     FirewallRule allow udp to 69.90.85.0/27 
    148     FirewallRule allow tcp port 80 to 69.90.89.205 
     146    # This is the default config for the Teliphone service. 
     147    #FirewallRule allow udp to 69.90.89.192/27 
     148    #FirewallRule allow udp to 69.90.85.0/27 
     149    #FirewallRule allow tcp port 80 to 69.90.89.205 
     150    # To block SMTP out, as it's a tech support nightmare, and a legal liability 
     151    #FirewallRule block tcp port 25 
    149152} 
    150153 
     
    153156# Used for new users validating their account 
    154157FirewallRuleSet validating-users { 
    155     FirewallRule block tcp port 25 
    156158    FirewallRule allow to 0.0.0.0/0 
    157159}