Forum Discussion
Ryo_30997
Nimbostratus
Jan 19, 2012OneConnect with iRule
I am currently trying to set up OneConnect with iRules.
In case not want to apply OneConnect, which commands should be used as follows?
- detach enable
- detach disable
- reuse enable
- reuse disable
18 Replies
- hoolio
Cirrostratus
To stop using OneConnect on a single serverside connection, you can use ONECONNECT::reuse disable:
http://devcentral.f5.com/wiki/iRules.ONECONNECT-reuse.ashx
ONECONNECT::reuse disable
closes server-side connection after server response. (server-side connection will not be re-used.)
Aaron - hoolio
Cirrostratus
Can you add some debug logging, retest and reply with the logs from /var/log/ltm?when CLIENT_ACCEPTED { TCP::collect } when CLIENT_DATA { if {[TCP::payload] contains "XXXX" } { ONECONNECT::reuse disable log local0. "[IP::client_addr]:[TCP::client_port]: Disabling OneConnect reuse" } else { ONECONNECT::reuse enable log local0. "[IP::client_addr]:[TCP::client_port]: Enabling OneConnect reuse" } TCP::release } when LB_SELECTED { log local0. "[IP::client_addr]:[TCP::client_port]: Selected [LB::server]" } when SERVER_CONNECTED { log local0. "[IP::client_addr]:[TCP::client_port]: New connection to [IP::server_addr]:[TCP::server_port]" } when SERVER_CLOSED { log local0. "[IP::client_addr]:[TCP::client_port]: Closed connection to [IP::server_addr]:[TCP::server_port]" }
Aaron - hoolio
Cirrostratus
Hi Fumihiro,
It looks like XXXX isn't found in the payload so OneConnect isn't being disabled. Do you know how much data you need to collect in order to find the XXXX string? If so, you can include that in the TCP::collect command.
http://devcentral.f5.com/wiki/iRules.tcp__collect.ashx
Aaron - hoolio
Cirrostratus
Hi Fumihiro,
Out of curiosity, what was the solution?
Thanks, Aaron - CHSuser_16039
Nimbostratus
Default text - CHSuser_16039
Nimbostratus
Default text - CHSuser_16039
Nimbostratus
Default text - CHSuser_16039
Nimbostratus
Default text - CHSuser_16039
Nimbostratus
Default text - CHSuser_16039
Nimbostratus
Default text
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
