Forum Discussion
sp1at_86630
Nimbostratus
Mar 21, 2009rule to replace vip ip with pool member
Hi All,
How do i rewite the stream on an incomming request to replace the vip address with the ip of the pool member selected?
here is what i think the rule should look like, is ...
hoolio
Cirrostratus
Mar 24, 2009If you want to rewrite the TCP payload, I think you'd need to enable the stream filter in CLIENT_ACCEPTED. Enabling the stream filter in SERVER_CONNECTED only seems to allow you to rewrite the response from the server to LTM.
Normally, a load balancing decision isn't made until LB_SELECTED. However, you can force a load balancing decision in CLIENT_ACCEPTED using LB::select (Click here. You could then get the selected server IP using [LB::server addr].
when CLIENT_ACCEPTED {
Make a load balancing decision
set lb_select [LB::select]
Now use the selection
eval $lb_select
Replace the virtual server IP with the selected pool member IP
STREAM::expression "@[IP::local_addr]@[LB::server addr]@"
Enable the stream filter
STREAM::enable
log local0. "Stream expression: @[IP::local_addr]@[LB::server addr]@"
}
Aaron
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
