Forum Discussion
biv_59618
Nimbostratus
Dec 08, 2017Applying Auto ASM Policy via TMSH
What I am trying to do is
enable ASM profile add an ASM policy which is configured for Autopolicy
When done through the GUI it looks like this is the config. This is what I am trying to achiev...
mjb109
Nimbostratus
Jun 08, 2020Old thread, but I just had this same problem, and this works on 13.1.3. Think you just need to add the "asm enable" before your final policy statement
create /ltm policy '/Common/Drafts/asm_auto_l7_policy__MY-VIRTUAL' controls add { asm } requires add {http} rules add { default { ordinal 1 actions add { 1 { asm enable policy /Common/MY-WAF-POLICY } } } }Ivan_Chernenkii
Employee
Feb 23, 2021Hello Jeff,
tmsh command should look next: "create ltm policy name_of_ltm_policy controls add { asm } rules add { default { actions add { 1 {asm enable policy name_of_asm_policy } } } } strategy first-match legacy"
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects