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, 2012There's two ways you can achieve this that I can think of;
1) Use a packet filter (everyone seems to prefer iRules)
2) Use the IP: CLIENT_ACCEPTED event and something like this (but with more ports using switch or a data group);
when CLIENT_ACCEPTED {
if { ! [TCP::local_port] == 80} {
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