- DrayOS 5, hotspot, imported, captive_portal, pin_login, iam_policies, sms_auth, sms_provider
Allow Hotspot User to Get Login PIN code via SMS (DrayOS5)
Vigor Routers support hotspot web portals, enabling them to serve as captive portal gateways. This means internet access is only available to clients who successfully authenticate. One of the login methods offered is "PIN via SMS," where the router generates a one-time PIN and sends it by SMS to the phone number provided by the hotspot user on the portal page.
This guide shows how to set up a Vigor Router as a hotspot gateway and enable SMS-based PIN delivery for client authentication.
Check Internet Connection
Ensure the router is connected to the Internet.
Configure SMS Provider
Go to the Configuration / Notification Services menu page. In the SMS Provider tab, click + Add to create an SMS profile.
Enter SMS provider details and click Apply to save.
Create a Hotspot Profile
Go to IAM / Hotspot Web Portal. In the Profile Setup tab, click +Add to create a hotspot profile.
Login Method
- Enter a profile name.
- Select Various Login as the portal method.
- Enable PIN via SMS and select the SMS profile used for sending the PIN code.
- (Optional)Customize the SMS content.
Login Page Setup(Optional)
- Customize the hotspot web portal page.
More Options
- Apply the quota policy profile in the login method we use.(Optional)
- Enter the desired website as the landing page.
Click Apply to save the settings.
Apply the Hotspot Profile in IAM Policies
Go to IAM / IAM Policies. In the Access Policies tab, click +Add to define an access policy.
- Enter a name for this access policy.
- Select Guest Hotspot as the access control mode.
- Choose the hotspot profile created previously.
- Set the login session lifetime of each user.
In the Apply Policies to LAN tab, apply that access policy to the interface for the hotspot login.
Verify Hotspot Client Login
Connect a device to the interface configured for the hotspot login. The router should automatically redirect the device to the hotspot login page.
Enter a phone number to receive the PIN code, and then click Send.
After entering the received PIN code, the device will be redirected to the landing page and granted internet access.
