Forum Discussion
How to define file types as case insensitive?
Allowed file types are case sensitive.
How can they be defined as case insensitive?
10 Replies
Please elaborate. Which part/module/case are you referring to?
/Patrik
Hi Patrik,
the OP used ASM as Hash-Tag so I guess its an ASM specific question ;-)
Cheers, Kai
Fair point. He's still not winning any Pulitzer Prize. :)
Hi Ghislain,
during security policy creation, you can configure the rule matchings with an "case-insensitive" option. But once the policy is created you can't change this setting without loosing the already established ruleset (aka. reconfigure the entire policy).
If your existing ruleset is to complex, then you may use some RegEx pattern to allow file-types and URLs regardless of the requested CASE. E.g. use the wildcard pattern
instead of explizit[Hh][Tt][Mm][Ll]
orHTMLhtmlFor addtional information on the wildcard syntax check out: https://support.f5.com/kb/en-us/products/big-ip_asm/manuals/product/asm-implementations-11-5-0/28.html
Cheers, Kai
- Leonardo_Souza
Cirrocumulus
You need to provide more information when you post a question, otherwise we are just guessing. :/
When you create a policy you have a checkbox to say if is or not case sensitive. You can click in reconfigure to change a policy that already exists.
- Hannes_Rapp
Nimbostratus
Just recently I did a project where specifically the end goal was to migrate all existing ASM policies from case-sensitive matching to case-insensitive matching.
- You export the policy as XML
- In the XML file: Modify the value of
tag fromcase_insensitive
tofalsetrue - In the XML file: Replace all existing user-defined entities (File Types, Parameters, URLs...) with their lower-case equivalents. Create your own script, or use Vi for the task. This can also be done manually but you will grow a few grey hair before the task is done.
- Import the modified XML as new ASM policy
You will lose all pending
suggestions, but no configuration will be lost. Might be a good idea to make sure all pending suggestions are handled before you start.Manual Traffic LearningHi Hannes,
Good to know that the
option can be changed via manuall exports/imports.case_insensitiveThanks and Cheers, Kai
- Hannes_Rapp_162
Nacreous
Just recently I did a project where specifically the end goal was to migrate all existing ASM policies from case-sensitive matching to case-insensitive matching.
- You export the policy as XML
- In the XML file: Modify the value of
tag fromcase_insensitive
tofalsetrue - In the XML file: Replace all existing user-defined entities (File Types, Parameters, URLs...) with their lower-case equivalents. Create your own script, or use Vi for the task. This can also be done manually but you will grow a few grey hair before the task is done.
- Import the modified XML as new ASM policy
You will lose all pending
suggestions, but no configuration will be lost. Might be a good idea to make sure all pending suggestions are handled before you start.Manual Traffic LearningHi Hannes,
Good to know that the
option can be changed via manuall exports/imports.case_insensitiveThanks and Cheers, Kai
- Ghislain_Pellet
Nimbostratus
I am referring to the ASM module under Security ›› Application Security : File Types : Allowed File Types : Create : Allowed File Type Properties
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