Forum Discussion

jwah24_138500's avatar
jwah24_138500
Icon for Nimbostratus rankNimbostratus
Apr 08, 2014

Multiple Service Ports on a Single VS

Hey guys, I've seen a few articles on this already, but am really new to the F5's and am looking for additional clarification. We looking at load balancing an application that uses the following p...
  • Cory_50405's avatar
    Apr 08, 2014

    You would create 'service-port-range' as a string type data group under Local Traffic -> iRules -> Data Group List. Populate the data group with your port objects.

    Then use the iRule to reference it and reject anything not in the list:

    when CLIENT_ACCEPTED {
     if { ! [class match [TCP::local_port] equals service-port-range] } {
        reject
        }
    }