Forum Discussion

For_saken_9071's avatar
For_saken_9071
Icon for Nimbostratus rankNimbostratus
Nov 25, 2008

Local Port Irule - Requiring IP Persistence

Hi All,

 

I have the below config that is running fine though I now want to specify different IP Persistence for each of the below pools. Current I have set on the VIP a Persistence of 3600seconds - Source Address Affinity

 

 

 

 

 

 

when CLIENT_ACCEPTED {

 

log local0. [TCP::local_port]

 

if { [TCP::local_port] == 80 } {pool pool-testesttest-sotl}

 

elseif { [TCP::local_port] == 17024 } {pool pool-anothertest-sotl}

 

elseif { [TCP::local_port] == 19012 } {pool pool-extratest-sotl}

 

}

 

 

}
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    If you're running 9.x, check your iRule 9.x forum post (Click here). If you do need to do this in 4.x let me know.

     

     

    Thanks,

     

    Aaron