Print Download PDF Send Feedback

Previous

Next

'fw sam_policy del' and 'fw6 sam_policy del'

Description

The 'fw sam_policy del' and 'fw6 sam_policy del' commands let you:

Notes:

Important:

Syntax for IPv4

fw [-d] sam_policy del '<Rule UID>'

Syntax for IPv6

fw6 [-d] sam_policy del '<Rule UID>'

Parameters

Parameter

Description

-d

Enables the debug mode for the fw command. By default, writes to the screen.

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

'<Rule UID>'

Specifies the UID of the rule you wish to delete.

Important:

Procedure

Step

Description

1

List all the existing rules in the Suspicious Activity Monitoring policy database:

For IPv4: fw sam_policy get

For IPv6: fw6 sam_policy get

The rules show in this format:

operation=add uid=<Value1,Value2,Value3,Value4> target=... timeout=... action=... log= ... name= ... comment=... originator= ... src_ip_addr=... req_tpe=...

Example for IPv4:

operation=add uid=<5ac3965f,00000000,3403a8c0,0000264a> target=all timeout=300 action=notify log=log name=Test\ Rule comment=Notify\ about\ traffic\ from\ 1.1.1.1 originator=John\ Doe src_ip_addr=1.1.1.1 req_tpe=ip

2

Delete a rule from the list by its UID.

For IPv4: fw [-d] sam_policy del '<Rule UID>'

For IPv6: fw6 [-d] sam_policy del '<Rule UID>'

Example for IPv4:

fw samp del '<5ac3965f,00000000,3403a8c0,0000264a>'

3

Enter this flush-only add rule:

For IPv4: fw samp add -t 2 quota flush true

For IPv6: fw6 samp add -t 2 quota flush true

Explanation:

The fw samp del and fw6 samp del commands only remove a rule from the persistent database. The Security Gateway continues to enforce the deleted rule until the next time you compiled and load a policy. To force the rule deletion immediately, you must enter a flush-only add rule right after the fw samp del and fw6 samp del command. This flush-only add rule immediately deletes the rule you specified in the previous step, and times out in 2 seconds. It is a good practice to specify a short timeout period for the flush-only rules. This prevents accumulation of rules that are obsolete in the database.