[Contents]
[Prev]
[Next]
[Index]
[Report an Error]
Configuring Reject Actions
You can configure reject actions for JUNOS
filter policy rules. The reject action causes the router to discard
a packet and send an ICMP destination unreachable message.
The type of action that you can create depends
on the type of policy rule. See Policy Information Model.
Use the following configuration statements to configure
reject actions:
- policies group name list name rule name reject name {
- message-type message-type ;
- description description ;
- }
To configure a reject action:
- From configuration mode, enter the reject action configuration.
For example, in this procedure, rejectAction is the name of the reject
action.
- user@host# edit policies group junos list
filter rule rejectRule reject rejectAction
- (Optional) Configure the type of ICMP destination unreachable
message sent to the client.
- [edit policies group junos list filter rule rejectRule
reject rejectAction]
- user@host# set message-type message-type
- (Optional) Enter a description for the reject action.
- [edit policies group junos list filter rule rejectRule
reject rejectAction]
- user@host# set description description
- (Optional) Verify the reject action configuration.
[edit policies group junos list filter rule rejectRule reject rejectAction]
user@host# show
message-type network-prohibited;
description "Reject action in JUNOS filter policy";
[Contents]
[Prev]
[Next]
[Index]
[Report an Error]