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?
What_Lies_Bene1
Cirrostratus
Oct 23, 2012This should do it;
when CLIENT_ACCEPTED {
if { (! [TCP::local_port] == 80 || ! [TCP::local_port] == 8080 ) } {
drop
return
}
}
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