Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Example: Configuring Static Ascend-Data-Filter Support for Subscriber Access

This example shows how to configure support for static Ascend-Data-Filter policies. In a static configuration, you manually configure the Ascend-Data-Filter as part of the dynamic profile configuration. This procedure differs from dynamic configuration, in which the Ascend-Data-Filter is defined on the RADIUS server and then subscriber management uses a predefined variable to map the Ascend-Data-Filter rules to Junos OS filter functionality. Because creating a static Ascend-Data-Filter configuration can be labor-intensive, you might typically use this method for testing purposes.

Requirements

Overview

Ascend-Data-Filters contain rules that create policies. Subscriber management uses a dynamic profile to apply the policy to a subscriber session. You manually configure the Ascend-Data-Filter as part of the dynamic policy.

  • Specify the dynamic profile to use to apply the Ascend-Data-Filter policy to the subscriber session.

  • Configure the Ascend-Data-Filter.

  • Configure optional settings, which include counting the rule usage and setting the precedence for received and transmitted traffic.

Configuration

Procedure

Step-by-Step Procedure

To configure static Ascend-Data-Filter support:

  1. Specify the dynamic profile in which you want to create the Ascend-Data-Filter, and configure the interface, the logical unit number, and the family type.

  2. Configure the Ascend-Data-Filter. Enclose the filter values within quotation marks. You can configure multiple Ascend-Data-Filter rules in the same dynamic profile.

  3. Enable the counter for the rule.

  4. Specify the precedence for received packets on the interface.

  5. Specify the precedence for transmitted packets on the interface.

Results

From configuration mode, confirm your configuration by entering the show dynamic-profiles command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

If you are done configuring the device, enter commit from configuration mode.

Results

The Ascend-Data-Filter rule defined in Step 2 of the procedure configures an input policy that filters all packets from network 203.0.113.0 with wildcard mask 255.255.255.0 to any destination.

Table 1 lists the values specified in the Ascend-Data-Filter rule.

Table 1: Ascend-Data-Filter Rule

Action or Classifier

Hex Value

Junos OS Filter Function

Type

01

IPv4

Forward

00

Forward

Indirection

01

Ingress

Spare

00

None

Source IP address

CB007100

203.0.113.0

Destination IP address

00000000

Any

Source IP mask

18

24 (255.255.255.0)

Destination IP mask

00

0 (0.0.0.0)

Protocol

00

None

Established

00

None

Source port

0000

None

Destination port

0000

None

Source port qualifier

00

None

Destination port qualifier

00

None

Reserved

0000

None

Verification

To confirm that the configuration is working properly, perform these tasks:

Verifying that Static Ascend-Data-Filter Rules are Applied to Subscriber Sessions

Purpose

Verify that the Ascend-Data-Filter rules you manually configured were attached to the subscriber.

Action

From operational mode, enter the show subscribers extensive command.

Meaning

The output shows the information for the dynamic profile, including Ascend-Data-Filter rules. Verify the following information:

  • The User Name field indicates the correct subscriber.

  • The Dynamic Profile Name field is correct for the subscriber.

  • The correct static Ascend-Data-Filter rule is applied to the subscriber.

Verifying Static Ascend-Data-Filter Usage

Purpose

Verify usage of the static Ascend-Data-Filter. Counter statistics are displayed when the counter option is configured for the adf command in the dynamic profile.

Action

From operational mode, enter the show firewall command.

Meaning

The output shows the name of the filter and the lists counter activity. If the counter option is not configured, the output displays only the filter name.