# rlnclientipaddr re-write?

**URL:** <https://community.f5.com/t/rlnclientipaddr-re-write/56042>\
**Category:** Technical Forums\
**Tags:** dev, irules, devops, application-delivery\
**Created:** [November 24, 2009, 6:52pm UTC](https://community.f5.com/t/rlnclientipaddr-re-write/56042 "2009-11-24T18:52:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Warren\_A\_97345](https://avatars.discourse-cdn.com/v4/letter/w/dfb087/32.png) [@Warren\_A\_97345](https://community.f5.com/u/Warren_A_97345)\
**Post date:** [November 24, 2009, 6:52pm UTC](https://community.f5.com/t/rlnclientipaddr-re-write/56042/1 "2009-11-24T18:52:10Z")

</div>

My engineers have given me that requirement that the http header field rlnclientipaddr always has to be populated with the real source IP of the http traffic.

I am not sure if I will be using SNAT yet for the pool these servers live in, so this will be the only way for the logging data to retain the real request IP.

I am guessing this should be set up on http\_request action, but how exactly would I implement the rewrite itself?

---

<div class="post-metadata">

**Author:** ![hoolio](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@hoolio](https://community.f5.com/u/hoolio)\
**Post date:** [November 24, 2009, 6:55pm UTC](https://community.f5.com/t/rlnclientipaddr-re-write/56042/2 "2009-11-24T18:55:40Z")

</div>

You can create a custom HTTP profile with the option for Header to Insert configured. Set it as:

rlnclientipaddr: [IP::client\_addr]

If you want LTM to remove any pre-existing HTTP headers named rlnclientipaddr, configure the Header to Erase as rlnclientipaddr.

Aaron
