Forum Discussion
Zuke_254875
Altostratus
Apr 03, 2019Port range iRule
We have a requirement for a wildcard virtual server and to allow access to the application servers on port range between 30000 and 32768.
When I apply the below iRule, I'm unable to reach the serve...
CharlesCS
Cirrus
Apr 03, 2019In this context,
TCP::client_port
refers to the ephemeral port that the client system uses to connect to the virtual server. To specify the virtual server's port range, use TCP::local_port
instead. Also, "then" is redundant and may cause an error.
when CLIENT_ACCEPTED {
if { ( [TCP::local_port] < 30000 ) or ( [TCP::local_port] > 32768 ) } {
reject
}
}
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