@@ -258,7 +258,7 @@ iptables_fw_init(void)
258
258
t_trusted_mac * p ;
259
259
int proxy_port ;
260
260
fw_quiet = 0 ;
261
- int got_authdown_ruleset = NULL == get_ruleset ("auth-is-down" ) ? 0 : 1 ;
261
+ int got_authdown_ruleset = NULL == get_ruleset (FWRULESET_AUTH_IS_DOWN ) ? 0 : 1 ;
262
262
263
263
LOCK_CONFIG ();
264
264
config = config_get_config ();
@@ -377,25 +377,25 @@ iptables_fw_init(void)
377
377
iptables_fw_set_authservers ();
378
378
379
379
iptables_do_command ("-t filter -A " CHAIN_TO_INTERNET " -m mark --mark 0x%u -j " CHAIN_LOCKED , FW_MARK_LOCKED );
380
- iptables_load_ruleset ("filter" , "locked-users" , CHAIN_LOCKED );
380
+ iptables_load_ruleset ("filter" , FWRULESET_LOCKED_USERS , CHAIN_LOCKED );
381
381
382
382
iptables_do_command ("-t filter -A " CHAIN_TO_INTERNET " -j " CHAIN_GLOBAL );
383
- iptables_load_ruleset ("filter" , "global" , CHAIN_GLOBAL );
384
- iptables_load_ruleset ("nat" , "global" , CHAIN_GLOBAL );
383
+ iptables_load_ruleset ("filter" , FWRULESET_GLOBAL , CHAIN_GLOBAL );
384
+ iptables_load_ruleset ("nat" , FWRULESET_GLOBAL , CHAIN_GLOBAL );
385
385
386
386
iptables_do_command ("-t filter -A " CHAIN_TO_INTERNET " -m mark --mark 0x%u -j " CHAIN_VALIDATE , FW_MARK_PROBATION );
387
- iptables_load_ruleset ("filter" , "validating-users" , CHAIN_VALIDATE );
387
+ iptables_load_ruleset ("filter" , FWRULESET_VALIDATING_USERS , CHAIN_VALIDATE );
388
388
389
389
iptables_do_command ("-t filter -A " CHAIN_TO_INTERNET " -m mark --mark 0x%u -j " CHAIN_KNOWN , FW_MARK_KNOWN );
390
- iptables_load_ruleset ("filter" , "known-users" , CHAIN_KNOWN );
390
+ iptables_load_ruleset ("filter" , FWRULESET_KNOWN_USERS , CHAIN_KNOWN );
391
391
392
392
if (got_authdown_ruleset ) {
393
393
iptables_do_command ("-t filter -A " CHAIN_TO_INTERNET " -m mark --mark 0x%u -j " CHAIN_AUTH_IS_DOWN , FW_MARK_AUTH_IS_DOWN );
394
- iptables_load_ruleset ("filter" , "auth-is-down" , CHAIN_AUTH_IS_DOWN );
394
+ iptables_load_ruleset ("filter" , FWRULESET_AUTH_IS_DOWN , CHAIN_AUTH_IS_DOWN );
395
395
}
396
396
397
397
iptables_do_command ("-t filter -A " CHAIN_TO_INTERNET " -j " CHAIN_UNKNOWN );
398
- iptables_load_ruleset ("filter" , "unknown-users" , CHAIN_UNKNOWN );
398
+ iptables_load_ruleset ("filter" , FWRULESET_UNKNOWN_USERS , CHAIN_UNKNOWN );
399
399
iptables_do_command ("-t filter -A " CHAIN_UNKNOWN " -j REJECT --reject-with icmp-port-unreachable" );
400
400
401
401
UNLOCK_CONFIG ();
@@ -411,7 +411,7 @@ iptables_fw_init(void)
411
411
int
412
412
iptables_fw_destroy (void )
413
413
{
414
- int got_authdown_ruleset = NULL == get_ruleset ("auth-is-down" ) ? 0 : 1 ;
414
+ int got_authdown_ruleset = NULL == get_ruleset (FWRULESET_AUTH_IS_DOWN ) ? 0 : 1 ;
415
415
fw_quiet = 1 ;
416
416
417
417
debug (LOG_DEBUG , "Destroying our iptables entries" );
0 commit comments