Changeset 8959 in genesis for config/iris/node/FreeBSD/8.0-RELEASE


Ignore:
Timestamp:
Mar 15, 2011, 8:58:45 AM (14 years ago)
Author:
rick
Message:

Only like to be running the captive portal on interfaces which has
DHCP enabled, as this indicate client usage. Store this information
in the rc.conf.local such that it can be picked up by the firewall script ipfw.sh .

File:
1 edited

Legend:

Unmodified
Added
Removed
  • config/iris/node/FreeBSD/8.0-RELEASE/wleiden.pl

    r8957 r8959  
    272272
    273273  @whitelist = ();
     274  @dhcp_interfaces = ();
    274275  $WLAN_NR = 0;
    275276  foreach my $interface (sort keys %config) {
     
    303304            push(@whitelist, $CAPTIVE_PORTAL_WHITELIST{$if});
    304305          }
     306          if ( $DHCP{$if} ) {
     307            push(@dhcp_interfaces, $IFNAME);
     308          }
    305309          $output .= "\"\n";
    306310        }
     
    318322  };
    319323  $output .= "\ncaptive_portal_whitelist=\"" .join(' ',@whitelist) . "\"\n";
     324  $output .= "captive_portal_interfaces=\"" .join(' ',@dhcp_interfaces) . "\"\n";
    320325  return($output);
    321326};
Note: See TracChangeset for help on using the changeset viewer.