Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

filter (Configuring)

Syntax

filter filter-name {accounting-profile name;enhanced-mode;interface-shared;interface-specific;physical-interface-filter;term term-name {filter filter-name;from {match-conditions;}then {actions;}}}

Hierarchy Level

[edit dynamic-profiles profile-name firewall family family-name],[edit firewall family family-name],[edit logical-systems logical-system-name firewall family family-name]

Release Information

Statement introduced before Junos OS Release 7.4.

Logical systems support introduced in Junos OS Release 9.3.

physical-interface-filter statement introduced in Junos OS Release 9.6.

Support at the [edit dynamic-profiles ... family family-name] hierarchy level introduced in Junos OS Release 11.4.

Support for the interface-shared> statement introduced in Junos OS Release 12.2.

Description

Configure firewall filters.

Options

filter-name—Name that identifies the filter. This must be a non-reserved string of not more than 64 characters. To include spaces in the name, enclose it in quotation marks (“ ”). In Junos OS Release 9.0 and later, you can no longer use special characters within the name of a firewall filter. Firewall filter names are restricted from having the form __.*__ (beginning and ending with underscores) or __.* (beginning with an underscore.

The remaining statements are explained separately.

Required Privilege Level

firewall—To view this statement in the configuration.

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

Published: 2013-02-21