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?
4 Replies
- What_Lies_Bene1
Cirrostratus
There's two ways you can achieve this that I can think of; - sandy16
Altostratus
Thnx Steve,... what will be something equivalent of deny all, except 80, 8080? - What_Lies_Bene1
Cirrostratus
This should do it;when CLIENT_ACCEPTED { if { (! [TCP::local_port] == 80 || ! [TCP::local_port] == 8080 ) } { drop return } }
- nitass
Employee
e.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 } } } }
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