<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Sticky using X-Forwarded-For in Application Networking</title>
    <link>https://community.cisco.com/t5/application-networking/sticky-using-x-forwarded-for/m-p/1803244#M35682</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have a back-end ACE which needs to create a sticky based on a header value. The&amp;nbsp; X-Forwarded-For header is perfect as it indicates the original client ip.&amp;nbsp; There is a front end ACE which is setting the header correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; My goal is to have the sticky associate every subsequent request originating from the same client ip (X-Forwarded-For value) to go to the same backend server.&amp;nbsp; This application opens multiple sessions and they all need to go to the same backend server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Does anyone have an example of what that backend ACE config would look like?&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2011 01:19:06 GMT</pubDate>
    <dc:creator>stevens_jj</dc:creator>
    <dc:date>2011-10-05T01:19:06Z</dc:date>
    <item>
      <title>Sticky using X-Forwarded-For</title>
      <link>https://community.cisco.com/t5/application-networking/sticky-using-x-forwarded-for/m-p/1803244#M35682</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have a back-end ACE which needs to create a sticky based on a header value. The&amp;nbsp; X-Forwarded-For header is perfect as it indicates the original client ip.&amp;nbsp; There is a front end ACE which is setting the header correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; My goal is to have the sticky associate every subsequent request originating from the same client ip (X-Forwarded-For value) to go to the same backend server.&amp;nbsp; This application opens multiple sessions and they all need to go to the same backend server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Does anyone have an example of what that backend ACE config would look like?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2011 01:19:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/sticky-using-x-forwarded-for/m-p/1803244#M35682</guid>
      <dc:creator>stevens_jj</dc:creator>
      <dc:date>2011-10-05T01:19:06Z</dc:date>
    </item>
    <item>
      <title>Sticky using X-Forwarded-For</title>
      <link>https://community.cisco.com/t5/application-networking/sticky-using-x-forwarded-for/m-p/1803245#M35683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have all the documentation regarding header stickiness, along with some examples at the following link:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ace/vA2_3_0/configuration/slb/guide/sticky.html#wp1060063"&gt;http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ace/vA2_3_0/configuration/slb/guide/sticky.html#wp1060063&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 06:41:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/sticky-using-x-forwarded-for/m-p/1803245#M35683</guid>
      <dc:creator>Daniel Arrondo Ostiz</dc:creator>
      <dc:date>2011-10-05T06:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sticky using X-Forwarded-For</title>
      <link>https://community.cisco.com/t5/application-networking/sticky-using-x-forwarded-for/m-p/1803246#M35684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got it setup and its reading the header however, it appears sometimes the header contains the client IP twice and sometime its only once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My client initiates 2 sessions and I am getting 2 sticky entries for the same client instead of 1.&amp;nbsp; The "show sticky database http-header 10.24.28.176" shows 1 entry and "show sticky database http-header 10.24.28.176, 10.24.28.176" shows a second entry which gets sent to a different rserver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use a header offset/length but this has problems since the ip address can change in length depending on if the octets are populated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 18:09:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/sticky-using-x-forwarded-for/m-p/1803246#M35684</guid>
      <dc:creator>stevens_jj</dc:creator>
      <dc:date>2011-10-05T18:09:45Z</dc:date>
    </item>
    <item>
      <title>Sticky using X-Forwarded-For</title>
      <link>https://community.cisco.com/t5/application-networking/sticky-using-x-forwarded-for/m-p/1803247#M35685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I changed up the config to create a custom header called "SRCIP" and put the %is in it.&amp;nbsp; Now I am getting just teh single address in each session.&amp;nbsp; It works for a little bit then eventually the client gets sent to a different server which fails the app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 20:35:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/sticky-using-x-forwarded-for/m-p/1803247#M35685</guid>
      <dc:creator>stevens_jj</dc:creator>
      <dc:date>2011-10-05T20:35:15Z</dc:date>
    </item>
    <item>
      <title>Sticky using X-Forwarded-For</title>
      <link>https://community.cisco.com/t5/application-networking/sticky-using-x-forwarded-for/m-p/1803248#M35686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understood you correctly, you now configured the ACE to insert a header with the client IP in it. Am I right? If so, this is not going to work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For stickiness to work properly, you would need to ensure that the client (or the proxy before the ACE) is inserting a string on the request that remains constant throughout all the connections from a single client. The moment this string changes, the ACE will no longer be able to find a valid sticky entry and just send the request to another server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the header stickiness is not working properly due to the changing headers, you could always try using cookie stickiness instead. The ACE can insert a cookie for stickiness purposes, and there is no reason for the client to modify it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 06:03:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/sticky-using-x-forwarded-for/m-p/1803248#M35686</guid>
      <dc:creator>Daniel Arrondo Ostiz</dc:creator>
      <dc:date>2011-10-06T06:03:40Z</dc:date>
    </item>
  </channel>
</rss>

