Forum Discussion
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 ?
- gefela_153763
Nimbostratus
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
- Andrew78
Nimbostratus
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
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com