Forum Discussion
Anjlica_110059
Nimbostratus
Aug 09, 2007iRule closes connection
I modified the original question after I realised CLIENT_CONNECTED is not the right state to use inthe iRule when no connections exist.
------------------------------------------------
...
hoolio
Cirrostratus
Aug 09, 2007In general, it's a good idea to check the /var/log/ltm file for TCL errors and iRule logging. You can do this via the GUI in system >> logs >> local traffic or by accessing the command line and tailing the file (tail -f /var/log/ltm).
The reason you're getting resets to the client with that rule is that you're executing the client IP and port as a command. If you remove the outer pair of braces from your set command you should see the request go through.
Try this for example:
set src_ip_and_port "[IP::client_addr]:[TCP::client_port]"
log local0. "\$src_ip_and_port: $src_ip_and_port"
Out of curiosity, is there a reason you're trying to persist on the client IP and client port? Depending on the protocol/application, the client port could be selected and changed arbitrarily.
Aaron
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