Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

term (URL Filter)

Syntax

Hierarchy Level (starting in Junos OS Release 18.3R1)

Hierarchy Level (before Junos OS Release 18.3R1)

Description

Define a URL filtering term. A term is a set of match criteria with actions to be taken if the match criteria is met. You must configure term to configure URL filtering.

Options

term-name

Name of the term.

from

Define match criteria.

The from statement is optional. If you omit the from statement, all source IP prefixes and all destination ports are considered to match. All such combinations then take the configured actions of the term.

Only one term in a template can have an optional from statement. If you omit more than one from statement per template, you will get the following error message on commit:

Similarly, no two templates within a profile can have a term without a from statement.

dest-ports

Destination port list specification.

  • Range: 1 through 65535

src-ip-prefix

Source IP prefix list specification.

then

Specify one of the following actions to be taken if the from condition is matched:

accept

Accept the traffic and allow it to flow as normal.

custom-page custom-page

Custom-page string.

http-status-code http-status-code

HTTP status code value.

  • Range: 400 through 599

redirect-url redirect-url

URL to redirect traffic to.

tcp-reset

Reset TCP.

Required Privilege Level

system—To view this statement in the configuration.

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

Release Information

Statement introduced in Junos OS Release 17.2.