258
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.
Содержание FlexNetwork 7500 Series
Страница 350: ...335 Related commands display port security port security enable ...
Страница 379: ...364 Sysname system view Sysname keychain abc mode absolute Sysname keychain abc tcp kind 252 ...
Страница 519: ...504 Related commands display ssh2 algorithm ssh2 algorithm cipher ssh2 algorithm key exchange ssh2 algorithm mac ...