Forum Discussion
Affa_1992
Nimbostratus
Jan 10, 2013How to process Client side's TCP Payload after SERVER_CONNECTED?
I'm trying to write an iRule to process TCP Payload.
I want to rewrite the clientside's first payload after SERVER_CONNECTED event raised.
But I log message withing every event, I found the...
Affa_1992
Nimbostratus
Jan 14, 2013Thanks 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?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects