FAILED selecting pool based on DNS reverse lookup result.
Hi, I want to select pool based on DNS reverse lookup result for SMTP connection, but it not worked and following log appeared in /var/log/ltm.
iRUle: when CLIENT_ACCEPTED { NAME::lookup @ [IP::client_addr] } when NAME_RESOLVED { set ptr [string tolower [NAME::response]] log local0. "[IP::client_addr]:[TCP::client_port]: Lookup result: $ptr" if { $ptr ends_with ".jp" } { pool SMTP_AUTH_Pool } else { pool SMTP_Fallback_Pool } }
LOG: Apr 16 14:44:18 local/tmm info tmm[5276]: Rule dns_reverse_lookup_test : XXX.XXX.XXX>XXX:15751: Lookup result: ****.jp Apr 16 14:44:18 local/tmm err tmm[5276]: 01220001:3: TCL error: dns_reverse_lookup_test - Address in use (line 1) invoked from within "pool SMTP_AUTH_Pool"
The platform is BIG-IP LTM 3900 (BIG-IP Version 10.2.1 297.0). Does it work if I change the iRule contents ?
--kamao