Firewall – Cisco ASA5510 Bandwidth Shaping/Limiting

ciscocisco-asafirewall

This question is in two parts:

Shape

How can I limit the bandwidth on a ASA5510 to less than 10Mbps?

Currently I have:

policy-map shape_policy
class class-default
 shape average 9000000 36096
!
service-policy shape_policy interface outside

But when I look at the traffic on the outside interface it seems it sometimes busts the 10Mbps.

Police

Also, is it possible to limit the bandwidth taken by each users on the ASA? I've tried something like that (although it is not running at the moment):

police input 3000000 51200 conform-action transmit exceed-action drop
police output 3000000 51200 conform-action transmit exceed-action drop

Is it the way to go or is there a better way?

Thanks!

// Addendum:

I should add I'm using version 8.0(4) of the firmware as it can help provide proper configurations for the latest ASAs.

// Status:

I've opened up a bounty. I got two interesting answers although not definite. One seems to be outdated in terms of supported commands, the other one does not answer the second part of the question and leave me unsatisfied. Cisco experts needed!

Best Answer

This:

  shape average 9000000 36096

actually gives your ASA license to burst the the bandwidth you've allocated, if there#s been a suitably quiet period. If you want a guarantee that you never exceed a given bandwidth, using policing is a better option (on the other hand, with policing, any packets that exceed the bandwidth will be dropped instead of delayed).