client_data
1 Topicirule for SMTP
Hi Everyone, we have an ongoing testing and this is the irule that we currently have. when CLIENT_ACCEPTED { log local0. "Client_ACCEPTED_HIT: IP address:[IP::client_addr]" TCP::respond "220\r\n" TCP::collect } when CLIENT_DATA { log local0. "Client_DATA_HIT: IP address:[IP::client_addr] Data: [TCP::payload]" if { [TCP::payload] contains "gmail.com" or [TCP::payload] contains "google.com" } { pool testtesttest log local0. "cdata_FOUND: IP address:[IP::client_addr] Dest IP:[server_addr]:[server_port] Data: [TCP::payload]" } TCP::release TCP::collect } the scenario is, when an email is sent using gmail, the traffic should go to testtesttest pool however, this does not work as based on the statistics, testtesttest statistics does not increase. It seems that the traffic goes to the default pool. Upon checking the /var/log/ltm directory, we can see this error: CLIENT_DATA> - no serverside connection established (line 4) invoked from within "server_addr" is this related to the irule why the traffic is not directed to the specified pool? are there any error with the script in the iRule? Any help will be very much appreaciated. Thank you.685Views0likes3Comments