Forum Discussion
david_wang_2073
Aug 05, 2006Historic F5 Account
http::redirect based on [LB::server addr]
Hi, All,
We are trying to do rtsp load balancing with redirect method, but the rtsp servers were located in different data center and not belong to the same subnet with BIG-IP.
The...
david_wang_2073
Aug 05, 2006Historic F5 Account
I change the irule to below
when HTTP_REQUEST {
log local0. "in HTTP_REQUEST [HTTP::uri]"
}
when LB_SELECTED {
set server_addr [LB::server addr]
log "Selected server is [LB::server addr]"
node 192.168.20.3 80
clientside {TCP::respond "HTTP/1.1 302 Found\r\nLocation: rtsp://www.yxsx.com/vod/shipin1_isdn.rm\r\nConnection: close\r\nContent-Length: 0\r\n\r\n"}
LB::detach
}
now redirect can be done in LB_SELECTED event. But the request from client side was still sent to the pool membber, but I hope all the requests from client side can be sent to 192.168.20.3.
The node 192.168.20.3 is not a server in the pool to be selected.
I used tcpdump to capture packet in internal vlan and found the request from client side were still sent to the server in the pool instead of 192.168.20.3.
How should I change my rule to do it?
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
