Configuring a portal-free rule

About portal-free rules

A portal-free rule allows specified users to access specified external websites without portal authentication.

The matching items for a portal-free rule include the host name, source/destination IP address, TCP/UDP port number, source MAC address, access interface, and VLAN. Packets matching a portal-free rule will not trigger portal authentication, so users sending the packets can directly access the specified external websites.

Restrictions and guidelines for configuring a portal-free rule

If you specify both a VLAN and an interface, the interface must belong to the VLAN. If the interface does not belong to the VLAN, the portal-free rule does not take effect.

You cannot configure two or more portal-free rules with the same filtering criteria. Otherwise, the system prompts that the rule already exists.

Regardless of whether portal authentication is enabled or not, you can only add or remove a portal-free rule. You cannot modify it.

Configuring an IP-based portal-free rule

  1. Enter system view.

    system-view

  2. Configure an IP-based portal-free rule.

    IPv4:

    portal free-rule rule-number { destination ip { ipv4-address { mask-length | mask } | any } [ tcp tcp-port-number | udp udp-port-number ] | source ip { ipv4-address { mask-length | mask } | any } [ tcp tcp-port-number | udp udp-port-number ] } * [ interface interface-type interface-number ]

    IPv6:

    portal free-rule rule-number { destination ipv6 { ipv6-address prefix-length | any } [ tcp tcp-port-number | udp udp-port-number ] | source ipv6 { ipv6-address prefix-length | any } [ tcp tcp-port-number | udp udp-port-number ] } * [ interface interface-type interface-number ]

Configuring a source-based portal-free rule

  1. Enter system view.

    system-view

  2. Configure a source-based portal-free rule.

    portal free-rule rule-number source { interface interface-type interface-number | mac mac-address | vlan vlan-id } *

    The vlan vlan-id option takes effect only on portal users that access the network through VLAN interfaces.

Configuring a destination-based portal-free rule

  1. Enter system view.

    system-view

  2. Configure a destination-based portal-free rule.

    portal free-rule rule-number destination host-name