Forum Discussion
Closing active connections
I have a rseries environment (r5800) running 15.1.6.1 release which does include the APM limited in the licensing. I have a request to terminate/close a connection after 15 minutes regardless of whether or not the connection is active or idle. I am across this article, https://clouddocs.f5.com/api/irules/after.html#:~:text=The%20after%20command%20allows%20you,or%20canceling%20currently%20delayed%20scripts which had the following iRule:
when RULE_INIT {
#Timeout is in milliseconds
set static::response_timeout 10000
}
when CLIENT_ACCEPTED {
log local0. "Received connection, beginning timer for $static::response_timeout from [clock seconds]" after $static::response_timeout {
log local0. "Timeout $static::response_timeout milliseconds elapsed closing connection. [clock seconds]"
reject
}
}
I changed to timeout value to 300000 (5 minutes) for testing and applied the iRule to the VS. This did not work as the connection never timed out nor appeared to be rejected.
If anyone has any input or ideas that I might try I would appreciate it.
Thanks,
There is no need to use an iRule. You can use the Maximum Session Timeout setting within the Access Policy. See: https://my.f5.com/manage/s/article/K12300
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