Forum Discussion
Affa_1992
Jan 14, 2013Nimbostratus
Thanks for replying.
I have been tried to write some iRule as the following like:
when CLIENT_ACCEPTED {
snat x.x.x.x
}
when SERVER_CONNECTED {
set SNAT_IP [serverside {IP::client_addr}]
clientside { TCP::collect }
}
when CLIENT_DATA {
TCP::payload replace 0 4 $SNAT_IP
TCP::release
TCP::collect
}
I found that F5 will receive some tcp payload when CLIENT_ACCEPTED event raised so that
I will miss some tcp payload to replace string which I want to change.
I want to process the *first* tcp payload after SERVER_CONNECTED raised. That means
the CLIENT_DATA with first payload raised after SERVER_CONNECTED.
Does my codes have any wrong?