Forum Discussion
Angelo
Nimbostratus
Oct 22, 2012Mutiple i-rules on one VS
Hi
I have a request from a client to create a VS with two rules that need to be aplied to it.. one if traffic comes in on http i should send it to a specific pool if traffic comes in as ...
ssievers_87378
Nimbostratus
Oct 24, 2012Posted By Angelo on 10/24/2012 02:03 AM
Hi
the problem is that i now got https working http not working... this is the VS, don't know if there is something wrong on it...
ltm virtual vs_mwgen_dev {
destination 10.217.235.25:any
ip-protocol tcp
mask 255.255.255.255
partition CMRB
profiles {
/Common/http { }
/Common/mtn.co.za {
context clientside
}
/Common/serverssl-insecure-compatible {
context serverside
}
/Common/tcp { }
}
rules {
I-rule_MWGen_dev
/Common/CRM
}
snat automap
vlans-disabled
}
Hi,
looks like one VS for any port...
Try this:
when CLIENT_ACCEPTED{
if { [TCP::local_port] == 443 }{
SSL::enable
} else {
SSL::disable
}
}
when HTTP_REQUEST {
if { (([string tolower [HTTP::uri]] starts_with "/apps")
or ([string tolower [HTTP::uri]] starts_with "/global")
or ([string tolower [HTTP::uri]] starts_with "/whatever")) } {
if { [SSL::mode] == 1 } {
pool foo1
}else{
pool foo2
}
} elseif { [SSL::mode] == 1 }{
pool foo3
} else {
pool foo4
}
}
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