/
set firewall filter sequence from protocol icmp

set firewall filter sequence from protocol icmp

To configure a filter sequence to match ICMP (Internet Control Message Protocol) packets, use the set firewall filter sequence from protocol icmp command in L2/L3 configuration mode.

set firewall filter sequence from protocol icmp and set firewall filter sequence from protocol igmp commands configure the firewall filter rules based on the ICMP or IGMP protocol type for only IPv4 traffic classification. To configure the firewall filter rule based on the ICMP or IGMP protocol type for IPv6 traffic classification, use the set firewall filter sequence from protocol others command with the protocol number.


Command Syntax

set firewall filter filter-name sequence number from protocol icmp [ type type | code code ]
delete firewall filter filter-name sequence number from protocol icmp [ type | code ]

Parameters

filter-nameFilter name.
numberFilter sequence number. The range is 0-9999.
typeICMP type. The range is 0-254.
codeICMP code. The range is 0-254.

Examples

The following example configures sequence 10 of the MyFilter filter to match packets with 0 as the ICMP code and 24 as the ICMP type:

admin@Switch# set firewall filter MyFilter sequence 10 from protocol icmp code 0
admin@Switch# set firewall filter MyFilter sequence 10 from protocol icmp type 24

The following example removes the match conditions from sequence 10 of the MyFilter filter:

admin@XorPlus# delete firewall filter MyFilter sequence 10 from protocol icmp code
Deleting: 
>   code: 0
OK 
admin@XorPlus# delete firewall filter MyFilter sequence 10 from protocol icmp type
Deleting: 
>   type: 24
OK 

Copyright © 2025 Pica8 Inc. All Rights Reserved.