R0106-HP MSR Router Series Security Command Reference(V7)

184
Default
URL parameters for the portal Web server are not configured.
Views
Portal Web server view
Predefined user roles
network-admin
Parameters
param-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 web page 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 configure multiple URL parameters.
If you configure a URL parameter multiple times, the most recent configuration takes effect.
After you configure the URL parameters, the access device sends the portal Web server URL with these
parameters to a portal users. For example, assume that the URL of a portal Web server is
http://www.test.com/portal, and you execute the url-parameter userip source-address and
url-parameter userurl value http://www.test.com/welcome commands. Then, the access device sends
to the user whose IP address is 1.1.1.1 the URL http://www.test.com/portal?userip=1.1.1.1&userurl=
http://www.test.com/welcome.
Examples
# Configure URL parameters userip and userurl for portal Web server wbs. Configure userip as
source-address and userurl as value http://www.test.com/welcome.
<Sysname> system-view
[Sysname] portal web-server wbs
[Sysname-portal-websvr-wbs] url-parameter userip source-address
[Sysname-portal-websvr-wbs] url-parameter userurl value http://www.test.com/welcome
Related commands
display portal web-server
url
user-sync
Use user-sync to enable portal user synchronization for a portal authentication server. After this function
is enabled, the device replies to and periodically detects the synchronization packets from the portal
authentication server. In this way, information about online portal users on the device and on the portal
authentication server remains consistent.
Use undo user-sync to restore the default.