Navigate to: DNS ›› Delivery : iRules : iRules List
https://router01.branch01.example.com/tmui/Control/jspmap/tmui/dns/rule/list.jsp
Create new iRule, copy the content below and paste it.
when DNS_RESPONSE {
# If Query type was A and response is an answer. if { ([DNS::question type] eq “A”) and ([DNS::ptype] == “ANSWER”) } {
set rrs [DNS::answer] foreach rr $rrs {
if { [DNS::type $rr] eq “A” } {if {[llength [IP::reputation [DNS::rdata $rr]]] != 0} {
# Bad IP Reputation for destination detected log local0. “$rr: “[IP::reputation $ip]”, count: [llength [IP::reputation $rr]]”
- }
- }
}
}
}
Setting | Value |
---|---|
Name | IPI_irule |
TODO: get updated irule from Brian Van Lieu
TMSH
tmsh create ltm rule IPI_irule