Forum Discussion
Rich_79422
Nimbostratus
Jan 16, 2013irule to read sidband cvs file and then drop connect based on db.
Good day, I hope someone would be able to aide me in this Irule. I'm trying to implement the following:
I took the Sideband irule and modified it, but I'm having an issue at the point where I wa...
What_Lies_Bene1
Cirrostratus
Jan 17, 2013Ah OK. So, could you try with this somewhat tidied up code, also I'm sure there is an unnecessary bracket in there but can't be 100% as it's hard to keep all those ifs in my head at one time;
set rmp01_deny [table lookup -subtable $rmp01_db_contents [IP::client_addr]]
log local0. "client ip = [IP::client_addr], db address = $rmp01_db_contents"
if { [IP::client_addr] == $rmp01_db_contents } {
if {$static::rmp01_acl_log_accepted_requests == 1 } {
log local0. "the following client was dropped: [IP::client_addr]"
drop
return
}
log local0. "client is dropped"
drop
return
}
} << Is this required
elseif { $static::rmp01_acl_log_dropped_requests == 1 } {
log local0. "the following client was allowed: [IP::client_addr] "
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects