Overview
There are two methods to configure Ruijie hardware for Purple. The first is Ruijie Cloud, the web-based management platform, which is covered on this page. The second is the command line, applied over Telnet or SSH, which is covered in the Ruijie RG Series AP guide.
Ruijie Cloud is the better choice across multiple sites, because the configuration is pushed to every device from one place.
Before you start
A gateway is required. On Reyee hardware the captive portal runs on the gateway, not on the access points. The access points broadcast the SSID and the gateway intercepts the traffic and talks to Purple. A deployment of access points with no Reyee gateway cannot use this method, and should use the command line guide instead.
Gateway: | A Reyee EG series gateway, added to Ruijie Cloud and online |
Access points: | Managed by the same gateway, broadcasting the guest SSID |
Firmware: | Check that your gateway is running a ReyeeOS version that supports a third-party portal |
Firewall: | Outbound UDP from the gateway to Purple on ports 1812 and 1813 |
Wireless Network
Log in to Ruijie Cloud and select your network at the top left.
Go to Device Config > SSID and click + Add SSID. Configure as per below:
SSID: | Guest WiFi |
Purpose: | General |
Frequency Band: | Leave default |
Encryption Option: | Do Not Encrypt |
Encryption Method: | OPEN (Open) |
Note which network or VLAN the SSID belongs to. You will need it when you create the portal policy.
Captive Portal
Go to Auth & Accounts > Captive Portal and click Add Captive Portal. Configure as per below:
Policy Name: | guestwifi |
Policy Mode: | External |
Authentication Device: | Reyee Gateway |
Auth Protocol: | WISPr |
Network: | The network your guest SSID belongs to |
Auth Server URL: | *insert access_url here* |
Request Parameters: | Click Edit, select Ruijie, then click Ok |
Auth Type: | RADIUS |
RADIUS Encryption Method: | PAP |
RADIUS
The Purple RADIUS servers are added from inside the same form.
Beside Auth Server Method, select External, click Edit and then Add. Create a server group containing both Purple servers:
Server Group Name: | guestwifi |
Server Name: | purple-radius1 |
Server IP Address: | *insert radius_server_ip here* |
Authentication Port: | 1812 |
Accounting Port: | 1813 |
Shared Key: | *insert radius_secret here* |
Match Order: | 0 |
Add a second server to the same group for failover, using *insert radius_server2_ip here*, the same shared key, and a Match Order of 1.
The shared key must match the one in your Purple control panel exactly.
Back on the portal policy, set both server groups to the group you just created:
Auth Server Group: | guestwifi |
Accounting Server Group: | guestwifi |
Click Ok to save the policy.
Allowlist
Ruijie calls the walled garden the Allowlist. Visitors must be able to reach these destinations before they have authenticated, otherwise the splash page will not load.
Go to Auth & Accounts > Allowlist and select the Pre-auth Allowlist tab.
Click Add, then use the + button to add each domain on this list. Add *insert walled_garden_ip here* as well.
If you are offering social logins or paid plans, the provider domains are on the same list. Click OK.
Testing
Use a device that has not connected to this network before, so that no session is cached.
Connect to Guest WiFi and browse to a plain HTTP address, for example http://neverssl.com. An HTTPS address may not trigger the redirect.
Confirm that your Purple splash page loads, sign in, confirm that you reach the internet, and then confirm that the visit appears in your Purple portal.
If the splash page does not load, check the Pre-auth Allowlist and confirm that the guest network has a working DNS server. If the splash page loads but sign-in fails, check the RADIUS server IP addresses, the ports and the shared key.
Configuration Complete
The configuration is now complete.