Forum Discussion

noje_224243's avatar
noje_224243
Icon for Nimbostratus rankNimbostratus
Apr 04, 2016

iRule rejects connections but there is no reject command

Hi all, We have a VS with several SSL sites. There is an iRule which looks like: when SERVER_CONNECTED { if { $doSSL == 1 }{ SSL::profile Server-profile1 } elseif { $doS...
  • Vernon_97235's avatar
    Apr 05, 2016

    Add a logging statement to the SERVER_CONNECTED event before the

    if
    command to determine whether the exception is being raised from there. If so, place it in the
    elseif
    clause before and after the
    SSL::profile
    command the determine whether that is the cause. I suspect that BIG-IP doesn't want to connect the profile for one reason or another.

    Incidentally, in the SERVER_CONNECTED you can also use a

    switch
    :

    when SERVER_CONNECTED {
        log local0. "-- In SERVER_CONNECTED --"
        switch $doSSL {
            "1" { SSL::profile Server-profile1 }
            "2" { SSL::profile Server-profile2 }
            ...
            "9" {
                log local0. "  -- doSSL == 9 --"
                SSL:profile Server-profile9
                log local0. "  -- after SSL::profile --"
            }
        }
    }