Forum Discussion
TJ_Vreugdenhil
Cirrus
Apr 04, 2013matching two classes - iRule 10.2.4
I have the iRule working below with just CLASS-1. I am simply trying to say CLASS-1 OR CLASS-2, but having trouble getting F5 to take it. Do I need to set a variable or something like an elseif? ...
TJ_Vreugdenhil
Cirrus
Apr 09, 2013I got this to work using the following:
set X509_subject [substr [X509::subject [SSL::cert 0]] 3 ","]
log local0. "X509-subject-CN:$X509_subject"
if { ! ( [class match $X509_subject equals CLASS-1 ] || [class match $X509_subject equals CLASS-2] ) } {
log local0. "Client dropped :$X509_subject"
drop
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