Example for Configuring External Portal Authentication
Service Requirements
Because a WLAN is open to users, there are potential security risks. To enable users to easily associate with a WLAN, an AP uses the default security policy, that is, no authentication and no encryption. Portal authentication is configured on APs to centrally manage access users. Any user who accesses a WLAN is redirected to the Portal authentication web page. After entering the correct user name and password, the user is authenticated by the RADIUS server. The user can access the WLAN after the authentication succeeds.
Networking Requirements
- DHCP deployment mode: The AP functions as a DHCP server to assign IP addresses to STAs.
Data Planning
Item |
Data |
---|---|
Service VLAN for STAs |
VLAN 101 |
DHCP server |
The AP functions as a DHCP server to assign IP addresses to STAs. |
IP address pool for STAs |
10.23.101.3-10.23.101.254/24 DNS: 8.8.8.8 Address that cannot be assigned: 10.23.101.2 (IP address of the router) |
SSID profile |
|
Security profile |
|
Authentication profile |
|
VAP profile |
|
STA's gateway |
VLANIF 101: 10.23.101.1 |
STA user name and password |
|
RADIUS server |
|
Portal server |
|
Configuration Roadmap
- Use the WLAN configuration wizard to configure WLAN services. Configure Portal and RADIUS authentication and set parameters of the external Portal server and RADIUS server.
- Configure a DNS server address in the DHCP address pool of the service VLAN to provide the DNS service for the STA.
- Configure a static route so that the AP forwards the packet to the router after receiving the packet from the STA.
- Specify network resources accessible to authentication-free users.
- Connect STAs to the WLAN to verify the configuration.
Procedure
- Configure the switches and router.
# Add GE0/0/1 and GE0/0/3 on the aggregation switch to VLAN 101.
# Assign an IP address 10.23.101.2/24 to GE1/0/0 on Router and configure the router as the default gateway for the AP.
# Configure a RADIUS server, configure a user name and password, and set the shared key to huawei123.
# Configure a Portal server and set the port number and shared key to provide the web authentication page.
- Configure WLAN services.
- Configure DNS.Configure the DNS server as required. The common methods are as follows:
- In interface address pool scenarios, run the dhcp server dns-list ip-address &<1-8> command in the VLANIF interface view.
- In global address pool scenarios, run the dns-list ip-address &<1-8> command in the IP address pool view.
- Configure a static route.
- Configure network resources accessible to authentication-free users.
- Choose Profile Management page is displayed. . The
- Choose Authentication-free Rule Profile page is displayed. . The
- Set Authentication-free Rule Profile to default_free_rule.
- Click Create. On the Create Authentication-free Rule page that is displayed, set Rule ID to 1 and the authentication-free resource to the IP address of the DNS server.
- Click OK.
- Select the authentication-free rule with the ID 1 and click Apply. In the dialog box that is displayed, click OK.
- Verify the configuration.
- The WLAN with the SSID wlan-net is available.
- The STA can associate with the WLAN and obtain an IP address 10.23.101.x/24 and its gateway address is 10.23.101.1.
- Choose User, you can see that STAs go online properly and obtain IP addresses. . In
- When you open the browser on the STA, you are redirected to the Portal authentication page. After you enter the correct user name and password and are successfully authenticated, you can access the Internet.