Forum Discussion
iRule parsing errors after upgrading BigIP to 13.1.3 version
Please refer the following article:
https://support.f5.com/csp/article/K15450552
=====
F5 Product Development has assigned ID 704587 to this issue. F5 has confirmed that this issue exists in the products listed in the Applies to (see versions) box, located in the upper-right corner of this article. For information about releases, point releases, or hotfixes that resolve this issue, refer to the following table.
Type of fixFixes introduced inRelated articlesRelease14.1.0K2200: Most recent versions of F5 softwarePoint release/hotfix13.1.1.5K9502: BIG-IP hotfix and point release matrix
+++++++++++
You can work around this issue by converting the string to an IP address with IP::addr before inserting it as a header.
For example, the following iRule produces the previous error message:
when HTTP_REQUEST {
set exampleIP "192.0.0.2"
HTTP::header insert X-Forwarded-For $exampleIP
log local0. "Where is myip1: [whereis $exampleIP country]"
}
To work around the issue, you can replace the previous iRule with the following iRule:
when HTTP_REQUEST {
set exampleIP "192.0.0.2"
HTTP::header insert X-Forwarded-For [IP::addr $exampleIP mask "255.255.255.255"]
log local0. "Where is exampleIP: [whereis $exampleIP country]"
}
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