# Persistence using Source IP and PORT

**URL:** <https://community.f5.com/t/persistence-using-source-ip-and-port/61330>\
**Category:** Technical Forums\
**Tags:** dev, irules, devops, application-delivery\
**Created:** [July 11, 2006, 10:15pm UTC](https://community.f5.com/t/persistence-using-source-ip-and-port/61330 "2006-07-11T22:15:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![johns](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@johns](https://community.f5.com/u/johns)\
**Post date:** [July 11, 2006, 10:15pm UTC](https://community.f5.com/t/persistence-using-source-ip-and-port/61330/1 "2006-07-11T22:15:53Z")

</div>

I have a requirement where clients log into a terminal server farm and initiate https requests to VIP on BIG-IP, and need to persist users based on their source IP and PORT. Currently, it is not possible to off load SSL to BIG-IP and using the Source IP option, there is a fare amount of “clumping”.

Is there any plan to add SourcePort (with SourceIP) as a parameter to persistence method, or would it be possible by parsing IP header? (using Universal Persistence)

Thanks.

John

---

<div class="post-metadata">

**Author:** ![Kai\_Wilke](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/kai_wilke/32/24646_2.png) [@Kai\_Wilke](https://community.f5.com/u/Kai_Wilke)\
**Post date:** [December 28, 2015, 6:52am UTC](https://community.f5.com/t/persistence-using-source-ip-and-port/61330/2 "2015-12-28T06:52:25Z")

</div>

Hi Joey,

since v10, I wouldn’t recommend to use

```tcl
persist UIE "[IP::client_addr]:[TCP::remote_port]"

```

anymore.

Using a CARP based algorythm for this specific scenario would be far more elegant now, since CARP doesn’t need to store a session table record for each single client\_ip:port combination and doesn’t have to remember any timeouts.

```tcl
when CLIENT_ACCEPTED {
    persist carp "[IP::client_addr]:[TCP::remote_port]"
    pool xyz_pool
}

```

Cheers, Kai
