Example for Configuring Guests Connect to Networks by Scanning Public QR Codes
After guests connect to a Wi-Fi network using their mobile phones, they can scan QR codes posted in public areas for authentication to easily access a network.
Involved Products and Versions
Product Type |
Product Name |
Version |
---|---|---|
|
Agile Controller-Campus |
V100R003C00 |
Networking Requirements
An enterprise has deployed an identity authentication system to implement access control for all the wireless users who attempt to connect to the enterprise network. Only authenticated users can connect to the enterprise network. To allow guests to access the network in the enterprise exhibition hall, system administrators can post a public QR code in public areas in the exhibition hall, so that guests can access the network by scanning the public QR code.
Data Plan
Item |
Data |
Description |
---|---|---|
SM + SC (RADIUS server + Portal server) |
IP address: 172.18.1.1 |
- |
Number of the ACL for guests' post-authentication domain |
3002 |
- |
SSID of the network to which guests associate with |
guest |
Configure this parameter on the AC. For details, see step 4 in Example for Configuring Portal Authentication (Including MAC Address-Prioritized Portal Authentication) for Wireless Users. |
Configuration Roadmap
- Enable public QR code authentication.
- Configure a guest account policy for creating public QR codes.
- Create and export a public QR code. Print and post it in public areas where guests can scan it to connect to the network.
- Customize authentication and authentication success pages. After guests pass authentication by scanning the public QR code, the authentication success page is automatically displayed.
- Configure a Portal page push rule to push the customized authentication page to guests.
- Add guest authorization results and authorization rules to assign access permission to guests after they are authenticated.
Prerequisites
[AC] url-template name huawei
[AC-url-template-huawei] url-parameter redirect-url url
[AC-url-template-huawei] url http://172.18.1.1:8080/portal
[AC-url-template-huawei] quit
Procedure
- Enter https://172.18.1.1:8443 in the address box of a web browser to log in to the Service Manager.
- Enable public QR code authentication.
You can use the Guest Management navigation to complete this step and the subsequent steps. Choose Guest Account Management Mode to Public QR Code, and click Navigation. Complete the configuration by following the navigation. The following example illustrates how to use the GUI menus to open the configuration page and complete the configuration.
, set - Configure a guest account policy for creating public QR codes.
- Create a public QR code.
- Customize authentication and authentication success pages.
After a guest connects to a Wi-Fi network and scans the public QR code, the authentication page is automatically displayed to authenticate the guest.
- Configure a Portal page push rule to push the customized authentication page to guests.
- Add SSIDs to the Agile Controller-Campus for SSID-based user authorization.
- Add an authorization result and rule to allow guests to connect to the Internet after they are successfully authenticated.
Verification
- A guest uses a mobile phone to connect to the Wi-Fi hotspot guest.
Before scanning the public QR code, the guest needs to connect to the Wi-Fi hotspot for public QR code authentication. Scanning a public QR code only triggers authentication and authorization. It is recommended that the following information be added on the upper side of the public QR codes posted in public areas: Connect to the Wi-Fi network before scanning the public QR code for authentication.
- The guest scans the public QR code posted in public areas.
The customized public QR code authentication page is pushed only after the guest scans the public QR code. If a guest does not scan the public QR code after connecting to the Wi-Fi network, the guest is authenticated based on the Portal authentication process. The system matches Portal page push rules by priority and pushes the matched authentication page but not the public QR code authentication page to the guest.
- The terminal automatically initiates an authentication request after the guest successfully scans the public QR code.If a blank page is displayed after the guest scans the public QR code using WeChat, the possible causes are as follows:
- During customization of the authentication page, the administrator selects Push pages using HTTPS but does not buy a trusted server certificate.
Guests can use another scanning tool to scan the public QR code for authentication. Alternatively, the administrator re-customizes the public QR code authentication page. During the customization, the administrator needs to deselect Push pages using HTTPS and specify the new customized authentication page in the Portal page push rule.
- If the guest has passed public QR code authentication and scans it again, a blank page is displayed.
Choose to check whether the terminal is online using the public QR code account.
- During customization of the authentication page, the administrator selects Push pages using HTTPS but does not buy a trusted server certificate.
- After the authentication succeeds, the authentication success page is displayed.
If the authentication fails, choose
to check RADIUS authentication logs. Check causes of the authentication failure and whether the authentication rule and authorization rule are correctly configured. - After the authentication succeeds, the guest can access the Internet.
- On the Service Manager, choose . The online information about the public QR code account is displayed.
- On the Service Manager, choose
The same account (public QR code account) is displayed on the Service Manager for all guests who scan the same public QR code for authentication.
. The RADIUS authentication logs of the public QR code account are displayed.
Summary and Suggestions
Authorization rules or Portal page push rules are matched in descending order of priority (ascending order of rule numbers). If the authorization condition or Portal push condition of a user matches a rule, the system does not check the subsequent rules. Therefore, it is recommended that you set higher priorities for the rules defining more precise conditions and set lower priorities for the rules defining fuzzy conditions.