Ruijie / Reyee (WiFiDog)
Connect Reyee EG gateways and WiFiDog-capable devices to Hotspotly over HTTPS, without a tunnel.
This guide connects a Ruijie Reyee EG gateway, or another gateway that speaks the WiFiDog (v1)
protocol (wifidog or apfree-wifidog on OpenWrt), to Hotspotly. This connection uses no RADIUS
and no tunnel: the gateway sends the guest to the Hotspotly login page, opens the guest's internet
access with a one-time token after sign-in, and reports session counters to Hotspotly over HTTPS at
regular intervals.
In short
My Devices → Add Device → Ruijie / Reyee (WiFiDog) → device name and location → Add device. Enter the values shown on screen in the gateway's WiFiDog settings, then create a hotspot and put the gateway's guest LAN IP in the Gateway field.
Prerequisites
| You need | Details |
|---|---|
| Device | A Reyee EG gateway with a WiFiDog external authentication server setting, or an OpenWrt device with wifidog / apfree-wifidog installed. |
| HTTPS | The gateway must be able to reach Hotspotly over HTTPS. Models without HTTPS support are not supported. |
| Admin access | Admin access to the gateway web interface (on OpenWrt, to the wifidog.conf file). |
| Connection type | The WiFiDog connection method must be enabled on the server. If the Add Device wizard shows Not enabled on the server next to Ruijie, it is not enabled yet: contact support. |
1. Add the device
- On the My Devices page, click Add Device and choose Ruijie / Reyee (WiFiDog) from the brand list.
- Fill in Device name and Location. Ruijie Cloud serial number is optional; it only helps you find the device in your Ruijie Cloud project.
- Click Add device. The window shows the values to enter on the gateway.
Values shown in the window:
| Field | Value | Note |
|---|---|---|
| Server address (Hostname) | Your portal domain | The domain only, without https://. |
| Server port | 443 | SSL / HTTPS must be on. |
| Path | /wifidog/<key>/ |
Contains a device-specific key. |
| Login script | login/? |
|
| Portal script | portal/? |
|
| Message script | gw_message.php? |
|
| Auth script (secret) | a/<secret key>/auth/? |
Secret. |
| Ping script (secret) | a/<secret key>/ping/? |
Secret. |
| Gateway port (GatewayPort) | 2060 | The gateway's local port. |
| Check interval (s) | 60 | Counter report interval. |
Copy the secret paths now
The secret path of the auth and ping scripts is shown only on this screen and when keys are rotated; it cannot be displayed in the panel again. If you lose it, use Rotate keys on the device page card (the old values stop working immediately).
2. WiFiDog settings on the gateway
Enter the values in the gateway's external authentication (WiFiDog) server setting. The panel calls
this screen "Authentication > WiFiDog"; in Reyee firmware the menu name can differ by version. Find
the setting by its function (WiFiDog / third-party authentication server). On OpenWrt the same values
go into wifidog.conf:
If the firmware does not take separate ping / auth paths
Some firmware does not let you set the ping and auth paths separately. In that case, ping and auth calls without the secret part are accepted only from a WAN IP added with the This address is a static IP assigned by the internet service provider and belongs only to this venue. declaration on the Connection settings card of the device page; calls from other addresses are rejected. Guests share the same WAN IP behind the gateway's NAT, so always prefer the setting with secret paths.
Pre-login access (walled garden): add your portal domain and the addresses of the social login and payment providers enabled on the hotspot to the gateway's allowed destinations.
Speed limit: the WiFiDog response carries no speed. Set the speed on the gateway with its per-SSID or per-user rate limit setting.
3. Hotspot and gateway
On the Hotspots page, create a hotspot with Add Hotspot and choose the
Ruijie / Reyee record you added as Device. Enter the gateway's guest LAN IP
address in the Gateway field. The request that completes the guest's sign-in goes
to http://<this IP>:2060/wifidog/auth. The field is recommended: when it is filled in, Hotspotly
builds this address only if the gw_address sent by the gateway is the same IP; when it is empty,
any private IP is accepted.
4. Device card
The Ruijie / Reyee (WiFiDog) card on the device page (My Devices → Detail) shows:
- Connection status: Online, Offline or No ping yet; the last ping time.
- WiFiDog gateway ID (GatewayID): if left empty, it is learned from the first ping. A sign-in request that later arrives with a different ID is rejected.
- The setup values except the secret paths, and the Rotate keys button.
If the gateway sends no ping for 5 minutes (the default), the device is marked offline and a device offline notification is raised; it goes back online when pings return.
Automatic setup
Mode: Guided. Ruijie Cloud and the gateway's own screen are the only places the setting can be changed and no public writable interface is documented, so the plan lists the steps and nothing is written to the device. Undo is a checklist. The field test on a real Ruijie device is listed in the operations notes.
Reyee access points need a gateway
A Reyee access point without a Reyee EG gateway does not support an external portal: Ruijie's support matrix says so and a field test on a Reyee RAP6262(G) confirmed it (Ruijie Cloud flags the policy as unsupported for the device, although the screen lets you select it). Put a Reyee EG gateway (WiFiDog, or WISPr on the models Ruijie lists) or another supported gateway in front. Ruijie enterprise access points (RG-AP) support external WiFiDog without a gateway. This was checked on a field device; no automatic setup was tested against Ruijie cloud.
HTTPS login certificate
Not needed. WiFiDog sign-in has no password form: the browser only carries a one-time token to the gateway (GET). Calls between the gateway and Hotspotly already use the HTTPS certificate of your portal domain. Some browsers may show a short warning when moving from the HTTPS portal page to the gateway's HTTP address.
Test with a guest device
- Check that the card shows Online (the first ping can take a few minutes).
- Connect a phone to the guest network. The gateway should redirect the browser to the Hotspotly login page.
- Sign in with a login method. The browser returns to the gateway and internet access opens.
- In the panel, check that the session appears on the Sessions page.
Session, speed and disconnect behaviour
| Topic | Ruijie / Reyee (WiFiDog) |
|---|---|
| Accounting | Yes. The gateway's counter reports are turned into session records in Hotspotly; the access log is built from them. |
| Session disconnect | There is no CoA. Deleting or blocking a guest, or a quota overrun, closes the session in Hotspotly immediately; the gateway applies it at the next counter report (60 seconds by default). |
| Time and quota | Re-evaluated at every counter report. |
| Speed limit | Hotspotly sends no speed; set it on the gateway. |
| Syslog and access logs | Syslog is only accepted through a VPN tunnel. A WiFiDog device has no tunnel, so the access log record comes from the counter reports. |
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| The wizard shows Not enabled on the server next to Ruijie | The WiFiDog connection method is not enabled on the server yet. | Contact support. |
| The card shows WiFiDog connectivity is turned off on this platform. Gateway calls are not answered right now. | The connection type is turned off on the platform. | Contact support. |
| The status stays No ping yet | The gateway cannot reach Hotspotly: wrong domain, port 443, SSL or path. | Compare the values with the screen; check that SSL is on. |
| The guest signed in but internet did not open | The token was not used within 10 minutes, the guest's MAC / IP changed, or the gateway ID does not match. | Ask the guest to sign in again; check WiFiDog gateway ID (GatewayID). |
| The login page opens but sign-in does not complete | The hotspot Gateway value is not the same as the gw_address sent by the gateway. |
Follow Hotspot and gateway. |
| Ping / auth calls are rejected | The path without the secret part is used and the WAN IP is not registered with the static declaration. | Enter the secret paths, or add the WAN IP with the static declaration. |
| Nobody can sign in after rotating keys | The old keys stop working immediately. | Enter the new values on the gateway. |
Known limits
- The panel does not write gateway settings; you enter the values on the gateway.
- Reyee's RADIUS external portal (Portal 2.0) mode is not supported; WiFiDog is the only path.
- Ruijie Cloud's own cloud portal or cloud RADIUS is not used. On a cloud-managed EG, enter the WiFiDog values the same way.
- The speed limit is set on the gateway.
- Separate ping / auth paths, HTTPS certificate validation and the logout report can differ by gateway firmware.