Forum Discussion
Christopher_Hyl
May 05, 2011Nimbostratus
True-IP persistence or source-IP if it doesn't exsist.
This is a basic derivative of the irule in the last post .
It's a long story of why we're doing this, but we're using a CDN that passes us the "true-client-ip" HTTP header. We want source persis...
Christopher_Hyl
May 06, 2011Nimbostratus
I've attached the irule to the persistence profile and the persistence profile to the VIP, but it's still not working. It seems to be passing them almost round-robin.
Here is the log entry I added:
log local0. "HTTP setting persist to: $tcip_header CDN-IP: [IP::remote_addr]"
Here is the Log output for our office's ip (office IP has been changed to 1.2.3.4) the external ips are our CDN's egress (they bounce around a lot!):
May 6 12:24:21 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.180
May 6 12:24:21 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.181
May 6 12:24:21 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.179
May 6 12:24:23 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.182
May 6 12:24:24 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.180
May 6 12:24:24 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.179
May 6 12:24:24 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.181
May 6 12:24:24 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.182
May 6 12:24:26 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.182
May 6 12:24:26 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.180
May 6 12:24:26 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.179
May 6 12:24:26 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.181
May 6 12:24:26 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.180
May 6 12:24:28 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.180
May 6 12:24:29 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.181
May 6 12:24:29 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.182
May 6 12:24:29 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.180
May 6 12:24:29 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.179
May 6 12:24:31 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.182
May 6 12:24:31 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.181
May 6 12:24:31 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.182
May 6 12:24:31 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.181
May 6 12:24:31 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.179
May 6 12:24:33 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.180
May 6 12:24:34 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.179
May 6 12:24:34 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.181
May 6 12:24:34 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.181
May 6 12:24:34 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.181
May 6 12:24:36 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.181
May 6 12:24:36 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.182
May 6 12:24:36 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.180
May 6 12:24:36 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.180
May 6 12:24:36 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.180
May 6 12:24:38 tmm tmm[1715]: Rule persistenceiRule : HTTP setting persist to: 1.2.3.4 CDN-IP: 208.111.181.181
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