Forum Discussion

vincenthamilton's avatar
vincenthamilton
Icon for Nimbostratus rankNimbostratus
Sep 26, 2014

Irules and host headers to conserve IP addesses

we have multiple web servers, that are in LTM pools. Currently to get access to these we use a public IP mapped to a VIP, for each web server. How do we use host headers and i rules to map one public IP, and use multiple wide IPs, and they redirect to the correct web servers.

 

1 Reply

  • If I'm reading this right... you want to use a single IP on an LTM to redirect to the correct pool of web servers based off the URI. E.G. www.abc.com and www.def.com both resolve to 10.10.10.10 on the LTM, but each would go to a different pool of web servers behind the LTM.

     

    You can use an iRule with a switch statement. Based off the URI strings you can re-direct to specific pools.

     

    https://devcentral.f5.com/articles/irules-101-04-switch

     

    However, for performance select the right iRule Control statement and the order of the options correctly.

     

    https://devcentral.f5.com/articles/comparing-irule-control-statements

     

    Jason Peak