Forum Discussion

Steve_85547's avatar
Steve_85547
Icon for Nimbostratus rankNimbostratus
Dec 16, 2010

Telnet redirection??

Guys I have a VIP operating on all services. We use it for TCP 21 and TCP 23

 

 

172.25.240.20 *

 

 

 

It has a pool assigned to it with 2 nodes:

 

 

 

172.25.108.70

 

172.25.108.71

 

 

 

If BOTH of these pool nodes go down, can I write an irule to redirect a telnet request to another node notifying the client that the system is unavailable?

 

 

 

Sorry if this is too noobish..

 

2 Replies

  • Stefan thanks!!

     

     

    Duh! I should have known this.

     

     

    Thanks for answering a stupid question.

     

     

    I will try this...

     

     

    Thanks again

     

     

    Steve :0)
  • You could potentially send a TCP response with some text that tells the client that no servers are available:

    TCP::respond

    http://devcentral.f5.com/wiki/default.aspx/iRules/tcp__respond

    Here's an untested example. If you try it, could you post back with your results?

    
    when CLIENT_ACCEPTED {
    
        Check if the default pool has no active members
       if {[active_members [LB::server pool]] == 0 }{
    
           Send a TCP response
          TCP::respond "Servers are all down.  Try later"
       }
    }
    

    Thanks, Aaron