Related Documentation
Example: Configuring Destination Address Rewrite for HTTP Redirect
Requirements
- Multiservices DPC PIC
Overview
This procedure shows how to configure an DA rewrite rule. The destination port is not specified and the default behavior is determined by the rewrite configuration. If no rewrite configuration is available, the destination port is not rewritten.
Configuration
Example: Configuring a Rewrite Rule
Step-by-Step Procedure
Configure the service rule:
[edit services captive-portal-content-delivery]user@host# set rule da-rewriteSpecify the term name:
[edit services captive-portal-content-delivery da-rewrite]user@host# set term t1Specify the match conditions for the term:
[edit services captive-portal-content-delivery da-rewrite inet-filter term t1]user@host# set from applications junos-httpSpecify the actions to take if the packet matches all the conditions in that term:
[edit services captive-portal-content-delivery da-rewrite inet-filter term t1]user@host# set then rewrite desitnation-address 2001:2002::1;
Results
Confirm the configuration by entering the show services configuration command. If the command output does not display the intended configuration, repeat the instructions in this procedure to correct the configuration.
The following example shows the configuration for an IPv6-DA rewrite service rule. Because the destination port is not specified, the default behavior is determined by the rewrite configuration. If no rewrite configuration is available, the destination port is not rewritten.
Verification
Displaying HTTP Redirect configuration
Purpose
Verify the HTTP requests are redirected to the server.
Action
user@host> show services detail

