Appearance
Ruijie Reyee and WiFiDog gateways
How to connect Ruijie / Reyee gateways (ePortalV2 or WiFiDog mode) and any other WiFiDog gateway to Kiwire.
| Device type in Kiwire | Ruijie / Reyee (Ruijie hardware); WifiDog (other WiFiDog gateways) |
| Redirect URL | ePortalV2: https://<kiwire-host>/login/ruijie-reyee · WiFiDog: auth server <kiwire-host>, path /wifidog/ruijie |
| RADIUS | ePortalV2: auth 1812 / acct 1813 (UDP) · WiFiDog: not used |
| Identity must equal | ePortalV2: the nasid the gateway sends (also its NAS-Identifier) · WiFiDog: the gateway ID (gw_id) |
| Disconnect / live changes (CoA) | ePortalV2: yes, port 3799 · WiFiDog: no RADIUS CoA; a disconnect takes effect at the gateway's next check-in |
| Data caps | ePortalV2: time limits only · WiFiDog: speed and session time at login; data caps checked by Kiwire from the traffic the gateway reports |
Which entry to pick
- Ruijie gateway, ePortalV2 (external portal with RADIUS): Vendor Ruijie / Reyee, redirect to
/login/ruijie-reyee. - Ruijie gateway, WiFiDog mode: Vendor Ruijie / Reyee, WiFiDog auth server path
/wifidog/ruijie. - Any other WiFiDog gateway (OpenWrt and similar): Vendor WifiDog, same WiFiDog path
/wifidog/ruijie— the "ruijie" in the path is just the name of Kiwire's WiFiDog endpoint and works for every WiFiDog gateway. There is no separate/login/wifidogaddress; do not use one.
Which of the two modes your Ruijie hardware offers depends on the model and firmware.
How a login works
ePortalV2
After the portal, the guest's browser posts username, password and next_url to the gateway's login_url. next_url is the page the gateway passed as destination, or Google's home page when it passed none.
WiFiDog
Before you start
From Kiwire: <kiwire-host>; for ePortalV2 also the RADIUS server address shown in the Setup Guide checklist ("Before you add your controller") and a shared secret of at most 64 characters.
On the gateway: admin access (local web UI or Ruijie Cloud), the guest SSID/VLAN, and the gateway's ID or MAC.
On the controller
Menu names and commands vary between firmware versions; the values are what matter.
ePortalV2 (Ruijie Cloud or the gateway's web UI):
- Auth & Account › Captive Portal › add a policy, Policy Mode = External.
- Portal Server URL =
https://<kiwire-host>/login/ruijie-reyee; Portal IP = the address<kiwire-host>resolves to (ask Synchroweb if unsure). - RADIUS authentication and accounting server =
<radius-server-ip>, ports 1812 / 1813, key<shared-secret>; set the NAS-Identifier to the same value the gateway sends asnasid. - Auth & Account › Allowlist: add
<kiwire-host>,fonts.googleapis.com,fonts.gstatic.comand anything your portal design loads. See Walled garden and redirect.
WiFiDog (Ruijie or any WiFiDog gateway):
- Enable WiFiDog / third-party authentication on the guest network.
- Auth server host
<kiwire-host>, path/wifidog/ruijie(the base path only — not/wifidog/ruijie/login; the gateway addslogin,auth,pingandportalitself). - Use HTTPS on port 443. Plain HTTP (port 80) does not reach Kiwire's WiFiDog service, so a gateway that can only use plain HTTP will not work today. Whichever you choose, the gateway itself must be able to reach
<kiwire-host>— it calls Kiwire directly to check each login and to send heartbeats. - Set the gateway ID (
gw_id) to a fixed value if the firmware lets you; by default it is usually the device MAC. - Add
<kiwire-host>and the font hosts above to the gateway's trusted / allowed domains.
In Kiwire
- System › Device Controller › add:
- Vendor: Ruijie / Reyee (or WifiDog for a non-Ruijie WiFiDog gateway).
- Identity: the
nasidvalue (ePortalV2) or the gateway IDgw_id(WiFiDog), exactly as sent — for examplec4b25bb96961. - Shared Secret Key:
<shared-secret>(used for ePortalV2 RADIUS; required by the form either way). - Advanced Configuration › Network Configuration: IP Address of the gateway and COA Port 3799 for ePortalV2. For WiFiDog, set Monitoring Method = Wifidog so the controller shows as running while its heartbeats arrive.
- Check the redirect parameters with Redirect and login config: Kiwire reads
client_mac,client_ip,nasid,login_url,ssid,vlan(ePortalV2); WiFiDog's owngw_id,mac,ip,gw_address,gw_portandurlare translated automatically. - Add a zone rule and journey: Controllers and zones, Portal designer.
Test it
- Portals › Troubleshoot › Controller Test › Start Capture, connect a phone, and check the MAC and controller ID arrive and the gateway shows as registered.
- Log in as a real guest. In WiFiDog mode the phone is sent back through the gateway and then on to its original page.
- Reporting › Login › Active Session lists the guest. For WiFiDog, the Device Controller status should read running once heartbeats arrive.
Limits to know
- WiFiDog: the gateway gets the profile's speed limit and session time when the guest logs in. A data cap works only if the gateway reports each guest's traffic when it checks in; Kiwire adds it up and drops the guest once the cap is used. Some gateways report no traffic at all, and then the cap can't apply, so check a test guest's usage under Reporting. When a guest's account expires, runs out of time or data, is suspended, is disconnected by an admin, or moves to another profile, Kiwire refuses the gateway's next check-in and the gateway drops the guest then (up to about 10 minutes), not instantly. After a profile change the guest logs in again and gets the new profile's limits.
- ePortalV2: no Ruijie data-cap attribute; profiles are enforced by time (Session-Timeout).
- The Identity must match exactly;
c4b25bb96961andC4:B2:5B:B9:69:61are different values.