Forum Discussion
ferny1_29424
Nimbostratus
Sep 23, 2010How to configure an iRule to allow one particular host to have a different TCP profile ?
Hi Forum, I am new to F5. I need to confgure an iRule which would allow one particular host to have unlimited TCP connection to a virtual server. Logically I know what is required but I am not familiar with the iRule syntax. Your help would be much appreciated. Please see below a pseudocode of what I am trying to achieve. class unlimited_TCP_timeout_client { host x.x.x.x } when CLIENT_ACCEPTED { is client IP address defined in the Unlimited TCP timeout group? if { [matchclass [IP::client_addr] equals $::unlimited_TCP_timeout_client] } { Use TCP profile 'Customised to unlimited timeout' } else { Use TCP profile 'Default' } }
- hoolio
Cirrostratus
That's a great start. Rather than specifying a new TCP profile, you can set the IP idle timeout from the iRule using IP::idle_timeout. There are a couple of examples on the wiki page: - hoolio
Cirrostratus
I think you'll want to set the idle timeout for both the client and serverside connections.
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