For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

14 Replies

  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus

    Longer code example with tabs

     

    when CLIENT_ACCEPTED {
        log local0. "[IP::client_addr]:[TCP::client_port]: Connected=[IP::local_addr]:[TCP::client_port] [virtual name]"
    }
    when LB_SELECTED {
        if {[IP::addr [LB::server addr] equals 8.8.8.8] } {
            snat 6.6.6.6 
            log local0. "[IP::client_addr]:[TCP::client_port]: Selected=[LB::server], SNAT=[LB::snat], matched=8.8.8.8"
        } else {
            snat automap
            log local0. "[IP::client_addr]:[TCP::client_port]: Selected=[LB::server], SNAT=[LB::snat]
        }
    }

    Aaron

     

  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus

    more...

    when HTTP_REQUEST {
    
        switch -glob [HTTP::path] {
            "/case1" -
            "/case2" -
            "/case3" -
            "/case4" {
                 matched
            }
            default {
                switch [HTTP::host] {
                    "host1" {
                         matched 1
                    }
                    default {
                         matched 2
                    }
                }
            }
        }
    }
    

    Aaron