Forum Discussion

chirag420_15139's avatar
chirag420_15139
Icon for Nimbostratus rankNimbostratus
Apr 23, 2014

iRule question

Hi I am looking for sample iRule , basically i have same destination IP with multiple ports which need configure dscp marking value. ( for example 1.1.1.1 and port number 50000 dscp marking 46 , i have other port number 51111 which have dscp vlaue 32) . How i can create iRule, if some one give me sample example , that will be great, thanks in advance

 

1 Reply

  • Hi you can use the reference here

    when CLIENT_ACCEPTED {
        switch -- [TCP::local_port] {
            "50000" {
                 this sets DSCP to 46 (EF)     
                IP::tos 184
            }  
            "51111" {
                 this sets DSCP to 32 (cs4)      
                IP::tos 128
            }  
        }
    }