11-08-2011 06:01 AM
Hello.
I am used to work with ACE where I perform NAT at interface level.
I am going to work with CSM and I would like to perform NAT based on client IP addresses; is it possible to do that with CSM? I only see NAT Client at Serverfarm Level and it does not seems scalable.
Best regards,
Joao Ribau
Solved! Go to Solution.
11-09-2011 04:51 AM
Good afternoon Joao,
It is possible to do it, but I'm afraid it's a bit more complicated than on ACE.
On the CSM, you could do this through the use of policies (see
http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/csm/4.2.x/configuration/guide/mapolcy.html#wp1036728 for more details).
What you would need to do is add several policies to the vserver, and for each of them you associate one client-group (an ACL defining the clients to be natted), a source-nat configuration and the serverfarm (this serverfarm will be the same for all policies).
Please, have a look at the link and let me know if you need any further clarifications.
Regards
Daniel
11-10-2011 12:12 AM
Hi Joao,
This kind of topology should not cause any issues.
The CSM will always do mac-sticky for load-balanced connections, so the return traffic will always be sent to the MAC address from which the original SYN packet was received. Even if it was not like that, as you said, you have routes pointing towards the servers, so these would be used before the default gateway.
Daniel
11-09-2011 04:51 AM
Good afternoon Joao,
It is possible to do it, but I'm afraid it's a bit more complicated than on ACE.
On the CSM, you could do this through the use of policies (see
http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/csm/4.2.x/configuration/guide/mapolcy.html#wp1036728 for more details).
What you would need to do is add several policies to the vserver, and for each of them you associate one client-group (an ACL defining the clients to be natted), a source-nat configuration and the serverfarm (this serverfarm will be the same for all policies).
Please, have a look at the link and let me know if you need any further clarifications.
Regards
Daniel
11-09-2011 10:41 AM
Daniel,
Thanks for your reply.
I have my CSM with 2 vlan (client and server) in router mode. Also have a default gateway to the client side and more specific routes (to the servers) to the server side gateway. Do you know if there is a CSM feature like the mac-sticky enable that exists on ACE? In my topology there may be clients that are also real server of serverfarms and I dont know how to solve this issue.
Real servers are several hops (layer 3) away from CSM.
Regards,
Joao.
11-10-2011 12:12 AM
Hi Joao,
This kind of topology should not cause any issues.
The CSM will always do mac-sticky for load-balanced connections, so the return traffic will always be sent to the MAC address from which the original SYN packet was received. Even if it was not like that, as you said, you have routes pointing towards the servers, so these would be used before the default gateway.
Daniel
11-10-2011 01:48 AM
Daniel,
Once again you were extremely helpful. I was performing some tests and I forgot to give some permissions in FWSM and so I assumed that mac-sticky was not an option.
Regards,
Joao.
11-16-2011 02:04 PM
nice to find this post, this saves me a lot of time.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide