Forum Discussion
Shiraz
Altostratus
Sep 11, 2014iRule for selecting ASM policy
Dears,
We have an application which runs on two different charset (windows-1252 and windows-1256).
We have to created two Security Policies(one for Windows-1252 and other for Windows-1256) and w...
JRahm
Admin
Sep 15, 2014another option is an ltm policy. I'm guessing here on how you determine (going with the Accept-Charset header, but you could also match on other headers on request or response):
ltm policy cpm.charsets {
controls { asm }
requires { http }
rules {
default {
actions {
0 {
asm
enable
policy /Common/asm_default_policy
}
}
ordinal 3
}
win1252 {
actions {
0 {
asm
enable
policy /Common/asm_win1252_policy
}
}
conditions {
0 {
http-header
name Accept-Charset
values { Windows-1252 }
}
}
ordinal 1
}
win1256 {
actions {
0 {
asm
enable
policy /Common/asm_win1256_policy
}
}
conditions {
0 {
http-header
name Accept-Charset
values { Windows-1256 }
}
}
ordinal 2
}
}
strategy first-match
}
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