Forum Discussion
Cindy_127211
Nimbostratus
May 17, 2006Passing 'default pool' to rule
I have a default pool defined in a virtual server. The virtual server also has a rule that uses the default pool name. Right now, this pool name is hard coded. Is there any way to make a rule that...
Cindy_127211
Nimbostratus
May 17, 2006Following is an example rule:
rule SSLV2_Encrypt_ACS_sbox {
when HTTP_REQUEST {
HTTP::header insert "Custom" "amc:443"
if { ![matchclass [SSL::cipher version] equals $::CipherVersion] and [SSL::cipher bits] > 127 } {
use pool acs80sbox
} elseif { [HTTP::uri] starts_with "/encryptcode/" }
{
pool acs80sbox }
else {
HTTP::redirect https://[HTTP::host]/encryptcode/encryption_notice.jsp}
}
}
Following is the virtual server that access this particular rule:
virtual vs_www_sbox_americancentury_com_PROXY {
destination 10.173.251.200:443
fallback persist SIMPLE_1920_ACS_DEFAULTS
ip protocol tcp
profile CLIENTSSL_www_sbox_americancentury_com HTTP_PROXY_ACS_DEFAULTS tcp
persist COOKIE_EXT_ACS_DEFAULTS
pool acs80sbox
rule SSLV2_Encrypt_ACS_sbox
}
There are several virtual servers that use the same rule. The only difference is that the pool name changes for each virtual server. So, I have one copy of the rule for each virtual server, since the pool name changes for each virtual server. How can I change the rule and/or the virtual server so I have only one rule for each virtual server?
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