Forum Discussion
Technological_S
Nimbostratus
Sep 21, 2009inserting client ip address into DATA when protoco is not HTTP and using SNAT
Hi Devcentral.
I need insert de client IP because I using SNAT, but I don`t user HTTP protocol, I need insert de client IP into TCP DATA paquet.
Any sugestion.
Best regards
Carlos Fontecha.
2 Replies
- hoolio
Cirrostratus
Hi Carlos,
You could potentially collect and modify the TCP payload using TCP::collect and TCP::payload. You can check the TCP wiki page for details on these commands (Click here).
Aaron - Technological_S
Nimbostratus
Thansk Aaron.
I create this iRule, (first aproximation).
rule proxy-hmig
{
when CLIENT_ACCEPTED
{
set ORIG_Request [TCP::collect]
set ORIG_CLIENT_IP [IP::client_addr]
}
when CLIENT_DATA
{
set ORIG_Request [string range $ORIG_Request 0 $ORIG_CLIENT_IP]
TCP::release
}
}
Regards
Carlos Fontecha.
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