atomicdog_7107
Mar 24, 2012Nimbostratus
Does anyone know why this wouldn't work?
Hey guys I'm trying to create an iRule to log when a specific source port hits a VS... this is what I've created.
when CLIENT_ACCEPTED {
if {[IP::addr[TCP::client_port] equals "1025"] } {
log local0.info "IP and Port: [IP::client_addr]:[TCP::client_port]"
}
}
The iRule editor says it's valid, but when I apply it to the VS it doesn't work and I see this in the logs:
Mar 23 18:32:36 local/tmm err tmm[6065]: 01220001:3: TCL error: Log_Source_Port_1025 - invalid command name "IP::addr58751" while executing "IP::addr[TCP::client_port] equals "1025""
Any suggestions? Thanks!