# irule to a Persistent pool

**URL:** <https://community.f5.com/t/irule-to-a-persistent-pool/19060>\
**Category:** Technical Forums\
**Tags:** irules, dev, devops, application-delivery\
**Created:** [February 2, 2010, 8:17am UTC](https://community.f5.com/t/irule-to-a-persistent-pool/19060 "2010-02-02T08:17:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_C\_16907](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@Michael\_C\_16907](https://community.f5.com/u/Michael_C_16907)\
**Post date:** [February 2, 2010, 8:17am UTC](https://community.f5.com/t/irule-to-a-persistent-pool/19060/1 "2010-02-02T08:17:11Z")

</div>

How do I setup a Persistent connection(use Persistent pool) in an iRule?

e.g.

when CLIENT\_ACCEPTED {

if { [TCP::local\_port] equals 23}{

pool HGC\_Persistent\_GW

}

}

I need all port23 services to go to this pool Persistently.

Thanks

---

<div class="post-metadata">

**Author:** ![The\_Bhattman](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/the_bhattman/32/13958_2.png) [@The\_Bhattman](https://community.f5.com/u/The_Bhattman)\
**Post date:** [February 2, 2010, 2:02pm UTC](https://community.f5.com/t/irule-to-a-persistent-pool/19060/2 "2010-02-02T14:02:05Z")

</div>

Hi Michael,

You would create a persistent profile. I not exactly which version of the LTM you are using, but [Click here](https://support.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/bigip9_3config/BIG_IP_LTM_9_3_Config_Guide-08-1.htmlwp1188358) to see some instructions.

I hope this helps

Bhattman
