Forum Discussion
hc_andy_35682
Nimbostratus
Jan 27, 2010iRule help to set indefinite SSH login session
Thanks to this post I've created an iRule to handle ssh sessions using "IP::idle_timeout"
http://devcentral.f5.com/Default.aspx?tabid=53&view=topic&postid=32109
when CLIENT_ACCEPTED {
switch [TCP::local_port] {
"22" {
IP::idle_timeout 600
}
}
}
Is there an INDEFINITE idle_timeout value that keeps the session from timing out? I've set it to ZERO but this then STOPS me from ssh-ing into the box.
Thanks.
Andy
- L4L7_53191
Nimbostratus
I'd use a custom tcp profile for this task - you can set the timeout to indefinite. - hc_andy_35682
Nimbostratus
Thanks Matt. - L4L7_53191
Nimbostratus
I'm not sure how to do this in a rule. It's real easy to setup a port 22 virtual server though, and I'd suggest going that route - it's cleaner, to me at least. It sounds like you've got a forwarder set up that handles multiple protocols. If this is the case, you can carve out that SSH traffic by adding a 0.0.0.0:22 virtual and applying the custom tcp timeout behavior to that virtual. - hoolio
Cirrostratus
Setting the idle timeout to 0 in the rule probably means immediate, not indefinite. You could try setting it to the max acceptable value instead (maybe 2147483647?).
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