Changeset 302

Show
Ignore:
Timestamp:
12/19/04 14:18:08 (9 years ago)
Author:
alexcv
Message:

Firewall rule code tweak

Location:
trunk/wifidog
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog/ChangeLog

    r301 r302  
    11# $Header$ 
     2 
     32004-12-19 Alexandre Carmel-Veilleux <acv@acv.ca> 
     4        * src/fw_iptables.c: Tweak of auth_server firewall rule setting 
     5          code. 
     6 
    272004-12-16 Benoit Gr�goire  <bock@step.polymtl.ca> 
    38        * src/fw_iptables.c: Display iptables command that is run in debug mode. 
     
    611        * src/firewall.c: Fix reversed incoming and outgoing connections in statistics code 
    712        * bump version to alpha3 
    8          
     13 
    9142004-11-29 Alexandre Carmel-Veilleux <acv@acv.ca> 
    1015        * wifidog.conf: Fixed firewall rule bug. 
  • trunk/wifidog/src/fw_iptables.c

    r301 r302  
    164164    for (auth_server = config->auth_servers; auth_server != NULL; 
    165165                    auth_server = auth_server->next) { 
    166         if (auth_server->last_ip == NULL || 
    167                 strcmp(auth_server->last_ip, "0.0.0.0") == 0) { 
    168             iptables_do_command("-t nat -A " TABLE_WIFIDOG_AUTHSERVERS " -d %s -j ACCEPT", auth_server->authserv_hostname); 
    169         } else { 
    170             iptables_do_command("-t nat -A " TABLE_WIFIDOG_AUTHSERVERS " -d %s -j ACCEPT", auth_server->last_ip); 
    171         } 
     166        iptables_do_command("-t nat -A " TABLE_WIFIDOG_AUTHSERVERS " -d %s -j ACCEPT", auth_server->authserv_hostname); 
    172167    } 
    173168