fw sam_policy

Description

Manages the Suspicious Activity Policy editor to works with the Rate Limiting rules.

See sk112454: How to configure Rate Limiting rules for DoS Mitigation.

Also, see the "sam_alert" command in the R80.20 CLI Reference Guide.

Important:

Notes:

  • These commands are interchangeable:

    • For IPv4: "g_fw sam_policy" and "g_fw samp"

    • For IPv6: "g_fw6 sam_policy" and "g_fw6 samp"

  • Security Group Members store the SAM Policy rules in the $FWDIR/database/sam_policy.db file.

  • Security Group Members store the SAM Policy management settings in the $FWDIR/database/sam_policy.mng file.

Best Practice - SAM Policy rules consume some CPU resources on Security Group Members. Set an expiration for rules that gives you time to investigate, but does not affect performance. Keep only the required SAM Policy rules. If you confirm that an activity is risky, edit the Security PolicyClosed Collection of rules that control network traffic and enforce organization guidelines for data protection and access to resources with packet inspection., educate users, or otherwise handle the risk.

Syntax for IPv4

g_fw [-d] sam_policy

      add <options>

      batch

      del <options>

      get <options>

g_fw [-d] samp

      add <options>

      batch

      del <options>

      get <options>

Syntax for IPv6

g_fw6 [-d] sam_policy

      add <options>

      batch

      del <options>

      get <options>

g_fw6 [-d] samp

      add <options>

      batch

      del <options>

      get <options>

Parameters

Parameter

Description

-d

Runs the command in debug mode.

Use only if you troubleshoot the command itself.

Best Practice - If you use this parameter, then redirect the output to a file, or use the script command to save the entire CLI session.

add <options>

Adds one Rate Limiting ruleClosed Set of traffic parameters and other conditions in a Rule Base (Security Policy) that cause specified actions to be taken for a communication session. one at a time.

See fw sam_policy add.

batch

Adds or deletes many Rate Limiting rules at a time.

R80.20SP does not support this parameter (Known Limitation MBS-8143).

del <options>

Deletes one configured Rate Limiting rule one at a time.

See fw sam_policy del.

get <options>

Shows all the configured Rate Limiting rules.

See fw sam_policy get.