A shopping mall has a FW deployed as the egress gateway at the network border to connect the intranet to the Internet, as shown in Figure 1. To attract customers, the mall has Wi-Fi deployed so that the customers can enjoy free Internet access after they enable the Wi-Fi function and pass the one-click authentication.
Free Internet access through one-click authentication is implemented by combining the one-click authentication function for Wi-Fi access through WeChat provided by the Agile Controller with the user-defined portal authentication function of the FW and by integrating with the WeChat platform.
To implement the function of free Internet access through one-click authentication, you need to perform configurations on the WeChat platform, Agile Controller, and FW. The configuration procedure is as follows:
Only an enterprise but not individual can apply for shop management.
Ensure the accuracy of the shop location so that users can properly obtain Wi-Fi information.
The device refers to the AP device corresponding to the SSID associated with this function. This step associates the shop name, Wi-Fi SSID, and Wi-Fi password. Configure the device as one authenticated through password.
The preceding descriptions cover basic steps of configurations on the WeChat platform. For operation details, contact WeChat technical support.
| Item | Data | Description |
|---|---|---|
Agile Controller |
The parameters for interconnecting with the WeChat platform include the Token, AppID, and AppSecret. |
The values shall be consistent with those on the WeChat platform. When the Agile Controller communicates with the WeChat platform, the WeChat platform needs to verify these values. |
Device IP address range of users: 10.3.0.0/24 |
If the device IP address of a user falls in the range of 10.3.0.0/24, the Agile Controller pushes the customized portal authentication page to the user. |
|
RADIUS parameters:
|
RADIUS parameters set on the Agile Controller shall be consistent with those on the FW. |
|
Portal parameters:
|
Portal authentication parameters set on the Agile Controller shall be consistent with those on the FW. |
|
| FW | RADIUS server:
|
RADIUS server parameters set on the FW shall be consistent with those on the Agile Controller. |
Portal server:
|
Portal server parameters set on the FW shall be consistent with those on the Agile Controller. |
|
FW listening port: 2000 |
This port is used by the FW to listen to portal server messages. You need also to configure this port on the Agile Controller. |
After completing the preceding configurations on the Agile Controller, perform the following configurations on the FW.
The following example describes how to configure interface GigabitEthernet 0/0/3. You can configure other interfaces based on the networking diagram.
Zone |
trust |
|---|---|
IP Address |
10.3.0.1/24 |
Configure the NAT policy so that the FW can replace the source IP address for accessing extranet packets with the public address of the extranet interface.
Name |
policy_nat1 |
|---|---|
NAT Type |
NAT |
NAT Mode |
Source address translation |
Source Zone |
trust, dmz |
Destination Type |
Outbound Interface GigabitEthernet 0/0/1 |
Source Address Translated To |
Outbound Interface |
After that, the FW can allocate IP addresses to users after their devices connect to the SSID.
Interface Name |
GigabitEthernet 0/0/3 |
|---|---|
Type |
IPv4 |
Service Type |
Server |
IP Addresses Range |
10.3.0.2 to 10.3.0.254 |
Subnet Mask |
255.255.255.0 |
DNS Server |
9.9.9.9 |

Add wifi.weixin.qq.com to the created domain name group for it to be used by the authentication policy.
Name |
weixin |
|---|---|
Domain |
wifi.weixin.qq.com |
sysname FW # authentication-profile name portal_authen_default portal-access-profile default # user-manage portal-template portal https enable portal-url push information portal-url parameter user-ip userip user-mac usermac portal-url parameter mac-address format delimiter - normal portal-url http://10.2.0.50:8080/portal server-detect web-auth-server default # security-policy rule name sec_policy_tsm source-zone trust destination-zone dmz source-address 10.3.0.0 24 destination-address 10.2.0.0 24 action permit rule name local_policy_01 source-zone local destination-zone dmz action permit rule name local_policy_02 source-zone dmz destination-zone local action permit rule name policy_02 source-zone dmz destination-zone untrust source-address 10.2.0.0 24 action permit rule name policy_03 source-zone trust destination-zone untrust source-address 10.3.0.0 24 action permit rule name policy_04 source-zone untrust destination-zone dmz destination-address 10.2.0.0 24 action permit # nat-policy rule name policy_nat1 source-zone trust source-zone dmz egress-interface GigabitEthernet0/0/1 action source-nat easy-ip # radius-server template auth_server_radius radius-server shared-key cipher %^%#H**3(i3_k%ugc;,fvZG!,-:|*=(A5(y4Q_2t'3P%^% # radius-server authentication 10.2.0.50 1812 weight 80 radius-server accounting 10.2.0.50 1813 weight 80 radius-server group-filter class radius-server authorization 10.2.0.50 shared-key cipher %^%#K}(^&0opP~Q%fMUr3k*( 59%N:,+H$*!(Vs%%^%# # web-auth-server default server-ip 10.2.0.50 port 50100 shared-key cipher %^%#/.6y+B[H{Q'wPG"lpVK,bx*Yg9C*5VEC;'-K7~Z%^%# server-detect interval 100 max-times 5 action log user-sync max-times 5 # portal-access-profile name default web-auth-server default # aaa authentication-scheme radius authentication-mode radius authorization-scheme radius authorization-mode radius accounting-scheme radius accounting-mode radius domain default authentication-scheme radius accounting-scheme radius authorization-scheme radius radius-server auth_server_radius service-type internetaccess internet-access mode password # domain-set name weixin add domain wifi.weixin.qq.com # dhcp enable # interface GigabitEthernet0/0/3 undo shutdown ip address 10.3.0.1 255.255.255.0 dhcp select interface dhcp server ip-range 10.3.0.2 10.3.0.254 dhcp server dns-list 9.9.9.9 # interface LoopBack0 authentication-profile portal_authen_default # firewall zone trust set priority 85 add interface GigabitEthernet0/0/3 # firewall zone untrust set priority 5 add interface GigabitEthernet0/0/1 # firewall zone dmz set priority 50 add interface GigabitEthernet0/0/2 # auth-policy rule name auth_policy_tsm source-zone trust destination-zone dmz source-address 10.3.0.0 mask 255.255.255.0 destination-address 10.2.0.50 mask 255.255.255.255 action none rule name auth_policy_01 source-zone dmz destination-zone untrust source-address 10.2.0.0 mask 255.255.255.0 action none rule name auth_policy_02 source-zone trust destination-zone untrust source-address 10.3.0.0 mask 255.255.255.0 destination-address domain-set weixin action none rule name auth_policy_03 source-zone untrust destination-zone dmz destination-address 10.2.0.0 mask 255.255.255.0 action none rule name auth_policy_service source-zone trust destination-zone untrust source-address 10.3.0.0 mask 255.255.255.0 action auth portal-template portal # return