Forum Discussion

Shamsul_Alam_34's avatar
Shamsul_Alam_34
Icon for Nimbostratus rankNimbostratus
Feb 28, 2018

redirect incoming specific IP address to one of the node in the pool

Hi,

Can anyone let me know how to redirect specific client incoming IP address eg. 208.97.21.100 to specific node eg 172.16.5.10 in the pool? I have following iRule

when CLIENT_ACCEPTED {
   if { [IP::client_addr] equals 209.152.196.190] } {
       pool Member-Portal member 172.16.5.35 80
   }
}

I'm getting below error when applied this iRule to my virtual server.

Feb 28 16:19:45 f501 err tmm[11918]: 01220001:3: TCL error: /Common/redirect_connection_to_specific_node - failed to find pool member (line 1) invoked from within "pool Member-Portal member 172.16.5.35 80

  • JG's avatar
    JG
    Icon for Cumulonimbus rankCumulonimbus
    when CLIENT_ACCEPTED {
       if { [IP::client_addr] equals 209.152.196.190] } {
           node 172.16.5.35 80
       }
    }