To configure a filter sequence to match packets with specified source IP address, use the set firewall filter sequence from source-address-ipv4 command in L2/L3 configuration mode. To remove the condition from the filter sequence, use the delete form of the command.

Command Syntax

set firewall filter filter-name sequence number from source-address-ipv4 address/prefix-length
delete firewall filter filter-name sequence number from source-address-ipv4

Parameters

filter-nameFilter name.
numberThe filter sequence number. The range is 0-9999.
address/prefix-lengthIPv4 address / prefix length

Examples

The following example configures sequence 1 of the MyFilter filter to match packets with source address 192.168.1.1:

admin@Switch# set firewall filter MyFilter sequence 1 from source-address-ipv4 192.168.1.1/32

The following example removes the condition from sequence 1 of the MyFilter filter:

admin@XorPlus# delete firewall filter MyFilter sequence 1 from source-address-ipv4
Deleting: 
>   source-address-ipv4: 192.168.1.1/32
OK