How to Set Up a Custom WiFi Guest Portal on UniFi Controller

Direct Answer
To set up a custom WiFi guest portal on the UniFi Controller, navigate to the Guest Control section within the UniFi Network application and configure the portal settings according to your network requirements.
Establishing a custom WiFi guest portal on a UniFi Controller involves a series of methodical steps designed to enhance user experience and network security. The UniFi platform provides a versatile environment for network administrators to create a tailored guest access interface, which can include branding elements, terms of service, and specific authentication methods. By leveraging the UniFi Controller's capabilities, network engineers can implement a seamless and secure guest network experience that aligns with organizational policies and user expectations. This process not only involves configuring the portal but also requires a comprehensive understanding of the network topology, guest access policies, and the integration of authentication services if necessary. With the right configuration, a UniFi guest portal can provide an efficient and secure solution for managing guest access, ensuring that visitors have the connectivity they need while maintaining the integrity and security of the primary network infrastructure.
Configuring UniFi Controller for Guest Portal Deployment
To configure the UniFi Controller for a custom WiFi guest portal, begin by accessing the UniFi Network Controller interface. Ensure that you have administrative privileges to make network-wide changes.
Navigate to the Settings
menu by selecting the gear icon located in the lower-left corner of the UniFi Controller dashboard. Within the settings, select the Guest Control option from the left-hand sidebar to access guest network configurations.Under the Guest Control
Proceed to configure the Authentication
method for the guest portal by selecting from the available options such as No authentication, Simple Password, Hotspot, or External Portal Server. For a custom portal, choose the External Portal Server option, which allows integration with third-party authentication systems.Specify the External Portal URL
by entering the URL of your custom portal server. Ensure that this server is accessible from the guest network and is configured to handle UniFi's portal requests.In the Redirect Using Hostname
field, input the hostname that matches the SSL certificate used on your external portal server. This ensures encrypted communication between the guest devices and the portal server.Set up the Landing Page
by choosing either the default UniFi landing page or a custom URL to redirect guests after successful authentication. Enter the URL in the Landing Page URL field if opting for a custom landing page.Configure the Guest Policies
by setting bandwidth limits, session timeouts, and access schedules. These policies control the quality of service and network accessibility for guest users.Under the Guest Access
section, enable Guest Access by toggling the switch and configure the SSID for the guest network. Ensure that the SSID is distinct from other network segments and is broadcasted appropriately.To ensure security and isolation, enable the Guest Isolation
feature, which prevents guest devices from communicating with each other and accessing internal network resources. This feature is critical in maintaining network security and privacy.Go to the Wireless Networks
section and create a new wireless network dedicated to guests by clicking the Create New Wireless Network button. Assign a unique SSID and set the network type to Guest.Configure the Security
settings for the guest wireless network by selecting the appropriate encryption method, such as WPA2 or WPA3, to ensure data privacy and integrity. Enter a secure passphrase if required by the chosen encryption method.Assign the guest network to a specific VLAN by entering the VLAN ID in the VLAN
field. This VLAN assignment helps segregate guest traffic from internal network traffic, enhancing security and performance.In the Advanced Options
section, enable the Fast Roaming feature to provide seamless connectivity for guests moving between access points. Configure additional advanced settings as needed based on network requirements and infrastructure.To apply the changes, click the Apply Changes
button located at the bottom of the configuration page. The UniFi Controller will provision the changes across all managed access points and devices.Verify the guest portal setup by connecting a test device to the guest network and ensuring that it is redirected to the custom portal for authentication. Troubleshoot any connectivity or authentication issues by reviewing the UniFi Controller logs and external portal server logs.
Regularly monitor the guest network performance and usage statistics through the UniFi Controller dashboard to ensure optimal operation and user satisfaction. Adjust configurations and policies as needed to accommodate changing network demands and security requirements.

Customizing Guest Portal Captive Portal Settings
To effectively customize the Guest Portal Captive Portal settings on a UniFi Controller, network engineers must first access the UniFi Network Controller's interface. Begin by logging into the UniFi Controller dashboard using the appropriate administrative credentials.
Once logged in, navigate to the Settings
section located on the left-hand sidebar. From there, proceed to the Guest Control tab to access the configuration options for the guest network.Within the Guest Control tab, locate the Guest Portal
section, which allows for the customization of the captive portal settings. Enable the Guest Portal by toggling the switch to the on position.To customize the portal, select the Customize
option under the Portal Design section. This will provide access to various settings, including the ability to upload a custom logo, adjust the portal's color scheme, and modify welcome messages.For advanced customization, utilize the Custom HTML
To configure authentication methods, navigate to the Authentication
section. Here, choose between options such as No Authentication, Simple Password, Voucher, and RADIUS authentication, depending on the security requirements.For those opting for Voucher
authentication, ensure that voucher codes are generated and managed under the Vouchers tab within the Guest Control settings. This involves specifying the voucher validity, duration, and usage limits.To further refine access control, adjust the Guest Policies
. Configure options such as Access Schedules, Bandwidth Limits, and Network Isolation to ensure optimal performance and security for guest users.Network engineers may also define Walled Garden
entries to allow specific IP addresses or domain names to bypass the portal. This is particularly useful for enabling access to resources like external authentication servers or promotional websites.After configuring the desired settings, save changes by clicking the Apply
button. It is crucial to test the portal functionality by connecting a device to the guest network and verifying the expected behavior.For command-line enthusiasts, utilize the UniFi Controller's API to script and automate portal configurations. This requires knowledge of UniFi's API endpoints and the ability to authenticate API requests using token-based authentication.
To access the API, construct an HTTP request targeting the UniFi Controller's IP address and specify the relevant endpoint for guest control settings. Ensure that all API requests are secured using HTTPS to prevent unauthorized access.
Network engineers may also leverage the UniFi Controller's CLI for direct access to advanced settings. This involves establishing an SSH session to the UniFi device and executing commands to modify portal settings.
For detailed command syntax, refer to the UniFi CLI documentation, which provides comprehensive guidance on available commands and their parameters. Utilize commands such as set guest-control
In scenarios where multiple sites are managed within a single UniFi Controller, ensure that portal settings are configured on a per-site basis. This is achieved by selecting the appropriate site from the controller's site selection dropdown menu before making any changes.
To maintain a seamless guest experience, regularly update portal content and settings to reflect changes in branding or security policies. This proactive approach helps ensure that the guest network remains secure and user-friendly.
It is also advisable to monitor guest network traffic and performance using the UniFi Controller's built-in analytics tools. This provides valuable insights into usage patterns and potential areas for improvement.
For enhanced security, consider integrating the guest portal with external security appliances or services. This may involve configuring firewall rules or implementing additional authentication mechanisms to protect against unauthorized access.
Finally, document all customization steps and configurations for future reference and troubleshooting. This documentation should include details such as portal design choices, authentication settings, and any custom code used in the portal.
By following these comprehensive steps, network engineers can effectively customize the Guest Portal Captive Portal settings on a UniFi Controller, ensuring a secure and personalized experience for guest users.
| Parameter | UniFi Controller | Guest Portal Configuration | Industry Standards |
|---|---|---|---|
| Hardware Requirements | Minimum: Dual-core CPU, 2GB RAM, 1GB Storage | N/A | IEEE 802.11ac/n for WiFi, PoE for APs |
| Voltage Specifications | Power over Ethernet (PoE) 802.3af/at | N/A | IEEE 802.3af/at (PoE) Standards |
| Routing Modes | Layer 3 Routing, NAT, DHCP Server | Captive Portal with RADIUS Authentication | RFC 2865 (RADIUS), RFC 2866 (Accounting) |
| Cable Standards | Cat5e/Cat6 for Ethernet Connectivity | N/A | ANSI/TIA-568-C.2 for Cable Performance |
Para entender mais detalhes, leia o artigo completo sobre configuração recomendada no blog
.Implementing Advanced Authentication Methods for Guest Access
In order to enhance security and provide a seamless user experience, implementing advanced authentication methods for guest access on a UniFi Controller involves configuring several settings and options. This process requires a meticulous approach to ensure that the network remains secure while providing guests with the necessary access.
Begin by accessing the UniFi Controller through the web interface. Navigate to Settings
> Guest Control, where you will configure the guest portal settings necessary for advanced authentication methods.Under the Guest Control
section, enable the Guest Portal by toggling the switch to the On position. This action will activate the guest portal, allowing for further customization and configuration of authentication methods.To implement advanced authentication, scroll down to the Authentication
section and select the desired method from the available options. Options include Simple Password, Voucher, Facebook Wi-Fi, External Portal Server, and RADIUS authentication. Each method offers unique security and user experience benefits.For RADIUS
authentication, ensure that a RADIUS server is properly configured and accessible. Enter the RADIUS server's IP address, the shared secret, and specify the authentication port, typically 1812. This allows the UniFi Controller to communicate with the RADIUS server for user authentication.If opting for Voucher
For Facebook Wi-Fi
, ensure that a Facebook page is associated with the business location. Under the Guest Control tab, select Facebook Wi-Fi and follow the prompts to link the page. This method allows guests to check in via Facebook to gain access to the network.In cases where an External Portal Server
is preferred, specify the external portal URL in the provided field. Ensure that the external server is configured to handle authentication requests and provide appropriate responses to the UniFi Controller.After configuring the desired authentication method, proceed to customize the guest portal's appearance and user experience. Use the Customize
tab to upload logos, modify welcome messages, and adjust the portal's color scheme to align with branding guidelines.To further secure the guest network, enable Access Control
options such as Guest Policies and Bandwidth Limits. These settings help manage guest access by restricting certain network resources and controlling data usage.Under Guest Policies
, configure Restricted Subnets to prevent guests from accessing sensitive internal network segments. Specify IP ranges or subnets that should be inaccessible to guest users to enhance network security.Implement Bandwidth Limits
by setting maximum upload and download speeds for guest users. This ensures fair usage of network resources and prevents any single guest from monopolizing bandwidth.Once all settings are configured, apply the changes by clicking Apply Changes
. Verify the configuration by connecting a device to the guest network and ensuring that the selected authentication method prompts the user as intended.Regularly monitor guest access logs through the UniFi Controller's Insights
tab to identify any unauthorized access attempts or unusual activity. This proactive monitoring aids in maintaining network security and performance.By carefully implementing advanced authentication methods and configuring the guest portal, network administrators can provide secure and controlled guest access. This approach not only safeguards network resources but also enhances the overall user experience for guests.

Integrating External RADIUS Server for Enhanced Security
Integrating an external RADIUS server with the UniFi Controller for a custom WiFi guest portal provides a robust security framework that enhances user authentication and network integrity. This process involves configuring the RADIUS server, setting up the UniFi Controller to communicate with the RADIUS server, and ensuring that both systems are correctly synchronized for secure data exchange.
Configuring the External RADIUS Server
Begin by setting up the RADIUS server, ensuring it is operational and accessible over the network. Install a RADIUS server software package such as FreeRADIUS on a dedicated server running a compatible operating system, ensuring the server is updated to the latest stable version.
Configure the RADIUS server by editing its configuration files, typically located in /etc/freeradius/3.0/
In the clients.conf
file, add the following configuration block:
client unifi {
ipaddr = 192.168.1.1
secret = your_shared_secret
shortname = unifi
}
Replace 192.168.1.1
with the actual IP address of the UniFi Controller and your_shared_secret with a secure, complex string. Configure user authentication by editing the users file, specifying user credentials and associated attributes.Configuring the UniFi Controller
Access the UniFi Controller's web interface by navigating to its IP address in a web browser. Once logged in, go to Settings
> Wireless Networks and select the guest network for which the RADIUS authentication is to be configured.In the wireless network settings, enable the Guest Policies
option and scroll down to the RADIUS section. Enter the RADIUS server's IP address and the shared secret defined in the RADIUS server's configuration.Specify the authentication port, typically 1812
, and the accounting port, usually 1813. Ensure that the RADIUS Profile is set to Custom to allow for specific configurations tailored to the network's security requirements.Testing the RADIUS Integration
To verify the RADIUS integration, use a RADIUS testing tool such as radtest
to simulate an authentication request from the UniFi Controller to the RADIUS server. Execute the following command on the RADIUS server:radtest username password 192.168.1.1 0 your_shared_secret
Replace username
and password with valid credentials from the RADIUS server's users file. Review the server logs located in /var/log/freeradius/radius.log to confirm successful authentication and troubleshoot any errors.Ensure that firewall rules on both the UniFi Controller and RADIUS server allow traffic on ports 1812
and 1813. Adjust network security policies to facilitate smooth communication between the devices while maintaining stringent security standards.Monitoring and Maintaining the RADIUS Integration
Regularly monitor RADIUS server logs to detect unauthorized access attempts and to ensure the integrity of the authentication process. Implement automated alerts for critical events that could indicate potential security breaches or system failures.
Periodically update the RADIUS server software and configuration files to incorporate security patches and new features. Perform routine audits of user credentials and access policies to align with organizational security policies and compliance requirements.
By following these steps, network administrators can successfully integrate an external RADIUS server with the UniFi Controller, enhancing the security and reliability of the WiFi guest portal authentication process.
Recomenda-se também a leitura do guia sobre boas práticas de infraestrutura física e lógica
.Monitoring and Analyzing Guest Network Traffic and Performance
Effective monitoring and analysis of guest network traffic and performance on a UniFi Controller involve leveraging the UniFi Network application’s comprehensive tools and features. This section details the systematic approach to utilizing these tools to ensure optimal network performance and security.
Accessing the UniFi Controller
Begin by logging into the UniFi Network application through a web browser using the controller’s IP address or domain name. Ensure that you have administrative privileges to access the necessary monitoring tools and configurations.
Utilizing the Dashboard for Traffic Overview
Navigate to the Dashboard
tab to get a high-level overview of the network traffic. The dashboard provides real-time statistics on data throughput, client connections, and network health indicators.Focus on the Top Access Points
and Top Clients sections to identify which devices and users are consuming the most bandwidth. This information is crucial for understanding traffic patterns and identifying potential bottlenecks.Deep Dive into Traffic Statistics
For a more detailed analysis, proceed to the Statistics
section. Here, you can view historical data on traffic usage, client count, and application distribution over customizable time frames.Use the Traffic
and Clients tabs to filter data by specific SSIDs, ensuring that you are examining traffic relevant to the guest network. This helps in isolating performance metrics and identifying anomalies specific to guest users.Configuring Alerts and Notifications
Set up alerts to proactively monitor network performance by navigating to Settings > Notifications
. Configure alerts for specific events such as device disconnections, high latency, or unusual traffic spikes.Ensure that email notifications are enabled and properly configured to receive timely updates on network status, which aids in quick response to potential issues.
Analyzing Traffic with Deep Packet Inspection (DPI)
Enable Deep Packet Inspection (DPI) by going to Settings > Site
and toggling the DPI option. DPI provides insights into the types of applications and services consuming bandwidth on the guest network.Review the DPI data in the Insights
tab, which categorizes traffic into application types, allowing for a detailed understanding of network usage patterns. This aids in optimizing bandwidth allocation and enhancing user experience.Leveraging Insights for Client Analysis
Access the Insights
section to gather information about connected clients, including device type, operating system, and connection history. This information is vital for troubleshooting connectivity issues and ensuring device compatibility with the network.Use the Blocked Devices
feature to identify and manage devices that may be causing network disruptions or security threats. This enhances the security posture of the guest network.Implementing Traffic Shaping and QoS
To manage bandwidth allocation and prioritize critical traffic, configure Traffic Shaping and Quality of Service (QoS) settings. Navigate to Settings > Networks
and select the guest network to apply specific bandwidth limits and priority rules.Ensure that mission-critical applications receive higher priority to maintain service quality, especially during peak usage times. This is crucial for maintaining a balanced and efficient network environment.
Utilizing Logs for Performance Analysis
Access the Logs
section to review detailed records of network events and actions. Logs provide chronological insights into network operations, helping to diagnose and resolve issues effectively.Regularly analyze logs to detect patterns or recurring issues that may impact network performance. This proactive approach aids in maintaining network reliability and user satisfaction.
Regular Performance Audits
Conduct regular audits of the guest network by reviewing performance metrics and adjusting configurations as necessary. Set a schedule for these audits to ensure consistent network performance and security.
Document findings and changes made during audits to maintain a comprehensive record of network performance and configuration history. This documentation is valuable for future troubleshooting and network planning.
Conclusion
Monitoring and analyzing guest network traffic and performance on a UniFi Controller require a systematic approach utilizing various tools and features provided by the UniFi Network application. By following these steps, network administrators can ensure a secure, efficient, and high-performing guest network environment.

Frequently Asked Questions (FAQ)
How do I access the UniFi Controller to set up a custom WiFi guest portal?
To access the UniFi Controller, open a web browser and enter the IP address of the controller followed by port 8443, such as https://192.168.1.1:8443. Log in with your administrator credentials to access the dashboard.
What steps are involved in creating a custom guest portal on the UniFi Controller?
Navigate to the "Settings" section and select "Guest Control" from the menu. Enable the "Guest Portal" and choose "Custom" from the "Authentication" options, allowing you to upload your custom HTML/CSS files for the portal design.
How can I ensure security while setting up the guest portal on UniFi?
Implement a strong password policy and enable HTTPS redirection in the portal settings. Additionally, configure bandwidth limits and session timeout settings to enhance security and manage network resources efficiently.
Can I integrate third-party authentication services with the UniFi guest portal?
Yes, you can integrate third-party authentication services by enabling "External Portal Server" in the guest control settings. Provide the URL of the external server and configure the necessary authentication parameters.



