Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

then (Stateful Firewall Rule Next Gen Services)

date_range 20-Nov-23

Syntax

content_copy zoom_out_map
then {
    count;
    deny;
    permit;
    reject;
}

Hierarchy Level

content_copy zoom_out_map
[edit services policies stateful-firewall-rule rule-name policy policy-name]

Description

Specify the actions for a stateful firewall rule policy. The policy actions are applied to flows that meet the policy’s matching properties.

Options

count

Enables a count, in bytes or kilobytes, of all network traffic the policy allows to pass.

deny

Drop the packets.

permit

Accept the packets and send them to their destination.

reject

Drop the packets. For TCP traffic, send a TCP reset (RST) segment to the source host. For UDP traffic, send an ICMP destination unreachable, port unreachable message (type 3, code 3) to the source host.

Required Privilege Level

interface—To view this statement in the configuration.

interface-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 19.3R2.

footer-navigation