HP FlexNetwork 7500 Series Command Reference Manual page 273

Hide thumbs Also See for FlexNetwork 7500 Series:
Table of Contents

Advertisement

Parameters
original-url url-string: Specifies a URL string to match the URL in HTTP requests of a portal user.
The specified URL must be a complete URL starting with http:// or https://, a case-sensitive string of
1 to 256 characters.
redirect-url url-string: Specifies the URL to which the user is redirected. The specified URL must be
a complete URL starting with http:// or https://, a case-sensitive string of 1 to 256 characters.
url-param-encryption: Specifies an encryption algorithm to encrypt the parameters carried in the
redirection URL. If you do not specify an encryption algorithm, the parameters carried in the
redirection URL are not encrypted.
aes: Specifies the AES algorithm.
des: Specifies the DES algorithm.
key: Specifies a key for encryption.
cipher: Specifies a key in encrypted form.
simple: Specifies a key in plaintext form. For security purposes, the key specified in plaintext form
will be stored in encrypted form.
string: Specifies the case-sensitive key string. The string length varies by the selected encryption
method:
If des cipher is specified, the string length is 41 characters.
If des simple is specified, the string length is 8 characters.
If aes cipher is specified, the string length is 1 to 73 characters.
If aes simple is specified, the string length is 1 to 31 characters.
user-agent user-agent: Specifies a user agent string to match the User-Agent string in HTTP or
HTTPS requests. The user agent string is a case-sensitive string of 1 to 255 characters. The
User-Agent string in HTTP or HTTPS requests includes information about hardware manufacturer,
operating system, browser, and search engine.
Usage guidelines
A URL redirection match rule matches HTTP or HTTPS requests by user-requested URL or
User-Agent information, and redirects the matching HTTP or HTTPS requests to the specified
redirection URL.
For a user to successfully access a redirection URL, configure a portal-free rule to allow HTTP or
HTTPS requests destined for the redirection URL to pass. For information about configuring
portal-free rules, see the portal free-rule command.
For a portal Web server, you can configure the url command and the if-match command for URL
redirection. The url command redirects all HTTP or HTTPS requests from unauthenticated users to
the portal Web server for authentication. The if-match command allows for flexible URL redirection
by redirecting specific HTTP or HTTPS requests to specific redirection URLs. If both commands are
executed, the if-match command takes priority to perform URL redirection.
Examples
# Configure a match rule to redirect HTTP requests destined for the URL http://www.abc.com.cn to
the URL http://192.168.0.1 and use DES to encrypt the parameters carried in this redirection URL.
<Sysname> system-view
[Sysname] portal web-server wbs
[Sysname-portal-websvr-wbs] if-match original-url http://www.abc.com.cn redirect-url
http://192.168.0.1 url-param-encryption des key simple 12345678
# Configure a match rule to redirect HTTP requests that carry the user agent string
5.0(WindowsNT6.1)AppleWebKit/537.36(KHTML,likeGecko)Chrome/36.0.1985.125Safari/537.
36 to the URL http://192.168.0.1.
258

Advertisement

Table of Contents
loading

Table of Contents