Portal Free-Rule Destination - H3C MSR Series Command Reference Manual

Comware 7 security
Hide thumbs Also See for MSR Series:
Table of Contents

Advertisement

portal free-rule destination

Use portal free-rule destination to configure a destination-based portal-free rule.
Use undo portal free-rule to delete portal-free rules.
Syntax
portal free-rule rule-number destination host-name
undo portal free-rule { rule-number | all }
Default
No destination-based portal-free rule is configured.
Views
System view
Predefined user roles
network-admin
Parameters
rule-number: Specifies a portal-free rule number. The value range for this argument is 0 to
4294967295.
destination: Specifies the destination host.
host-name: Specifies the destination host by its name, a case-insensitive string of 1 to 253
characters. Valid characters are letters, digits, hyphens (-), underscores (_), dots (.), and asterisks
(*). The host name string cannot be ip and ipv6.
all: Specifies all portal-free rules.
Usage guidelines
You can configure a host name in one of the following ways:
For exact match—Specify a complete host name. For example, if you configure the host name
as abc.com.cn in the portal-free rule, only packets that contain the host name abc.com.cn
match the rule. Packets that carry any other host names (such as dfabc.com.cn) do not match
the rule.
For fuzzy match—Specify a host name by placing the asterisk (*) wildcard character at the
beginning or end of the host name string. For example, if you configure the host name as
*abc.com.cn, abc*, or *abc*, packets that carry the host name ending with abc.com.cn,
starting with abc, or including abc match the rule.
The asterisk (*) wildcard character represents any characters. The device treats multiple
consecutive asterisks as one.
The configured host name cannot contain only asterisks (*).
You cannot configure two destination-based portal-free rules with the same destination information.
Otherwise the system prompts you that the same rule already exists.
Examples
# Configure a destination-based portal-free rule: specify the rule number as 4 and host name as
www.h3c.com.hk. This rule allows the portal user who sends the HTTP/HTTPS request that carries
the host name www.h3c.com.hk to access network resources without authentication.
<Sysname> system-view
[Sysname] portal free-rule 4 destination www.h3c.com.hk
Related commands
display portal rule
345

Advertisement

Table of Contents
loading

Table of Contents