Forum Discussion

hardi_ameen's avatar
May 08, 2019

Pool member lessen on port range

Hi,

 

i have the following integration;

 

  1. Virtual server only listen on port 443
  2. back-end nodes (pool members) listen on port range 8000 to 8040

the question;

 

  1. how to make the VS only to send request to the pool members and hit the port range?
  2. how to restrict the connection on port range 8000 to 8040

thanks alot in advance for your advice

 

  • Hello.

    Each pool member identifies an IP+port, so you should configure each pool member separately in the pool.

    In my case I have the same node listening on several ports 8080,8081,8082,8083

    ltm pool mypool {
        members {
            10.1.1.128:webcache {
                address 10.1.1.128
                session monitor-enabled
                state up
            }
            10.1.1.128:tproxy {
                address 10.1.1.128
                session monitor-enabled
                state up
            }
            10.1.1.128:us-cli {
                address 10.1.1.128
                session monitor-enabled
                state up
            }
            10.1.1.128:us-srv {
                address 10.1.1.128
                session monitor-enabled
                state up
            }
        }
        monitor http 
    }
    

    KR, Dario.

  • In case you have several IPs you should repeat the same line for each IP

    For example:

    tmsh create ltm pool mypool monitor http
    seq 8000 8040 | xargs -I [] tmsh modify ltm pool mypool members add { <node1_ip>:[] }
    seq 8000 8040 | xargs -I [] tmsh modify ltm pool mypool members add { <node2_ip>:[] }
    seq 8000 8040 | xargs -I [] tmsh modify ltm pool mypool members add { <node3_ip>:[] }
    seq 8000 8040 | xargs -I [] tmsh modify ltm pool mypool members add { <node4_ip>:[] }
    tmsh save sys config

    I will appreciate if you score my answer.

    KR,

    Dario.