Changeset 531
- Timestamp:
- 04/01/05 18:25:32 (8 years ago)
- Location:
- trunk/wifidog
- Files:
-
- 4 modified
-
ChangeLog (modified) (1 diff)
-
NEWS (modified) (1 diff)
-
configure.in (modified) (1 diff)
-
src/fw_iptables.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog/ChangeLog
r515 r531 1 1 # $Header$ 2 2005-04-01 Philippe April <philippe@ilesansfil.org> 3 * Duplicated auth server list in NAT table to fix the issue 4 of using an auth server on port 80, since port 80 was being systematically 5 redirected to 2060 otherwise. 6 * Released 1.1.1 2 7 3 8 2005-03-29 Mina Naguib <mina@ilesansfil.org> -
trunk/wifidog/NEWS
r507 r531 1 WiFiDog 1.1.1: 2 - An auth server on port 80 will now work 3 - Added an FAQ 1 4 2 5 WiFiDog 1.1.0: -
trunk/wifidog/configure.in
r508 r531 21 21 WIFIDOG_MAJOR_VERSION=1 22 22 WIFIDOG_MINOR_VERSION=1 23 WIFIDOG_MICRO_VERSION= 023 WIFIDOG_MICRO_VERSION=1 24 24 WIFIDOG_VERSION=$WIFIDOG_MAJOR_VERSION.$WIFIDOG_MINOR_VERSION.$WIFIDOG_MICRO_VERSION 25 25 -
trunk/wifidog/src/fw_iptables.c
r495 r531 158 158 { 159 159 iptables_do_command("-t filter -F " TABLE_WIFIDOG_AUTHSERVERS); 160 iptables_do_command("-t nat -F " TABLE_WIFIDOG_AUTHSERVERS); 160 161 } 161 162 … … 171 172 if (auth_server->last_ip && strcmp(auth_server->last_ip, "0.0.0.0") != 0) { 172 173 iptables_do_command("-t filter -A " TABLE_WIFIDOG_AUTHSERVERS " -d %s -j ACCEPT", auth_server->last_ip); 174 iptables_do_command("-t nat -A " TABLE_WIFIDOG_AUTHSERVERS " -d %s -j ACCEPT", auth_server->last_ip); 173 175 } 174 176 } … … 221 223 iptables_do_command("-t nat -N " TABLE_WIFIDOG_WIFI_TO_INTERNET); 222 224 iptables_do_command("-t nat -N " TABLE_WIFIDOG_UNKNOWN); 225 iptables_do_command("-t nat -N " TABLE_WIFIDOG_AUTHSERVERS); 223 226 224 227 /* Assign links and rules to these new chains */ … … 233 236 iptables_do_command("-t nat -A " TABLE_WIFIDOG_WIFI_TO_INTERNET " -j " TABLE_WIFIDOG_UNKNOWN); 234 237 238 iptables_do_command("-t nat -A " TABLE_WIFIDOG_UNKNOWN " -j " TABLE_WIFIDOG_AUTHSERVERS); 235 239 iptables_do_command("-t nat -A " TABLE_WIFIDOG_UNKNOWN " -p tcp --dport 80 -j REDIRECT --to-ports %d", gw_port); 236 240 … … 302 306 iptables_do_command("-t mangle -X " TABLE_WIFIDOG_INCOMING); 303 307 304 /* 305 * 306 * Everything in the NAT table 307 * 308 */ 309 debug(LOG_DEBUG, "Destroying chains in the NAT table"); 310 iptables_fw_destroy_mention("nat", "PREROUTING", TABLE_WIFIDOG_OUTGOING); 308 /* 309 * 310 * Everything in the NAT table 311 * 312 */ 313 debug(LOG_DEBUG, "Destroying chains in the NAT table"); 314 iptables_fw_destroy_mention("nat", "PREROUTING", TABLE_WIFIDOG_OUTGOING); 315 iptables_do_command("-t nat -F " TABLE_WIFIDOG_AUTHSERVERS); 311 316 iptables_do_command("-t nat -F " TABLE_WIFIDOG_OUTGOING); 312 317 iptables_do_command("-t nat -F " TABLE_WIFIDOG_WIFI_TO_ROUTER); 313 318 iptables_do_command("-t nat -F " TABLE_WIFIDOG_WIFI_TO_INTERNET); 314 319 iptables_do_command("-t nat -F " TABLE_WIFIDOG_UNKNOWN); 320 iptables_do_command("-t nat -X " TABLE_WIFIDOG_AUTHSERVERS); 315 321 iptables_do_command("-t nat -X " TABLE_WIFIDOG_OUTGOING); 316 322 iptables_do_command("-t nat -X " TABLE_WIFIDOG_WIFI_TO_ROUTER);
