Forum Discussion
JRahm
Mar 21, 2023Admin
Hi Jose_Cruz,
matchclass was deprecated in v10, and that iRule should look like instead:
when CLIENT_ACCEPTED priority 500 {
if { [class match -- [IP::client_addr] equals trustedAddresses] } {
#Uncomment the line below to turn on logging.
log local0. "Valid client IP: [IP::client_addr] - forwarding traffic"
forward
} else {
#Uncomment the line below to turn on logging.
log local0. "Invalid client IP: [IP::client_addr] - discarding"
discard
}
}
Your data-group has the same value as the key, is this intended? Not sure what use that is, if you are not using values, you do not need to set them.