Forum Discussion
Bypassing the BIG-IP ASM
Dears, I have two application sharing the sama physical server, I need to use one Virtual server, to inspect the first application via ASM and not to inspect the second one.
I red this articular http://support.f5.com/kb/en-us/solutions/public/14000/700/sol14709.html and my image is 11.4.1 so its fit to this article.
I want to use the first choice mentioned in the article, but in my virtual server options I cant see the (conditions) and the (actions)...
anyway if its not there and I should go for the second choice (irule), so is following irule is correct :
when HTTP_REQUEST { if {[HTTP::uri] contains "URL_OF_APPLICATION_NUMBER_2" } { ASM::disable log local0. "ASM disabled." } else { ASM::enable /Common/MY_ASM__POLICY_NAME log local0. "ASM enabled. Current ASM policy is [ASM::policy]" } }
6 Replies
- Cory_50405
Noctilucent
To use the first option, you'll have to create a local traffic policy (Local Traffic -> Policies -> Policies List, then click 'Create' at the top right).
You'll need to create two rules within the policy. The first rule will be your default rule. No match condition, but your action should be asm request enable and specify the ASM policy you want to use (/Common/MY_ASM__POLICY_NAME). The second rule will be for your application that you want to disable ASM on. Your match condition will be http-uri request path contains "uri-of-application", and your action will be asm request disable.
After these two rules have been created, move your default rule (enabling ASM) to the top of the list.
- Hamada_Tabosha_
Nimbostratus
Thank you Cory, but I think the second rule (disable ASM) should be in the top, and the strategy in the policy should be first match ....do you agree ? And whats about if I have the same case but I need to enable ASM for both, and each one in a different virtual server ? Are you agree that I can put them in one virtual server, apply two policy by the rules option in the same way?
- Hamada_Tabosha_
Nimbostratus
Thank you Cory, but I think the second rule (disable ASM) should be in the top, and the strategy in the policy should be first match ....do you agree ?
- Cory_50405
Noctilucent
You can do it either way really. I ordered it with the second rule being 'enable ASM' for a higher default security posture. Putting the 'enable ASM' as the first rule will work the way you want it to as well.
- Hamada_Tabosha_
Nimbostratus
Hi cory, Kindly I have another question: Can i have a VS1 and applying irule on it , saying that if the URL is (A) forward the traffic to VS2 and if the URL is (B) forward the traffic to VS3.
- Cory_50405
Noctilucent
Sure can. Keep in mind that this rule isn't redirecting at the HTTP layer, but is rather just directing the traffic to another virtual server on the BIG-IP.
when HTTP_REQUEST { if { [string tolower [HTTP::host]] eq "a.company.com" } { virtual virtualserver2 } if { [string tolower [HTTP::host]] eq "b.company.com" } { virtual virtualserver3 } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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