- recv
- init
- recv
- hash
- hit
- miss
- pass
- fetch
- error
- deliver
- log
- Install
- Run
declare local var.banTime TIME;
set = "10.208.204.58";
if (table.lookup(ban_dict, )) {
set var.banTime = std.integer2time(
std.atoi(
table.lookup(ban_dict, )
)
);
if (time.is_after(var.banTime, now)) {
log "syslog " req.service_id " loggerName :: Ban in effect for " ;
error 601 var.banTime;
}
log "syslog " req.service_id " loggerName :: Ban for " " expired at " var.banTime ", allowing access";
} else {
log "syslog " req.service_id " loggerName :: " " is not banned.";
}