Forum Discussion

Abirami_Sundara's avatar
Abirami_Sundara
Icon for Nimbostratus rankNimbostratus
Sep 07, 2018

https://host:portx F5 redirection to pool based on port

Hello,

 

I have to setup a https VIP with multiple pools for different ports. Based on the port selection, the pool should be chosen. Please let me know if this is possible.

 

User access :

 

2 Replies

  • Hi Abirami,

    You can try this irule:

    when HTTP_REQUEST {
    switch -glob [TCP::remote_port] {
        "25" {
            pool pool_25
        }
        "110" {
            pool pool_110
        }
        default {
            pool pool_default
        }
    }
    }
    

    I gave you an example with 2 différents ports you can add another if needed...

    You have alos another solution, is to create one VS by Port (it will be more simple to manage an you don't need an Irule, more your monitoring will be more specific and simple).

    Let me know if you need more details.

    regards,

  • Thank you. I configured multiple VS for different ports and mapped ssl profile. It works :)