How to Implement Resource Protection using a DOS Profile
Procedure
To protect resources using a DOS profile:
- Create a DOS profile and under resource protection, set the maximum concurrent list for sessions.
- Create a DOS rule under policies for specific source and destination with the above dos profile
Useful commands for troubleshooting:
> show counter global filter | match dos
flow_dos_curr_sess_incr_failed 2 0 drop flow dos Unable to increment current session count on session create
flow_dos_cl_curr_sess_add_incr 2 0 info flow dos Incremented classified current session count on session create
flow_dos_cl_max_sess_limit 2 0 drop flow dos Session limit reached for classified profile, drop session
To see the count of dropped packets as well as other details:
> show dos-protection rule DOS-Rule statistics
Rule:DOS-Rule, idx:0, id:3
Aggregate profile:
Classified profile:DOS-RscProtect
Classification Criteria:Source-IP Destination-IP
Action:protect
Classified profile:DOS-RscProtect
sessions:
current: 0 sessions dropped:6
-------------------------------------------------------------------------------
owner: ssunku