Forum Discussion

besogon_9363's avatar
besogon_9363
Icon for Nimbostratus rankNimbostratus
Jan 23, 2012

VIP not to accept connections

Hello,

 

 

Can somebody please help me with an iRule that would not accept connections when there no active pool members?

 

I know this sounds crazy, but the application guys did not want to do a redirect to a different VIP.

 

Thanks

 

  • George_Watkins_'s avatar
    George_Watkins_
    Historic F5 Account
    If the VIP's pool does not have any available members, the end user will receive a TCP reset. There currently is not a method in iRules for dropping connection (ignoring the first SYN) similar to a firewall rule. If all you want is a reset, then your current setup should work.

     

     

    -George
  • George_Watkins_'s avatar
    George_Watkins_
    Historic F5 Account
    I didn't provide the iRule code because it would be redundant to the default behavior and could make troubleshooting confusing. If you want an iRule that does the same thing, you could do this:

     

     

    when LB_FAILED {    when load balancing fails, send users a TCP reset   discard }

     

     

    Hope that helps,

     

     

    -George