703
The IP address and port number in the URL must be the same as the IP address and port number of
the Web authentication server.
Examples
as the redirection URL for Web authentication server
wbs
.
<Sysname> system-view
[Sysname] web-auth server wbs
[Sysname-web-auth-server-wbs] url http://192.168.1.1:80/portal/
Related commands
ip
tcp-port
url-parameter
Use
url-parameter
to add parameters to the redirection URL of Web authentication.
Use
undo url-parameter
to delete parameters from the redirection URL of Web authentication.
Syntax
url-parameter
parameter-name
{
original-url
|
source-address
|
source-mac
|
value
expression
}
undo url-parameter
parameter-name
Default
No URL parameters are added to the redirection URL of Web authentication.
Views
Web authentication server view
Predefined user roles
network-admin
mdc-admin
Parameters
parameter-name
: Specifies a URL parameter name, a case-sensitive string of 1 to 32 characters.
Content of the parameter is determined by the following keyword you specify.
original-url
: Specifies the URL of the original webpage that a portal user visits.
source-address
: Specifies the user IP address.
source-mac
: Specifies the user MAC address.
value
expression
: Specifies a custom case-sensitive string of 1 to 256 characters.
Usage guidelines
You can repeat this command to add multiple URL parameters to the redirection URL of Web
authentication. For example, to add the user IP address and a custom string of
http://www.abc.com/welcome
to the redirection URL, execute the following commands:
•
url-parameter
userip
source-address
.
•
url-parameter userurl value http://www.abc.com/welcome
.
The device will redirect Web requests from IP address 1.1.1.1 to the URL at
http://192.168.1.1/portal?userip=1.1.1.1&userurl=http://www.abc.com/welcome
.
If you execute this command multiple times to configure the same URL parameter, the most recent
configuration takes effect.