Forum Discussion

VFB's avatar
VFB
Icon for Cirrus rankCirrus
Jul 03, 2018

iRule to set indefinite TCP idle timeout

I'm attempting to write an iRule to set the idle timeout on about 10 ports to be indefinite so I can apply it to a forwarding virtual. I'm not 100% sure if I can do a switch -glob on it, as there are quite a bit of ports I need to apply the indefinite timer to.

 

2 Replies

  • I need the idle timeout value to be indefinite

     

  • R_Marc's avatar
    R_Marc
    Icon for Nimbostratus rankNimbostratus
    when CLIENT_ACCEPTED {
        if { some criteria } {
            TCP::idletime 4294967295
        }
    }
    

    It's not actual indefinate, but it's the max value (136 years I believe). You could do it in a switch statement as well.