Forum Discussion

doocu53_364278's avatar
doocu53_364278
Icon for Nimbostratus rankNimbostratus
Jun 14, 2018

it doesn't work once I applied the irules to the virtual server

the http profile settings on my virtual server is "none", and there is no irules added on my virtual server, and when I checked it with my apps by sending text message from app user 1 to app user 2, they worked out normally.(because there is no Big IP on the LTM, my apps directly retreive messages directly from its XMPP servers). But when I tried to use BigIP on the LTM to these XMPP servers instead of let apps directly contacts with XMPP servers, I made a pool and the iRules, and when I applied to iRules to the virtual server, the apps didn't work, which couldn't text from one user to another.) Why is that?

 

  • First of all, check LTM connectivity without iRule. In case of problem with iRule, please specify.

     

  • I don’t know how XMPP works but it seems XMPP is not HTTP!

     

    if you enable HTTP profile on a non HTTP protocole, it will drop connections!

     

  • Is this because of the iRules? Here is my intention : I have two different domain: aaa.com and bbb.com Both of these domains has resolved their IP address, which is c.c.c.c: AA as inbound IP address at the virtual serverA at LTM. Now, I have created two pools, one is for aaa.com and the name of the pool is: pool_a, and its member is A.A.A.A: BB, which is the IP address of a Web server. the other one is for bbb.com, and the name of the pool is: pool_b, and its member is C.C.C.C:DD, which is IP address of the XMPP server.

     

    Now I want to create a BigIP load balance with the domain aaa.com and bbb.com at the same virtual server, which means I need an iRules: and this is the iRules that I created:

     

    when HTTP_REQUEST { switch [HTTP::host]] { "aaa.com" { pool pool_a } default { pool pool_b } } } But once I applied this iRules to the virtual server, and I verify the results and it didn't work.