Forum Discussion

Herman2024's avatar
Herman2024
Icon for Cirrostratus rankCirrostratus
Jan 26, 2026
Solved

Can one create one virtual server with two pool members with multiple services running on it?

Hi, we have servers with multiple services running on it. Can we just create one virtual server with a customized port list. Can create a tcp port list under shared object? Can someone please advise?...
  • Injeyan_Kostas's avatar
    Injeyan_Kostas
    Jan 26, 2026

    something like this might work

    when CLIENT_ACCEPTED {
        switch -- [TCP::local_port] {
            80 {
                pool pool_80
            }
            8080 {
                pool pool_8080
            }
            8443 {
                pool pool_8443
            }
            default {
                reject
            }
        }
    }