Forum Discussion
Kalyan_Reddy_Da
Nimbostratus
Aug 12, 2011TMM crash because of the irule
Below irule is crashing my TMM can anyone please help
We have two values coming in " X-Forwarded-For" HTTP header and we want the first value.
I have written a below irule and when we assign this to VS and access the site, TMM crashing and rebooting F5 server.
when HTTP_REQUEST {
while { [HTTP::header exists X-Forwarded-For] } {
set VALUE1 [HTTP::header values X-Forwarded-For]
log local0. "VALUE1 : $VALUE1 "
set VALUE2 [findstr [HTTP::header "X-Forwarded-For"] " " 0 ","]
log local0. "VALUE2: $VALUE2"
}
}
Please suggest.
- hoolio
Cirrostratus
Hi Kalyan, - Colin_Walker_12Historic F5 AccountYeah, an endless loop is a very bad thing in an iRule. Be careful when setting looping parameters. ;)
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