Forum Discussion
kderrough_26121
Jul 24, 2018Nimbostratus
How can i create an iRule for one VIP with multiple service ports.
For a clean look I would like to create an iRule for one VIP with 8 specific service ports. (Not a range)
- Jul 25, 2018
It's possible but you need to set VIP destination port to 0. And write irule to allow defined port and block rest of the service.
Below irule might help...
when CLIENT_ACCEPTED { if { [TCP::local_port] == 5540 } { pool test_PROD_pool1 } elseif { [TCP::local_port] == 5580 } { pool test_PROD_pool2 } else { reject } }
Cheers...
Samir_Jha_52506
Noctilucent
It's possible but you need to set VIP destination port to 0. And write irule to allow defined port and block rest of the service.
Below irule might help...
when CLIENT_ACCEPTED {
if { [TCP::local_port] == 5540 } {
pool test_PROD_pool1
} elseif { [TCP::local_port] == 5580 } {
pool test_PROD_pool2
} else {
reject
}
}
Cheers...
kderrough_26121
Jul 25, 2018Nimbostratus
Thanks for the info
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