Forum Discussion
Danny_Trinh_197
Nimbostratus
Feb 03, 2009script for port 443 and 50000-59999
Hello forum,
I have an iRule as below:
when CLIENT_ACCEPTED {
if { [TCP::client_port] < 50000 or [TCP::client_port] > 59999}{
drop
}
}
This will allow ports 50000-59999 to be served. I also have port 443 need to serve too.
Does this iRule works on 443 and 50000-59999 ports?
I think it works well for port 50000-59999, but I don't know how to get it works for port 443 also.
Help please.
Thanks,
- hoolio
Cirrostratus
I think you want to check TCP::local_port not TCP::client_port. TCP::client_port is the source port.when CLIENT_ACCEPTED { Check requested port if { ! (([TCP::local_port] >= 50000 && [TCP::local_port] <= 59999) || [TCP::local_port] == 443)}{ Request was to an disallowed port, so drop it 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