{

if ((($chilli{'status'} || 'disabled') eq 'enabled') &&
         ($chilli{'guestAccess'} || 'disabled') eq 'enabled'){
        my $downlink = $chilli{'guestDownLink'} || '400';
        my $uplink = $chilli{'guestUpLink'} || '64';
        $downlink = $downlink * 1000;
        $uplink = $uplink * 1000;
        $OUT =<<"END";

guest NAS-Identifier == "localhost", Auth-Type := Local, User-Password == 'guest'
       WISPr-Bandwidth-Max-Down = $downlink, WISPr-Bandwidth-Max-Up = $uplink
END
}

if (($chilli{'status'} || 'disabled') eq 'enabled'){
    $OUT .=<<END;

DEFAULT Group == "chilli", NAS-Identifier == "localhost", Auth-Type := unix
#       WISPr-Bandwidth-Max-Down = 512000, WISPr-Bandwidth-Max-Up = 128000

DEFAULT Group != "chilli", NAS-Identifier == "localhost", Auth-Type := Reject
        Reply-Message = "Your are not member of the allowed group"

END
}
}


