cancel
Showing results for 
Search instead for 
Did you mean: 

Pool with Range of ports

THE_BLUE
Cirrus
Cirrus

I have VS which listen to port 443 and 80 , mapped to pool which listen to rang of port ex 1000 - 2000

in this case i have create pool with * services port ( any) and associated with i rule. Does the below correct?

TCP::local_port is the correct one? or not?

when CLIENT_ACCEPTED {

        if { [TCP::local_port] => 1000 and [TCP::local_port] <= 2000 } {

            return

        }

        else {

        reject

        }

    }

1 REPLY 1

SanjayP
MVP
MVP

on serverside session (SERVER_CONNECTED) [TCP::server_port] command returns the pool member port.

 

But your setup won't work in my opinion because VIP should be listening on wildcard port, if you wish to send the traffic to pool member on wildcard ports and incoming traffic should come on the target port of the server to F5.