Forum Discussion
Masaru_Takahash
Nimbostratus
Dec 20, 2005Can the function of Across Virtual Servers do kick in the rule?
I want to use persistence between different Virtual Server together with the rule.
Can the function of Across Virtual Servers do kick in the rule?
I related rule and persistence profi...
david_wang_2073
Feb 17, 2006Historic F5 Account
i ever did a rule to make the persistence to across rtsp and UDP, just for your reference.
rule select_pool {
when HTTP_REQUEST {
if { [HTTP::host] contains "vendor1.real.com" } {
pool realserver_pool1
} else {
pool realserver_pool2
}
}
when HTTP_RESPONSE {
set sss [IP::client_addr]
set lll [list $sss any]
log local0. "response from [IP::remote_addr] to $sss"
set aaa [lindex [session lookup uie $lll] 0]
if { $aaa != [IP::remote_addr] } {
session delete uie $lll
log local0. "session table lete $aaa"
session add uie $lll [format "%s" [IP::remote_addr] ]
}
}
}
rule search_session_table {
when CLIENT_ACCEPTED {
set jsess [IP::client_addr]
if { $jsess != "" } {
set lll [list $jsess any]
log local0. "request include $jsess"
set ppp [session lookup uie $lll]
log local0. "request include $jsess --pool$ppp---"
node [session lookup uie $lll]
}
else {
log local0. "without jession"
pool realserver_pool_all
}
}
}virtual vip_rtsp {
destination 10.10.3.99:rtsp
ip protocol tcp
profile http tcp
persist uie_persist_srcip
pool realserver_pool_all
rule select_pool
}
virtual real_vip {
destination 10.10.3.99:any
ip protocol udp
pool realserver_pool_all
rule search_session_table
}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
