Home > Configuration > NS > setnsacl_icmptype

setnsacl_icmptype

Use this method to set iCMP Message type to match against the message type of an incoming ICMP packet. For example, to block DESTINATION UNREACHABLE messages, you must specify 3 as the ICMP type.

Note: This parameter can be specified only for the ICMP protocol.

Syntax



Parameters

aclname

Name of the ACL rule whose parameters you want to modify.
This is mandatory parameter.

icmptype

ICMP Message type to match against the message type of an incoming ICMP packet. For example, to block DESTINATION UNREACHABLE messages, you must specify 3 as the ICMP type. Note: This parameter can be specified only for the ICMP protocol.
Maximum value = 65536.

icmpcode

Code of a particular ICMP message type to match against the ICMP code of an incoming ICMP packet. For example, to block DESTINATION HOST UNREACHABLE messages, specify 3 as the ICMP type and 1 as the ICMP code. If you set this parameter, you must set the ICMP Type parameter.
Maximum value = 65536.

Return Value

Returns simpleResult

See Also