<?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 ACE redirect from port 80 to port 8080 in Application Networking</title>
    <link>https://community.cisco.com/t5/application-networking/ace-redirect-from-port-80-to-port-8080/m-p/1828584#M36048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joao, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should configure two separate VIPs. One for port 80 doing the redirection and one for port 8080 load-balancing the traffic. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&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, 16 Feb 2012 14:28:10 GMT</pubDate>
    <dc:creator>Daniel Arrondo Ostiz</dc:creator>
    <dc:date>2012-02-16T14:28:10Z</dc:date>
    <item>
      <title>ACE redirect from port 80 to port 8080</title>
      <link>https://community.cisco.com/t5/application-networking/ace-redirect-from-port-80-to-port-8080/m-p/1828583#M36047</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ACE module I am trying to redirect traffic (80 to 8080). The thing is that my VIP receives traffic in port 80, 8080 and 443 and I want to redirect only http traffic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the following config:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;access-list http extended permit tcp any any eq www&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;serverfarm host A&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; rserver 10.0.0.1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; inservice&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; rserver 10.0.0.2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; inservice&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;serverfarm host A-80to8080&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; rserver 10.0.0.1 8080&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; inservice&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; rserver 10.0.0.2 8080&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; inservice&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;class-map match-any VIP&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;100 match virtual-address 1.1.1.1 any&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;class HTTP&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 10 match access-list http&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;policy-map type loadbalance first-match A&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; class HTTP&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; serverfam A-80to8080&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; class class-default&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; serverfarm A&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing is that the class HTTP is not acepted. Does anyone know if it is possible to loadbalance traffic based on an ACL? I have also tried port numbers on class HTTP and it didn´t worked also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Joao Carvalho&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2012 13:02:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/ace-redirect-from-port-80-to-port-8080/m-p/1828583#M36047</guid>
      <dc:creator>jcarvalh</dc:creator>
      <dc:date>2012-02-16T13:02:42Z</dc:date>
    </item>
    <item>
      <title>ACE redirect from port 80 to port 8080</title>
      <link>https://community.cisco.com/t5/application-networking/ace-redirect-from-port-80-to-port-8080/m-p/1828584#M36048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joao, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should configure two separate VIPs. One for port 80 doing the redirection and one for port 8080 load-balancing the traffic. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&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, 16 Feb 2012 14:28:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/ace-redirect-from-port-80-to-port-8080/m-p/1828584#M36048</guid>
      <dc:creator>Daniel Arrondo Ostiz</dc:creator>
      <dc:date>2012-02-16T14:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: ACE redirect from port 80 to port 8080</title>
      <link>https://community.cisco.com/t5/application-networking/ace-redirect-from-port-80-to-port-8080/m-p/1828585#M36049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try to accomplish this by doing something like the below config?&amp;nbsp; Basically create two different LB policies - one for straight through, one for PAT.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, if you are OK with a non-transparent redirect, you could create a rserver type redirect to handle the port 80 to 8080 redirect.&amp;nbsp; This would throw a 302 redirect at the user's browser, thus immediately transferring them to port 8080 on the VIP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, here is a quick example of the first option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;P&gt;class-map match-any VIP1&lt;/P&gt;&lt;P&gt; 2 match virtual-address 1.1.1.1 tcp eq 8080&lt;/P&gt;&lt;P&gt; 3 match virtual-address 1.1.1.1 tcp eq 443&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; class-map match-any VIP2&lt;/P&gt;&lt;P&gt; 2 match virtual-address 1.1.1.1 tcp eq 80&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; policy-map type loadbalance first-match VIP1-POLICY&lt;/P&gt;&lt;P&gt;&amp;nbsp; class class-default&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; serverfarm A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;policy-map type loadbalance first-match VIP2-POLICY&lt;/P&gt;&lt;P&gt; class class-default&lt;/P&gt;&lt;P&gt;&amp;nbsp; serverfarm A-80to8080&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;policy-map multi-match INTERFACE-LB-POLICY&lt;/P&gt;&lt;P&gt; class VIP1&lt;/P&gt;&lt;P&gt;&amp;nbsp; loadbalance vip inservice&lt;/P&gt;&lt;P&gt;&amp;nbsp; loadbalance policy VIP1-POLICY&lt;/P&gt;&lt;P&gt; class VIP2&lt;/P&gt;&lt;P&gt;&amp;nbsp; loadbalance vip inservice&lt;/P&gt;&lt;P&gt;&amp;nbsp; loadbalance policy VIP2-POLICY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 14:52:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/ace-redirect-from-port-80-to-port-8080/m-p/1828585#M36049</guid>
      <dc:creator>mgalazka</dc:creator>
      <dc:date>2012-02-16T14:52:04Z</dc:date>
    </item>
    <item>
      <title>ACE redirect from port 80 to port 8080</title>
      <link>https://community.cisco.com/t5/application-networking/ace-redirect-from-port-80-to-port-8080/m-p/1828586#M36050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Thanks for your replies but I tried something diferent and it works.&lt;/P&gt;&lt;P&gt;I have made the following config:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;class-map type http loadbalance match-any HTTP&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; match http header Host header-value .*&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;policy-map type loadbalance first-match A-SF&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; class HTTP&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; serverfarm A-80to8080&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; class class-default&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; serverfarm A&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;In this way all http traffic is redirected to 8080; since ACE is making an inspection to the packet it will redirect all HTTP traffic regardless of the destination port (in my case the firewall is only allowing http, https and 8080 so no one will notice this)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again thanks for your replies.&lt;/P&gt;&lt;P&gt;Joao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 15:10:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/ace-redirect-from-port-80-to-port-8080/m-p/1828586#M36050</guid>
      <dc:creator>jcarvalh</dc:creator>
      <dc:date>2012-02-16T15:10:06Z</dc:date>
    </item>
  </channel>
</rss>

