Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Configuring Reject Actions (SRC CLI)

    You can configure reject actions for Junos OS 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 {message-type message-type ; description description ; }

    To configure a reject action:

    1. From configuration mode, enter the reject action configuration.
      user@host# edit policies group junos list filter rule rejectRule reject
    2. (Optional) Configure the type of ICMP destination unreachable message sent to the client.
      [edit policies group junos list filter rule rejectRule reject]user@host# set message-type message-type
    3. (Optional) Enter a description for the reject action.
      [edit policies group junos list filter rule rejectRule reject]user@host# set description description
    4. (Optional) Verify the reject action configuration.
      [edit policies group junos list filter rule rejectRule reject]
      user@host# show 
      message-type network-prohibited;
      description "Reject action in Junos OS filter policy";

    Modified: 2016-12-29