Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Use Juniper BNG CUPS Captive Portal and Content Delivery Services

This document presents conceptual information and sample configurations that you can use to help you set up Captive Portal and Content Delivery services in your Juniper BNG CUPS environment.

Captive Portal and Content Delivery Overview

Captive Portal and Content Delivery (CPCD) also known as HTTP redirect services is supported in Juniper BNG CUPS. When CPCD is enabled, HTTP request traffic from subscribers is intercepted and redirected to an external captive portal device. The captive portal is often the initial page a subscriber sees after logging into the network. The captive portal typically provides authentication and authorization services for redirected subscribers before granting access to protected servers outside of a walled garden. A walled garden, also known as an allow list, defines a group of servers where access is provided to subscribers without reauthorization through a captive portal. These walled gardens enable you to increase revenue by marketing various services to your customers.

Figure 1 shows the network elements that are involved in the BNG CUPS CPCD function.

Figure 1: BNG CUPS Captive Portal and Content Delivery BNG CUPS Captive Portal and Content Delivery

The BNG CUPS CPCD functionality is disaggregated to run on both the BNG CUPS Controller and the BNG User Planes. This functionality is described in the “Traffic Redirection” section of the 3rd Generation Partnership Project; Technical Specification Group Core Network and Terminals; Interface between the Control Plane and the User Plane Nodes; Stage 3 specification.

Enabling subscribers for CPCD and provisioning service filter is handled in the BNG CUPS Controller while processing of packets for redirection is done in the BNG User Planes. The Routing Engine of the BNG User Plane performs the redirect function and additional service card is not required in the BNG User Plane.

There are two modes which are supported, redirect and rewrite. For redirect, the portal server URL is returned for the HTTP requests. For rewrite, the IP address destination is modified and traffic is sent to the portal server.

Configure CPCD

BNG CUPS Controller CPCD Configuration

Configure the service filter on the BNG CUPS Controller, as follows:

Configure the service set on the BNG CUPS Controller, as follows:

Configure the HTTP redirect profile on the BNG CUPS Controller, as follows:

To enable the subscriber to use the HTTP redirect service, the following must be provisioned on the AAA server:

  • cpcduser Cleartext-Password—"cpcd123"

  • Auth-Type—Local,

  • Service-Type—Framed-User

  • Framed-Pool—"v4pool"

  • Framed-IPv6-Pool—"v6-na-pool-0"

  • ERX-Service-Activate:1 +—'http-redirect-re-dyn(https://www.juniper.net)'

Configure the HTTP rewrite profile on the BNG CUPS Controller, as follows:

To enable the subscriber to use the rewrite service, the following must be provisioned on the AAA server.

  • cpcdrewrite Cleartext-Password—"joshua"

  • Auth-Type—Local

  • Service-Type—Framed-User

  • Framed-Pool—"v4pool"

  • Framed-IPv6-Pool—"v6-na-pool-0"

  • ERX-Service-Activate:1 +—'http-rewrite-dyn(7.1.1.2)'

BNG User Plane CPCD Configuration

Configure the service set on the BNG User Plane, as follows:

Note:

The configured service-set name must match the BNG CUPS Controller provisioned service-set name.

BNG CUPS Controller Operational Commands

To view the subscribers that are enabled for CPCD, you can use the show subscribers user-plane up-name bng-user-plane-name command.

BNG User Plane Operational Commands

To view the subscribers that are enabled for CPCD, you can use the show services captive-portal-content-delivery command.