host redirect

Use this command to explicitly permit or deny redirection of HTTP requests for the list of end users to this web cache.

Syntax

host {permit | deny | aclName access-list} redirect {range begin-ip-address end-ip-address}
no host {permit | deny | aclName access-list} redirect {range begin-ip-address end-ip-address}

Parameters

permit | deny Specifies whether the IPv4 or IPv6 IP addresses configured will be allowed or disallowed for host redirection.
aclName access-list Specifies an IPv4 or IPv6 ACL list containing permit or deny statements for the IP addresses that will be allowed or disallowed for host redirection.
range Specifies a range of IPv4 IP addresses.
begin-ip-address Specifies an IPv4 address that begins a range to explicitly permit or deny redirection of HTTP requests from these end users to this web cache.
end-ip-address Specifies an IPv4 address that ends a range to explicitly permit or deny redirection of HTTP requests from these end users to this web cache.

Defaults

None.

Mode

Configuration command, Cache Server Configuration mode.

Usage

You can explicitly specify end user clients whose HTTP requests are or are not redirected to the cache servers. If you do not explicitly specify such addresses, HTTP requests from all end users are redirected to the cache server.

Up to 10 IPv4 ranges can be configured. An IPv4 or IPv6 ACL list can be specified. IPv6 addresses must be specified as an IPv6 ACL list.

The “no” form of this command removes all or optionally the specified IPv4 range of host redirection configuration.

Examples

This example configures a deny list for end users 10.10.10.26 through 10.10.10.50; HTTP traffic from these source IP addresses will not be redirected to the caches:

System(rw-config)->ip twcb webcache cache1
System(rw-config-twcb-webcache)->host deny redirect range 10.10.10.26 10.10.10.50

This example configures a deny list for end users specified in the cache2deny for cache2; HTTP traffic from these source IPv6 addresses will not be redirected to the caches:

System(rw-config)->ipv6 twcb webcache cache2
System(rw-config-twcb-webcache)->host deny redirect aclName cache2deny