Forum Discussion
Ron_130795
Nimbostratus
Mar 25, 2014Creating an iRule with different multiple ports for one VIP
I have a VIP that needs to respond to multiple ports. They are not in the same range so would my below iRule work?
when CLIENT_ACCEPTED {
if {([TCP::local_port] = 799 ) && ([TCP::local_port...
Kevin_Stewart
Employee
Mar 25, 2014You're saying: if (the local port is 799 AND 8914) OR (local port is 3000 AND 3050), then allow it.
Try this:
when CLIENT_ACCEPTED {
switch [TCP::local_port] {
"799" -
"8914" -
"3000" -
"3050" { return }
default { reject }
}
}
You also shouldn't need the pool statement there if you have the pool assigned to the VIP.
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