Forum Discussion

Sergi0's avatar
Sergi0
Icon for Nimbostratus rankNimbostratus
Jan 19, 2018

Irule set automap/none depend on pool member

I would like to write irule for set automap for only one of pool member other should use no automap.

 

when SERVER_CONNECTED { if {[IP::server_addr] equals "10.10.10.2"} {

 

log local0. "IP: [IP::server_addr]"

snat automap } }

 

I do not see it works and automap not set for 10.10.10.2

 

  • Hello Sergio,

    Can you test this irule:

    when LB_SELECTED {
    if {[LB::server addr] equals "10.10.10.2"} {
        log local0. "[LB::server addr]"
        snat automap 
    }
    }
    

    Regards