Forum Discussion
iRule Not Allowing Server Page To Display
I have the following iRule in place. As you can see I am only trying to change common idle timeouts. 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 update_serverside_idle_timeout] && $update_serverside_idle_timeout}{ IP::idle_timeout 1802 log local0. "updated timeout: [IP::idle_timeout]" } }
If the above iRule is in place I get a "Page coonot be displayed" error when trying to go to url However if I remove the iRule the page displays perfectly. I have double and triple checked the iRule and can find nothing that would be causing this. Any idea?
1 Reply
Hi UniFirst1,
you may try this snipped...
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" ) } then { 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] } then { IP::idle_timeout 1802 log local0. "updated timeout: [IP::idle_timeout]" unset -nocomplain serverside_idle_timeout } }If the error still persist, then take a look to your LTM logfile. In 99,99% of the cases it will raise an TCL error if the iRule is having any issues...
Cheers, Kai
Recent Discussions
Related Content
* 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