Forum Discussion

JT_144596's avatar
JT_144596
Icon for Nimbostratus rankNimbostratus
Aug 19, 2015

forwarding virtual server, with a port range?

Hi,

 

I have used forwarding virtual servers in various ways but i have a reqt to forward traffic with a port range. For example, traffic will be going to a network destination but will be requesting a port in the range of 10000-12000.

 

No i do not like this either, but that's what 'they' want...

 

I don't want to do a wildcard port as i only want the specified range.

 

Is there a way to achieve this?

 

Thanks Jon

 

  • You should be able to do this by setting up a wildcard forwarding virtual server and then applying an iRule to restrict the ports allowed. Something like this:

    when CLIENT_ACCEPTED {
        if { ([TCP::local_port] < 10000) || ([TCP::local_port] > 12000) } {
            drop 
        }
    }