Forum Discussion
MarioMeas
Nimbostratus
Dec 20, 2016TMSH command to assign ASM policy to a vip.
Hello. To assign an ASM security policy to a virtual server via the GUI I would go to Local Traffic -> Virtual Servers -> Virtual Server List, click on the Virtual Server, click Security -> Policies...
Nazir_52641
Cirrus
Dec 20, 2016Consider the below naming conventions:
ASM Policy name: ASM_Policy
Virtual server name : HTTP_VS1
Below is the command:
tmsh create ltm policy asm_policy_HTTP_VS1 { controls add { asm } requires add { http } rules add { default { actions add { 1 { asm enable policy ASM_Policy } } ordinal 1 } } }
tmsh modify ltm virtual HTTP_VS1 policies add { asm_policy_HTTP_VS1 }
tmsh save sys config
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