Forum Discussion
bert_92443
Nimbostratus
Sep 13, 2012adding 2 pool into the same virtual-server
I have 2 pools - YAYA_80 with member 172.16.20.1:80 and 172.16.20.2:80
and a second pool YAYA_0 with member 172.16.20.3:0 and 172.16.20.4:0
I would like to have a single virtual-server 10.1...
Hamish
Cirrocumulus
Sep 13, 2012There's probbaly one in codeshare. But a quick one (UNtested, type don the fly) would be something like
The code assumes you may set your VS to all-protocols not just TCP and that your port 80 is TCP and not something else.
when client-connect {
if { [ IP::protocol ] == 6 }
if { [TCP:local_port] == 80 } {
pool my-server-pool-80
}
}
}
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