Forum Discussion

Dirk_Laan_18877's avatar
Dirk_Laan_18877
Icon for Nimbostratus rankNimbostratus
Jul 18, 2006

problem migrate rule to version 9.x

Hello,

 

 

I'm trying to get the folling rule to work on my bigip with version 9.x

 

 

I have a rule that worked fine on the bigip that is running 4.x

 

 

but on the bigip with version 9.x it still gives me the error that i did not have a client cert

 

 

the rule from version 4.x:

 

 

if (http_header("SSLClientCertStatus") == one of ccert_ok) {

 

use pool Portal-apps

 

}

 

else if (http_header("SSLClientCertStatus") == "NoClientCert") {

 

redirect to "https://test.test.nl/errors/cert_error.htm"

 

}

 

else {

 

redirect to "https://test.test.nl/errors/nocert.htm"

 

}

 

 

 

the rule from version 9.x:

 

i've created the class

 

 

 

when HTTP_REQUEST {

 

set hdr [HTTP::header "SSLClientCertStatus"]

 

if { [matchclass $hdr equals $::ccert_ok] } {

 

pool portal-apps

 

} elseif { $hdr equals "NoClientCert" } {

 

HTTP::redirect "https://test.test.nl/errors/nocert.htm"

 

} else {

 

HTTP::redirect "https://test.test.nl/errors/cert_error.htm"

 

}

 

}

 

 

any help would be great

 

 

  • The iControl forums are for Remote API questions. This forum is actually for our migration effort of v4.x iControl applications to v9.x. iRules questions should be posted to the relevant iRules forum (v4.x or v9.x).

     

     

    As for your question, I responded to it on the other thread you started.

     

     

    http://devcentral.f5.com/default.aspx?tabid=28&view=topic&forumid=1&postid=9074

     

    Click here

     

     

    -Joe