Forum Discussion

João_Rodrigues's avatar
João_Rodrigues
Icon for Nimbostratus rankNimbostratus
Jul 10, 2013

Simple SNAT iRule in Route Domain

Hi,

 

I'm trying to use an iRule to just forward the traffic to the Internet and SNAT it, when all the pool member are down.

 

I implemented the following iRule, I can see the iRule hits and executions but the traffic is not coming out of the box. This is being done in a specific Route Domain as you can see in the snat IP.

 

Should this work? What can be wrong?

 

when HTTP_REQUEST {

 

if { [active_members HTTP_Pool] equals 0 } {

 

snat 192.168.106.106%10

 

}

 

}

 

Thanks!

 

1 Reply

  • Hi

     

     

    You're not sending your traffic anywhere, only applying a snat address, try something like

     

     

    when HTTP_REQUEST {

     

    if { [active_members HTTP_Pool] equals 0 } {

     

    snat 192.168.106.106%10

     

    node

     

    }

     

    }