Forum Discussion
UniFirst1_22521
Nimbostratus
Dec 10, 2015iRules Blocking Traffic
I have an iRule that is suppose to only change an idle timer on certain traffic. However, when I enable it is seems to only allow the traffic defined the the iRule and no other connections can be mad...
Stanislas_Piro2
Cumulonimbus
Dec 10, 2015You did not set the serverside_idle_timeout to 0 as default value...
so it raise a tcl error...
2 solutions:
when HTTP_REQUEST {
set serverside_idle_timeout 0
if { ([IP::addr [IP::client_addr] equals 172.17.101.60] or [IP::addr [IP::client_addr] equals 172.17.101.149]) and ([HTTP::host] equals "soaprod.corp.unifirst.com") } { log local0. "original timeout: [IP::idle_timeout]"
IP::idle_timeout 10800
log local0. "updated timeout: [IP::idle_timeout]"
set serverside_idle_timeout 1
}
}
when SERVER_CONNECTED {
log local0. "original timeout: [IP::idle_timeout]"
if {$serverside_idle_timeout} {
IP::idle_timeout 10800
log local0. "updated timeout: [IP::idle_timeout]"
}
}
or
when HTTP_REQUEST {
if { ([IP::addr [IP::client_addr] equals 172.17.101.60] or [IP::addr [IP::client_addr] equals 172.17.101.149]) and ([HTTP::host] equals "soaprod.corp.unifirst.com") } { log local0. "original timeout: [IP::idle_timeout]"
IP::idle_timeout 10800
log local0. "updated timeout: [IP::idle_timeout]"
set serverside_idle_timeout 1
}
}
when SERVER_CONNECTED {
log local0. "original timeout: [IP::idle_timeout]"
if {([info exists serverside_idle_timeout]) && ($serverside_idle_timeout)} {
IP::idle_timeout 10800
log local0. "updated timeout: [IP::idle_timeout]"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects