Forum Discussion

gefela_153763's avatar
gefela_153763
Icon for Nimbostratus rankNimbostratus
Nov 05, 2017

How to configure a F5 ASM policy and link it to an LTM policy via tmsh

Hi

 

I have managed to create an ASM policy via tmsh ( BIG-IP 11.6.0 Build 0.0.401 Final )

 

create asm policy test-asm-policy { active encoding utf-8 blocking-mode enabled policy }

 

But when I tried and link this to an LTM policy , I get this

 

root@(gefela)(cfg-sync Standalone)(Active)(/Common)(tmos) create ltm policy test-ltm-asm-policy { controls add {asm} requires add { http } rules add { default { actions add { 1 { asm enabled policy test-asm-policy } } } strategy first-match Syntax Error: "enabled" unknown property

 

Is there anything that I am missing ?

 

2 Replies

  • I tried this after creating the asm policy create ltm policy test-ltm-asm-policy controls add { asm } requires add { http } strategy first-match

     

    modify ltm policy test-ltm-asm-policy rules add { default { actions add { 1 { asm enable policy test-asm-policy }} ordinal 1 } } strategy first-match

     

  • This worked for me:

    create ltm policy asm_auto_17_policy__VIP_NAME controls add { asm } rules add { default { actions add { 1 { asm enable policy /PARTITION_NAME/ASM_POLICY_NAME} } ordinal 1 } } strategy /Common/first-match legacy