09-09-2011 11:41 AM - edited 03-11-2019 02:22 PM
Hi,
I would like to know if there is a way to apply in the Cisco asa 5510 traffic shaping not for a interface but a single IP address.
For example i would like to limit the bandwith for the IP address of my FTP server.
Can someone help me ?.
Thanks !
09-09-2011 12:00 PM
09-09-2011 05:48 PM
Hello Andres,
Lets say the ip addres of the host is 192.168.10.1 and we want to limit the bandwith when he goes to the internet
So first you need to match the traffic
access-list test permit tcp host 192.168.10.1 any eq 80
access-list test permit tcp host 192.168.10.1 any eq 443
Now lets create the map-class
map-class BD
match access-list test
Now lets create the Policy-map
Policy-map BD_LIMIT
class BD
shape average 86000 (Bits per second)
Finally Apply it to an interface
Service-policy BD_LIMIT interface outside
I hope this example show you how this needs to be configured, Any doubt let me know
Regards,
Julio
09-13-2011 05:38 AM
Hi Julio,
Thank you for your quick response. I was not able to finish this cause when im traying to apply the shape average under the class BD i get this error:
ERROR: 'shape' can only be configured for class "class-default"
I think that if i apply this to the class-defaul its not going to match with the access list
Any idea ?
Thanks again
09-13-2011 06:33 AM
On Julio's sample you need to be a little careful. The sample talks about RFC 1918 address space and the policy-map is applied on the outside interface. If the ASA is internet facing this address will not be matched at all being non-routable private address space.
You are correct shaping can only be applied to class-default:
shaping sample:
class-map VOICE
match dscp ef
policy-map CHILD-POLICY
class VOICE
priority
policy-map PARENT-POLICY
class class-default
shape average 256000 2560
service-policy CHILD-POLICY
service-policy PARTENT-POLICY interface outside
If you need to rate limit traffic to the webserver follow this
policy/priority sample:
access-list www-traffic permit tcp any ho x.x.x.x eq 80
class-map HTTP-TRAFFIC
match access-l www-traffic
class-map VOICE
match dscp ef
policy-map police-priority
class VOICE
pirority
class HTTP-TRAFFIC
police output 200000
service-policy police-priority interface outside
-KS
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