To configure the next action for a filter sequence, use the set firewall filter sequence then action command in L2/L3 configuration mode.

Command Syntax

set firewall filter filter-name sequence number then action { discard | forward }

Parameters

filter-nameFilter name.
numberFilter sequence number. The range is 0-9999.
discardDiscard packets that meet all match conditions.
forwardForward packets that meet all match conditions.

Examples

The following example configures sequence 1 and 2 of the MyFilter filter to forward and discard matching packets, respectively.

admin@Switch# set firewall filter MyFilter sequence 1 then action forward 
admin@Switch# set firewall filter MyFilter sequence 2 then action discard