<?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 Re: ACE and NAT in Application Networking</title>
    <link>https://community.cisco.com/t5/application-networking/ace-and-nat/m-p/869165#M17015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, I got it working. I'm not sure it's the optimum design, but it works.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two default routes looks weird to me as well, but that's the way the book says to do it. In this case, either of those routes will work, so it's not a problem. I'm not worried about the routes right now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I needed to do was to do a source NAT so that the return packets worked correctly. I solved that by adding the following to the config.. It's hard for me to get my head around how this box works, the commands are not very intuitive. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At any rate, I created a class map that matches everything. A policy map that creates a dynamic NAT for that class. A nat-pool with pat for the server side interface. And assigned the service policy to the client interface.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It all works, but as I said maybe there  is an easier way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could they make a simple NAT arrangement seem more complicated and confusing if they tried??????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class-map match-all nat&lt;/P&gt;&lt;P&gt;  2 match source-address 0.0.0.0 0.0.0.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;policy-map multi-match nat&lt;/P&gt;&lt;P&gt;  class nat&lt;/P&gt;&lt;P&gt;  nat dynamic 1 vlan 116&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;interface vlan 116&lt;/P&gt;&lt;P&gt;  description SERVER SIDE&lt;/P&gt;&lt;P&gt;  ip address 10.144.16.6 255.255.240.0&lt;/P&gt;&lt;P&gt;  nat-pool 1 10.144.16.8 10.144.16.8 netmask 255.255.255.255 pat&lt;/P&gt;&lt;P&gt;  service-policy input everyone&lt;/P&gt;&lt;P&gt;  no shutdown&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;interface vlan 148&lt;/P&gt;&lt;P&gt;  description CLIENT SIDE&lt;/P&gt;&lt;P&gt;  ip address 10.148.1.10 255.255.255.0&lt;/P&gt;&lt;P&gt;  service-policy input v01_http_policy&lt;/P&gt;&lt;P&gt;  service-policy input v01_https_policy&lt;/P&gt;&lt;P&gt;  service-policy input nat&lt;/P&gt;&lt;P&gt;  no shutdown&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Nov 2007 13:20:44 GMT</pubDate>
    <dc:creator>gbowling1</dc:creator>
    <dc:date>2007-11-06T13:20:44Z</dc:date>
    <item>
      <title>ACE and NAT</title>
      <link>https://community.cisco.com/t5/application-networking/ace-and-nat/m-p/869162#M17012</link>
      <description>&lt;P&gt;I'm a newbie to configuring an ACE module so bear with me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a VIP that answers to port 80 that NAT's and loadshares that to a serverfarm on port 7778.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My relevant config statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;probe http v01_http_probe&lt;/P&gt;&lt;P&gt;  port 7778&lt;/P&gt;&lt;P&gt;  interval 30&lt;/P&gt;&lt;P&gt;  passdetect interval 10&lt;/P&gt;&lt;P&gt;  request method head url /index.html&lt;/P&gt;&lt;P&gt;  expect status 200 202&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rserver host hcpappl01&lt;/P&gt;&lt;P&gt;  ip address 10.144.20.175&lt;/P&gt;&lt;P&gt;  inservice&lt;/P&gt;&lt;P&gt;rserver host hcpappl02&lt;/P&gt;&lt;P&gt;  ip address 10.144.20.176&lt;/P&gt;&lt;P&gt;  inservice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;serverfarm host hcpappv01&lt;/P&gt;&lt;P&gt;  probe v01_http_probe&lt;/P&gt;&lt;P&gt;  rserver hcpappl01 7778&lt;/P&gt;&lt;P&gt;    inservice&lt;/P&gt;&lt;P&gt;  rserver hcpappl02 7778&lt;/P&gt;&lt;P&gt;    inservice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class-map match-all v01_vip_http&lt;/P&gt;&lt;P&gt;  2 match virtual-address 10.148.1.77 tcp eq www&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;policy-map type loadbalance first-match v01_policy&lt;/P&gt;&lt;P&gt;  class class-default&lt;/P&gt;&lt;P&gt;    serverfarm hcpappv01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;policy-map multi-match v01_http_policy&lt;/P&gt;&lt;P&gt;  class v01_vip_http&lt;/P&gt;&lt;P&gt;    loadbalance vip inservice&lt;/P&gt;&lt;P&gt;    loadbalance policy v01_policy&lt;/P&gt;&lt;P&gt;    loadbalance vip icmp-reply active&lt;/P&gt;&lt;P&gt;    loadbalance vip advertise active&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;interface vlan 116&lt;/P&gt;&lt;P&gt;  description SERVER SIDE&lt;/P&gt;&lt;P&gt;  ip address 10.144.16.6 255.255.240.0&lt;/P&gt;&lt;P&gt;  service-policy input everyone&lt;/P&gt;&lt;P&gt;  no shutdown&lt;/P&gt;&lt;P&gt;interface vlan 148&lt;/P&gt;&lt;P&gt;  description CLIENT SIDE&lt;/P&gt;&lt;P&gt;  ip address 10.148.1.10 255.255.255.0&lt;/P&gt;&lt;P&gt;  service-policy input v01_http_policy&lt;/P&gt;&lt;P&gt;  no shutdown&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ip route 0.0.0.0 0.0.0.0 10.144.16.1&lt;/P&gt;&lt;P&gt;ip route 0.0.0.0 0.0.0.0 10.148.1.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All appears to work, except it doesn't.. when I do a show connections I can see the problem as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;switch/Admin# sh conn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;total current connections : 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;conn-id    np dir proto vlan source                destination           state&lt;/P&gt;&lt;P&gt;----------+--+---+-----+----+---------------------+---------------------+------+&lt;/P&gt;&lt;P&gt;2          2  in  TCP   148  10.148.1.100:1710     10.148.1.77:80        SYNSEEN&lt;/P&gt;&lt;P&gt;8          2  out TCP   116  10.144.20.175:7778    10.148.1.100:1036     INIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which shows the "return" connection from the real server as coming back from the realserver's address, not the NAT'd address. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The forward connection goes from my machine, 10.148.1.100, to the VIP 10.148.1.77 port 80. Correctly gets translated into 10.144.20.175:7778 and sent on to the server. However, when the server replies, it doesn't get translated back to 10.148.1.77:80&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously it's doing destination NAT, but not source NAT. Any idea as to how I have to make it do the source side as well?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2007 21:41:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/ace-and-nat/m-p/869162#M17012</guid>
      <dc:creator>gbowling1</dc:creator>
      <dc:date>2007-11-05T21:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: ACE and NAT</title>
      <link>https://community.cisco.com/t5/application-networking/ace-and-nat/m-p/869163#M17013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have 2 default routes which the first one listed will take precedence.  I think you need to remove the first default route and that will fix your problem.  Your config looks correct and will do 1/2 NAT where the server will see the real IP of the client but the client will only see the responses from the VIP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Casey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 00:06:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/ace-and-nat/m-p/869163#M17013</guid>
      <dc:creator>cajalat</dc:creator>
      <dc:date>2007-11-06T00:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: ACE and NAT</title>
      <link>https://community.cisco.com/t5/application-networking/ace-and-nat/m-p/869164#M17014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually looking at this further I see that the servers are not in the same subnet as the server net interface.  So you'll need to add a route to reach the servers through the server net.  Your response from the servers needs to go through the load balancer so you need to ensure that happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 00:12:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/ace-and-nat/m-p/869164#M17014</guid>
      <dc:creator>cajalat</dc:creator>
      <dc:date>2007-11-06T00:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: ACE and NAT</title>
      <link>https://community.cisco.com/t5/application-networking/ace-and-nat/m-p/869165#M17015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, I got it working. I'm not sure it's the optimum design, but it works.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two default routes looks weird to me as well, but that's the way the book says to do it. In this case, either of those routes will work, so it's not a problem. I'm not worried about the routes right now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I needed to do was to do a source NAT so that the return packets worked correctly. I solved that by adding the following to the config.. It's hard for me to get my head around how this box works, the commands are not very intuitive. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At any rate, I created a class map that matches everything. A policy map that creates a dynamic NAT for that class. A nat-pool with pat for the server side interface. And assigned the service policy to the client interface.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It all works, but as I said maybe there  is an easier way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could they make a simple NAT arrangement seem more complicated and confusing if they tried??????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class-map match-all nat&lt;/P&gt;&lt;P&gt;  2 match source-address 0.0.0.0 0.0.0.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;policy-map multi-match nat&lt;/P&gt;&lt;P&gt;  class nat&lt;/P&gt;&lt;P&gt;  nat dynamic 1 vlan 116&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;interface vlan 116&lt;/P&gt;&lt;P&gt;  description SERVER SIDE&lt;/P&gt;&lt;P&gt;  ip address 10.144.16.6 255.255.240.0&lt;/P&gt;&lt;P&gt;  nat-pool 1 10.144.16.8 10.144.16.8 netmask 255.255.255.255 pat&lt;/P&gt;&lt;P&gt;  service-policy input everyone&lt;/P&gt;&lt;P&gt;  no shutdown&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;interface vlan 148&lt;/P&gt;&lt;P&gt;  description CLIENT SIDE&lt;/P&gt;&lt;P&gt;  ip address 10.148.1.10 255.255.255.0&lt;/P&gt;&lt;P&gt;  service-policy input v01_http_policy&lt;/P&gt;&lt;P&gt;  service-policy input v01_https_policy&lt;/P&gt;&lt;P&gt;  service-policy input nat&lt;/P&gt;&lt;P&gt;  no shutdown&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 13:20:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/ace-and-nat/m-p/869165#M17015</guid>
      <dc:creator>gbowling1</dc:creator>
      <dc:date>2007-11-06T13:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: ACE and NAT</title>
      <link>https://community.cisco.com/t5/application-networking/ace-and-nat/m-p/869166#M17016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Too funny.  I had the same thoughts when I first started with the ACE.  Now I'm getting the hang of it and realize the benefits of what seems convoluted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your config will work.  The only recommendation I would make is to match on destinations to the VIP only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds like in your case your ACE is in the middle of your network.  In this case I would recommend that you add specific routes to your server nets via the server interface vs. adding a 2nd default route.  Normally server networks are literally behind the ACE/LoadBalancer where the LB is the default gateway for the server.  Yours will work but it is more complex and requires ensuring symmetric paths in/out of your ACE.  Otherwise you'll need to apply your service-policy to all of your interfaces depending on which way the traffic enters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 15:12:50 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/ace-and-nat/m-p/869166#M17016</guid>
      <dc:creator>cajalat</dc:creator>
      <dc:date>2007-11-06T15:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: ACE and NAT</title>
      <link>https://community.cisco.com/t5/application-networking/ace-and-nat/m-p/869167#M17017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The manuals suck. Almost all the examples in the Security Guide in the NAT section have errors. I muddled through getting NAT to work last night so here is what it doesn't tell you in the NAT guide that you might run into an issue with. I had a default gateway pointing to my msfc management VLAN and a client side vlan that I wanted to NAT on. Do a "sh conn" and make sure that the IN vlan is 116 and the OUT vlan is 148. In my case my default route was sending the packet to the msfc on the management vlan and not natting the packet. As soon as I change the management route to a more specific route and changed my default route to the outside msfc interface, the packet was getting properly natted on the outside vlan. Also, I notice that after change the router and the NAT settings and saving the  settings, they didn't actually seem to take for 30-60 seconds. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 17:24:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/ace-and-nat/m-p/869167#M17017</guid>
      <dc:creator>blade_ace</dc:creator>
      <dc:date>2007-11-06T17:24:22Z</dc:date>
    </item>
  </channel>
</rss>

