Forum Discussion
R_Marc
Nimbostratus
Jun 10, 2014Need to access server IP in CLIENT_DATA
I need to make a modification to the TCP::payload with the target IP of the back-end server.
I'm able to make the modifications (when there's one known target server) but I need to do this with a clu...
nitass
Employee
Jun 10, 2014have you tried TCP::collect in LB_SELECTED?
How to process Client side's TCP Payload after SERVER_CONNECTED?
https://devcentral.f5.com/questions/how-to-process-client-sides-tcp-payload-after-server_connected
- R_MarcJun 10, 2014
Nimbostratus
Yes. Perhaps I'm doing something wrong there, but here's what I tried as a test:
Here's what I see in the log:when CLIENT_ACCEPTED { log local0. "client ip [IP::client_addr]" } when CLIENT_DATA { log local0. "in client data" } when LB_SELECTED { TCP::collect log local0. "[TCP::payload]" TCP::release } when SERVER_CONNECTED { log local0. "[IP::server_addr]" }
I'll read that article though and see if I find anything useful.Jun 10 12:05:53 slot1/bip info tmm[10558]: Rule /Common/monitoring-rule : client ip 10.0.148.33 Jun 10 12:05:53 slot1/bip info tmm[10558]: Rule /Common/monitoring-rule : Jun 10 12:05:53 slot1/bip info tmm[10558]: Rule /Common/monitoring-rule : 10.0.145.161 - nitassJun 10, 2014
Employee
i think you should release data (TCP::release) in CLIENT_DATA (not LB_SELECTED). - R_MarcJun 10, 2014
Nimbostratus
Got it working... Thanks for the tip.
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