HTTP Redirect Service Configuration
The configuration hierarchy for the HTTP Redirect service is illustrated in the diagram.
Service Profile Configuration
Syntax:
set access service-profile profile-name <profile-name> <attribute> <value>
Attribute | Description |
---|---|
<profile-name> |
Service profile name. |
<http-redirect> |
HTTP redirect service configuration. |
<url> |
HTTP redirect target URL. |
<acl> |
Subscriber ACL (filter) configuration. |
<ipv4-acl-in> |
IPv4 upstream ACL (ingress from subscriber). |
<ipv4-acl-out> |
IPv4 downstream ACL (egress to subscriber). |
<ipv6-acl-in> |
IPv6 upstream ACL (ingress from subscriber). |
<ipv6-acl-out> |
IPv6 downstream ACL (egress to subscriber). |
The following example shows a service profile named HTTP, redirect URL as the redirect destination. The 'ipv4-acl-in' ACL is applied as the filter criteria or ACL rule for this redirection.
supervisor@router: cfg> show config access service-profile HTTP
{
"rtbrick-config:service-profile": [
{
"profile-name": "HTTP",
"http-redirect": {
"url": "https://www.rtbrick.com"
},
"acl": {
"ipv4-acl-in": "redirect-acl-in"
}
}
]
}