Vigor3900/2960 Hotspot Setup for Guest Profile Login
- Linux, imported, firewall_rule, bandwidth_management, web_portal, hotspot_setup, guest_profile, mass_guest_generator, validity_period, guest_group
This document introduces how to set up Web Portal on Vigor3900 and use the router as a hotspot gateway, and create the guest profiles for the customer to login. To create guest profiles, we may add a username and password one-by-one, or use "Mass Guest Generator" to add guest profiles in bulk.
Create guest profiles
1. Go to User Management >> Guest Group, click Add to add a new group.
2. Enter a group name, enable this group, simultaneous login limit, and click Apply.
3. In the guest group, there are two ways to create guest profiles. You may create the user profile one-by-one, or create user profiles in bulk.
To create guest profiles one-by-one, click Add in the user group created in step 2, give it a username and password, then click Apply.
To create guest profiles in bulk, go to the Mass Guest Generator tab. Enter Group Name of the group created in step 2, enter the prefix for the usernames, enter how many guest profiles would you like to generate, simultaneous login limit and click Apply. After that, you will see the user profiles automatically generated under the guest group we just created.
4. After creating the guest profiles, you may print out the username and password combination, which can be provided to the customers.
Set up the web portal
5. Go to User Management >> Web Portal >> General Setup, enable Web Portal, and select "Guest" as Authentication Type.
You may customize the login page from User Management >> Web Portal >> Portal Page Setup.
Hotspot customer Login
7. Now, when customers join Vigor3900's network and try to access the Internet, they will be redirected to the portal page, which they should log in with the username and password created in step3.
8. If the credentials are correct, they will see the authorization message and be able to surf the Internet.
9. The administrator may check the online users and their IP address from User Management >> Web Portal >> Online User Status page.
Set a time quota for guest profiles
If you'd like to restrict how long can the customer use the Internet service, you may edit the guest group to have Usage Period. When the Usage Period is enabled, the customer can only use the Internet for the usage time specified. It will start to count down after the first login.
Customers will see the remaining time on the successful authentication page.
In User Management >> Guest Profile >> Guest Group, the Administrator may check if the guest account is in use and until when can the customer keep using this account.
Set validity time for the guest profiles
To control when should the guest profiles expire, you may also set a Validity Period for them. In the Guest Group, we may enable the Validity Period and set the time and date when customers can use this account.
Firewall and Bandwidth Management for Guest group
We can apply Firewall rules to a specific guest group by selecting the Guest group in Source Guest Group of the firewall rule.
Similarly, we can manage bandwidth by the guest group.
- Details
Vigor3900/2960 Hotspot Setup for SMS Login
- DrayOS 4, imported, client_authentication, sms_login, web_portal, vigor3900, vigor2960, hotspot_setup, csv_export, online_user_status
This document demonstrates how to set up Vigor3900 as a Wi-Fi hotspot, thus to restrict the Internet access to authenticated clients only, but be able to send the login password to clients via SMS messages.
Vigor3900 Setup
1. Make sure the Vigor3900 is connected to the Internet.
2. Go to Objects Setting >> SMS Service Object to create a new SMS Service Object, enter the SMS Service Provider and the credentials.
3. Go to User Management >> Web Portal >> General Setup, enable Web Portal, set Login Mode to HTTPS, and enable "SMS" from Authentication Type drop-down list.
4. In SMS Setting, choose SMS Provider as the SMS Service Object created in step 2, and you may customize the SMS contents and the information which you want the clients to provide.
5. On User Management >> Web Portal >> Portal Page Setup, you may customize the hotspot login page. After that, Vigor3900 is ready for hotspot clients.
Hotspot Client Login
6. Now, when clients try to access a web page from Vigor3900, they will be redirected to the Portal page, where they will see an option to get the password via SMS. Please click the SMS button to continue.
7. Click "Next" on the page which illustrated the process.
8. Enter the required information, and click "Send verification code".
9. The client will receive an SMS message that provides the password.
10. Enter the password on the login page.
11. If the password is correct, it will show the authorization message. Click on Open Website will open the webpage which the client was trying to access. After that, the client may have internet access.
Collecting Hotspot client information
12. The network administrator may check the online user from User Management >> Web Portal >> Online User Status, the users that are authenticated by SMS message will show SMS as Auth Type.
13. Also, from User Management >> Web Portal >> General Setup, Administrator can download a CSV file contains the information which the clients left.
- Details
How to fix the connection not private error when using HTTPS Captive Portal for Hotspot
- certificate, https, hotspot, DrayOS 4, imported, ssl, captive_portal, drayddns
When we use the HTTPS captive portal page in Hotspot Web Portal function, sometimes the hotspot client only gets "Your connection is not private" as the image showing below, "Untrusted Connection" or "Invalid Security Certificate." These are common warning messages when we try to open an HTTPS website which does not have a trusted certificate but using a self-signed certificate instead. It occurs in all web browsers no matter its Safari, Internet Explorer, Google Chrome or Mozilla Firefox, the error messages and symptoms varies between browsers, and sometimes the user may be prevented from the webpage for security concerns.
To solve the issue for Hotspot Web Portal, we first need a certificate that is issued by a certificate authority such as Let's Encrypt and Comodo. Next, we need to import the certificate into the router. Here are two solutions.
- Obtain the certificate from Let's Encrypt for your DrayDDNS domain name
- Import the paid certificate from certificate authority such as Comodo
1. Obtain the certificate from Let's Encrypt for your DrayDDNS domain name.
This is a convenient and free service if you can apply a DrayDDNS domain name for your Vigor router. In firmware version 3.9.0, administrator can apply a domain name for the router with DrayDDNS and obtain a trusted certificate from the Certificate Authority (CA), Let's encrypt. Please visit the following link for the configuration. Visit here to learn how to Use Let's Encrypt Certificate for your DDNS Domain
2. Import the paid certificate from certificate authority
You may select this option if you have a trusted certificate for your own domain name.
- Download and the certificate and private key from your certificate provider. Then, go to Certificate Management >> Local Certificate to upload them.
- In SSL VPN >> General Setup, select the Server Certificate that you uploaded in step a.
- After the trusted certificate is applied to the domain name, we can use this domain name into Captive Portal URL to replace the default
portal.draytek.com
Ignore the warning message
If you are unable to obtain and import a trusted certificate, the hotspot client will need to ignore the browser's warning messages about insecure certificates, and proceed to load the router's landing page.
Generally, devices will pop-up the built-in browser to open the portal page, and that browser will not show a certificate error. However, if the device didn't open the browser automatically, and the user needs to open the webpage manually, the browser may display a warning message like the image below. The hotspot user just needs to click Show detail, then click Visit the website to proceed to the login page.
- Details
Allow Hotspot User to Get Login PIN code via voucher
- hotspot, DrayOS 4, imported, usb_database, pin_login, voucher, portal_configuration
Vigor Router Hotspot supports client login by pre-generated PIN codes. You can also print vouchers with PINs. The setup requires a USB disk attached to the router as the database. Here are the setting details.
Vigor Router Setup
1. Enable the profile, give a comment, and choose "Various Hotspot Login" for Portal Method, then select login method "PIN with Voucher." Click Save and Next to customize the portal page, add whitelist, choose the interface to apply.
2. Connect a USB disk to the router for Hotspot PIN and database, then check Enable database in Hotspot Web Portal >> Users Information.
3. Go to Hotspot Web Portal >> PIN Generator >> PIN Generator tab
- Select the Profile created in step 1.
- Give a Batch Name,
- Select PIN code length from 6~10 digits,
- Select PIN Validity for how long the generated PIN will be kept in the database,
- Enter how many PINs to be created at Quantity,
- Select Quota Management Policy of Hotspot clients,
- Click Generate
4. Go to PIN Voucher tab to print out the PIN into vouchers. Choose hotspot profile created in step 1, batch profile created in step 3, then give title, message and PIN information.
5. Click Preview and Print. Then the voucher page will pop up
Hotspot Client Login
If the client connected to the selected interface of the router and try to open a web page, they will be redirected to hotspot portal page. They can log in by entering the PIN code printed on the voucher.
The network administrator can also check each PIN code's status in Web Portal >> PIN Generator >> PIN Status tab
- Details
Allow Hotspot User to Access Internet by Leaving Info
- hotspot, DrayOS 4, imported, usb_storage, user_database, web_portal, portal_login, leave_info_login, hsts
Vigor Router Hotspot supports another login method - Leave Info Login, that is to force users to provide some information before getting an Internet connection. The information that users left will be saved to the USB disk connected on Vigor Router and can be used by the network administrator for sending news, product information, or events.
Vigor Router Setup
1. Enable the profile, give a comment, and choose Various Hotspot Login for Portal Method, then select login method Leave Info Login. Click Save and Next.
2. Customize the portal page by select the Leave Info Columns you require and define the description. Click Save and Next.
3. Add whitelist if necessary, and choose the interface to apply.
4. Connect a USB disk to the router for saving the user info, then check Enable database in Hotspot Web Portal >> Users Information.
The user information will be saved to the db folder in the connected USB Disk and we can download the .db file via USB Application >> File Explorer page.
Hotspot Client Login
If the client connected to the selected interface of the router and tries to open a web page, they will be redirected to the hotspot portal page. They can log in by leaving the user information on the page.
What to do when the Portal Login page doesn’t show but shows the HSTS error message?
HSTS - HTTP Strict Transport Security is a new security method for web servers. Servers that support HSTS will ask the web client (the browser) to store the connection info in HSTS Preload List for speeding up the access speed in the next connection. When the browser has ever visited the web server and saved the server’s certification, the Portal page of Vigor will not show up successfully because the browser will find the certification mismatch.
We can use either of the ways below to make it work.
1. Browse the website by using the Incognito Window.
2. Browse an HTTP website instead.
- Details
