Forum Discussion
rachitbiyani_21
Nimbostratus
10 years agoEquivalent iRules have different behavior
Hello,
I have configured the following iRule on a Virtual Edition BigIP F5:
when CLIENT_ACCEPTED {snat [clientside {IP::local_addr}]}
and it works as expected - It translates the sourc...
- 10 years ago
It loads correctly for me (when using
and pasting intotmsh edit ltm rule foo
under 11.6.0). I suspect this may be a character insertion issue. If, for example, you paste in Windows-style newlines at the end (which will naturally be invisible to you), the iRule parser will not interpret the newlines in the way you expect. Indeed, based on the error, it appears to be compressing the two statements together. Incidentally, the space after the variable name is required.vi
VernonWells
Employee
10 years agoIt loads correctly for me (when using
tmsh edit ltm rule foo and pasting into vi under 11.6.0). I suspect this may be a character insertion issue. If, for example, you paste in Windows-style newlines at the end (which will naturally be invisible to you), the iRule parser will not interpret the newlines in the way you expect. Indeed, based on the error, it appears to be compressing the two statements together. Incidentally, the space after the variable name is required.10 years ago
You need to have the snat line be on a newline after the set.
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