Forum Discussion

Reginald_Sible1's avatar
Reginald_Sible1
Icon for Nimbostratus rankNimbostratus
Jun 08, 2015

Does anyone have an iRule that switches pools based on host header

I need an iRule that switches based on host header? For example I have one VIP that I want to support 4 pools and route traffic based on Host header.

 

6 Replies

    • weblead_151334's avatar
      weblead_151334
      Icon for Nimbostratus rankNimbostratus
      would request your assistance in migrating the all environments from F5 10.2.4 to Viprion 11.5.1 Viprion is installed -TMSH-VERSION: 11.5.1 & one of the site has been migrated LTM - Product: BIG-IP Version: 10.2.4 There are multiple partitions for development, QA & production as a precutover activity I am interested to create the 200 virtual servers ,pools,profiles over viprion & have them in disabled state till cutover could you please advise to migrate 200 VIP's having the same VLAN .... shall I need to create via Viprion console or is there a better way to handle the VIP ,pool & profile creation.Is there any command to create virtual servers ,profiles,pools via CLI Assume the existing VIP & pool as follows over F5 let me know the TMSH command to create the VIP,pools & profiles over Viprion VIP(http & https) virtual delltest01.dell.com-VS-HTTP { snat automap pool pool_delltest01.dell.com_http destination 10.21.123.80:http ip protocol tcp rules { irule_pool_redirect irule_https } profiles { profile_delltest01.dell.com_http {} tcp {} } } virtual delltest01.dell.com-VS-HTTPS { snat automap pool pool_delltest01.dell.com_http destination 10.21.123.80:https ip protocol tcp rules { irule_pool_redirect irule_https } profiles { dell-COM-Wildcard { clientside } profile_dell_dev_https {} tcp {} } } Profile desc profile http profile_dell_dev_https { defaults from http header insert "Original-Protocol:HTTPS" redirect rewrite all insert xforwarded for enable } Pool desc pool pool_delltest01.dell.com_http { monitor all tcp members 10.21.123.28:29086 {} }
    • weblead_151334's avatar
      weblead_151334
      Icon for Nimbostratus rankNimbostratus
      would request your assistance in migrating the all environments from F5 10.2.4 to Viprion 11.5.1 Viprion is installed -TMSH-VERSION: 11.5.1 & one of the site has been migrated LTM - Product: BIG-IP Version: 10.2.4 There are multiple partitions for development, QA & production as a precutover activity I am interested to create the 200 virtual servers ,pools,profiles over viprion & have them in disabled state till cutover could you please advise to migrate 200 VIP's having the same VLAN .... shall I need to create via Viprion console or is there a better way to handle the VIP ,pool & profile creation.Is there any command to create virtual servers ,profiles,pools via CLI Assume the existing VIP & pool as follows over F5 let me know the TMSH command to create the VIP,pools & profiles over Viprion VIP(http & https) virtual delltest01.dell.com-VS-HTTP { snat automap pool pool_delltest01.dell.com_http destination 10.21.123.80:http ip protocol tcp rules { irule_pool_redirect irule_https } profiles { profile_delltest01.dell.com_http {} tcp {} } } virtual delltest01.dell.com-VS-HTTPS { snat automap pool pool_delltest01.dell.com_http destination 10.21.123.80:https ip protocol tcp rules { irule_pool_redirect irule_https } profiles { dell-COM-Wildcard { clientside } profile_dell_dev_https {} tcp {} } } Profile desc profile http profile_dell_dev_https { defaults from http header insert "Original-Protocol:HTTPS" redirect rewrite all insert xforwarded for enable } Pool desc pool pool_delltest01.dell.com_http { monitor all tcp members 10.21.123.28:29086 {} }