Forum Discussion
sandy16
Altostratus
Oct 23, 2012irule for VIP to deny all ports except a few
Hi, i have configured a VIP to listen on any port, BUT i want to restrict it only specific ports and denying rest all.
What`s the simplest way to do this?
nitass
Employee
Oct 23, 2012e.g.
if-clause
[root@ve10:Active] config b rule myrule list
rule myrule {
when CLIENT_ACCEPTED {
if { !([TCP::local_port] == 80) and !([TCP::local_port] == 8080) } {
drop
}
}
}
switch
[root@ve10:Active] config b rule myrule list
rule myrule {
when CLIENT_ACCEPTED {
switch [TCP::local_port] {
80 -
8080 { }
default {
drop
}
}
}
}
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