Sophos Firewall and Access Points Integration with Purple WiFi
This guide details the technical integration of Sophos Firewall (XG/XGS) and Sophos AP6/APX access points with Purple WiFi. It covers external captive portal redirection, RADIUS authentication and accounting configuration, Walled Garden setup, 802.1X for Staff WiFi, and dynamic VLAN assignment using Sophos PPSK for secure Multi-Tenant network segregation across hospitality, retail, and public-sector venues.
Listen to this guide
View podcast transcript
- Executive Summary
- Technical Deep Dive
- How Redirection Works
- RADIUS Authentication and Accounting
- Walled Garden Configuration
- 802.1X for Staff WiFi
- Sophos PPSK and Dynamic VLAN Assignment for Multi-Tenant Environments
- Implementation Guide
- Step 1: Obtain Purple Credentials
- Step 2: Configure RADIUS Servers on Sophos Firewall
- Step 3: Configure Walled Garden
- Step 4: Create Guest SSID
- Step 5: Create Post-Authentication Firewall Rules
- Step 6: Configure PPSK for Multi-Tenant Environments (Optional)
- Best Practices
- Troubleshooting and Mitigation
- ROI and Business Impact

Executive Summary
If you run Sophos infrastructure and need to deploy compliant Guest WiFi that captures first-party data, this guide provides your exact setup steps. Purple integrates with Sophos Firewall (XG and XGS series) and Sophos AP6/APX wireless access points as an external Captive Portal, offloading guest identity management, GDPR consent collection, and social login handling to Purple’s cloud RADIUS. Your Sophos Firewall continues to perform deep packet inspection and unified threat management across all traffic. The end result: a compliant, segmented network where guests authenticate via a branded Purple portal, employees connect via 802.1X with WPA2-Enterprise, and multi-tenant environments use Sophos Private Pre-Shared Keys (PPSK) for dynamic VLAN assignment. Purple runs across more than 80,000 physical venues globally and processed 440 million logins in 2024 (Purple internal data, 2024). It is ISO 27001 certified, GDPR compliant, and Cyber Essentials certified.
Technical Deep Dive
How Redirection Works
This integration uses standard RADIUS protocols and HTTP redirection. When a venue visitor associates with your open Guest WiFi SSID on a Sophos AP6 or APX access point, the Sophos Firewall intercepts the unauthenticated device’s first HTTP request. Instead of serving a locally-hosted login page, the firewall issues a 302 redirect to Purple’s cloud-hosted login portal URL—typically formatted as https://region1.purpleportal.net/access/.
During this pre-authentication phase, the device sits within a Walled Garden: a strict whitelist of domains that an unauthenticated device is allowed to access. This whitelist must contain Purple’s portal assets, any social login providers (Facebook, Google, LinkedIn), and any identity federation endpoints you use, such as Microsoft Entra ID or Okta. Once the user completes authentication on the Purple login portal, Purple’s cloud RADIUS sends a RADIUS Access-Accept message back to the Sophos Firewall. The firewall updates the session state to authenticated and applies your post-authentication security policies.
RADIUS Authentication and Accounting
Purple provides RADIUS-as-a-Service. You do not need to deploy FreeRADIUS, Windows NPS, or any on-premises RADIUS infrastructure for the guest network. Simply configure the Sophos Firewall to point directly to Purple’s cloud RADIUS IP addresses.
Two RADIUS functions are required:
| Function | Protocol | Port | Purpose |
|---|---|---|---|
| Authentication | UDP | 1812 | Verifies guest credentials and returns Access-Accept or Access-Reject |
| Accounting | UDP | 1813 | Reports session starts, interim updates, and session ends to Purple |
Accounting is not optional. It is the mechanism Sophos Firewall uses to report session duration, consumed bandwidth, and session termination events back to Purple. Without accounting data, your WiFi analytics dashboard will show incomplete visitor metrics. Configure the accounting interim interval to 120 seconds for a good balance between real-time visibility and network load.
The RADIUS shared secret must match exactly between the Sophos configuration and the Purple portal. A single character discrepancy will result in silent authentication failures.
Walled Garden Configuration
The Walled Garden is the most critical pre-authentication configuration element and the most common source of deployment failures. Configure this under Wireless > Hotspot Settings on the Sophos Firewall.
You must allow at least the following domains:
| Category | Allowed Domains |
|---|---|
| Purple Core | region1.purpleportal.net, venuewifi.com, cloudfront.net |
| Payments (if applicable) | stripe.com |
| Weather Widget (if used) | openweathermap.org |
| Facebook Login | facebook.com, fbcdn.net, connect.facebook.net, akamaihd.net |
| Google Login | accounts.google.com, googleapis.com, gstatic.com |
| LinkedIn Login | linkedin.com, licdn.net, licdn.com |
| Microsoft Entra ID | login.microsoftonline.com, login.microsoft.com |
Ensure that DNS resolution (UDP port 53) is allowed for unauthenticated clients. Without DNS, devices cannot resolve the Purple portal’s hostname, and the redirection will fail before it starts.
802.1X for Staff WiFi
For staff WiFi, use 802.1X (IEEE 802.1X port-based network access control) with WPA2-Enterprise or WPA3-Enterprise. Configure the Sophos APs to use EAP-TLS (certificate-based) or PEAP-MSCHAPv2 (username/password) against your internal RADIUS server or cloud identity provider, such as Microsoft Entra ID.
The RADIUS server returns VLAN assignment attributes to place the authenticated employee device into the correct internal VLAN. This is the same dynamic VLAN mechanism described below for PPSK, applied to enterprise authentication.
Keep the SSID and VLAN for staff WiFi completely separate from the Guest WiFi SSID and VLAN. Never bridge guest traffic to management or corporate subnets. This separation is a PCI DSS mandate if any network segment processes cardholder data.
Sophos PPSK and Dynamic VLAN Assignment for Multi-Tenant Environments
In multi-tenant environments (such as shared workspaces, build-to-rent residential buildings, student housing, or retail concessions), you need to isolate different user groups at the network level without broadcasting individual SSIDs for each tenant. Broadcasting multiple SSIDs increases radio frequency overhead and complicates management.
Sophos AP6 access points support PPSK (Private Pre-Shared Key), also known as Identity PSK or per-user PSK. PPSK allows a single SSID to accept multiple unique passwords, each mapped to a specific VLAN via RADIUS attributes.
The dynamic VLAN assignment process is as follows:
- Residents or members connect to the single shared SSID and enter their unique PPSK.
- The Sophos AP sends a RADIUS Access-Request to the configured RADIUS server, containing the PPSK as credentials.
- The RADIUS server validates the PPSK and returns an Access-Accept containing the following VLAN attributes:
Tunnel-Type=VLAN(value 13)Tunnel-Medium-Type=IEEE-802(value 6)Tunnel-Private-Group-ID= `` (e.g.100)
- The Sophos AP tags traffic from that device with the returned VLAN ID and places it in the correct isolated network segment.
This is how Identity-Based Networking works: a single SSID, multiple isolated VLANs, driven by the user's unique credentials.


Implementation Guide
Step 1: Obtain Purple Credentials
Log in to the Purple portal. Navigate to Management > Locations > [Your Location] > Hardware > Add Hardware. Select Sophos as the hardware type. The portal will display:
- Primary and secondary RADIUS server IP addresses
- RADIUS Shared Secret
- Captive Portal URL (e.g.
https://region1.purpleportal.net/access/) - Redirect URL (e.g.
https://region1.purpleportal.net/access/?res=success) - Complete Walled Garden domain list
Please note down these four values before proceeding.
Step 2: Configure RADIUS Servers on Sophos Firewall
Navigate to Authentication > Servers on Sophos Firewall (or for AP-managed configurations, navigate to Sophos Central > Wireless > SSIDs > [SSID] > Advanced Settings).
- Click Add to create a new RADIUS server entry.
- Set Server IP to the primary Purple RADIUS IP address.
- Set Authentication port to
1812. - Set Accounting port to
1813. - Enter the Shared secret from the Purple portal.
- Repeat this step for the secondary Purple RADIUS server.
For Sophos AP6 managed via Sophos Central, configure the RADIUS servers under the Advanced Settings > Backend authentication section of the SSID.
Step 3: Configure Walled Garden
Navigate to Wireless > Hotspot Settings on Sophos Firewall.
- Under Walled garden, click Add new item.
- Add each domain from the list provided by Purple.
- Ensure unauthenticated clients are allowed DNS (UDP port 53) via pre-authentication firewall rules.
- Click Apply.
Step 4: Create Guest SSID
Navigate to Wireless > Wireless Settings > SSIDs (or Sophos Central > Wireless > SSIDs).
- Click Add SSID.
- Set Encryption mode to Open (no pre-shared key).
- Under Advanced Settings > Captive portal, enable Captive Portal.
- Select Backend authentication as the authentication type.
- Enter the Purple RADIUS server IP, port
1812, and shared secret. - Set Redirect URL to the Purple splash page URL.
- Assign the SSID to a dedicated guest VLAN (e.g. VLAN 100).
- Enable Client isolation to prevent traffic between guest users.
Step 5: Create Post-Authentication Firewall Rules
Navigate to Rules and policies > Firewall rules.
- Create a rule allowing traffic from the guest VLAN to the WAN zone.
- Apply web filtering to block malicious categories.
- Apply traffic shaping to limit bandwidth per user (recommended guest network settings: 10 Mbps download, 5 Mbps upload).
- Explicitly block all traffic from the guest VLAN to any internal VLAN containing POS systems, PMS, or corporate resources.
Step 6: Configure PPSK for Multi-Tenant Environments (Optional)
- In Sophos Central, create a WPA2-Personal SSID.
- Enable RADIUS VLAN assignment under the SSID's advanced settings.
- Configure the RADIUS server to accept PPSK credentials and return the corresponding VLAN attributes based on user groups.
- Issue unique PPSKs to each tenant group via the Purple portal or your RADIUS management interface.
Best Practices
Isolate traffic at Layer 2 and Layer 3. Always place guest WiFi on a dedicated VLAN. Establish clear firewall rules to block all traffic from the guest VLAN to the RFC 1918 address space on internal network segments. This complies with PCI DSS network segmentation requirements and prevents lateral movement in the event of a compromised guest device.
Use bridge mode for high-density deployments. In environments with more than 200 concurrent guest connections (such as hotels, stadiums, and convention centres), configure the guest SSID to bridge mode. This routes traffic onto a VLAN handled by an enterprise-grade DHCP server, preventing the Sophos AP or firewall from becoming a DHCP performance bottleneck. A 500-room hotel with 70% occupancy and two devices per guest generates approximately 700 concurrent DHCP leases. Enterprise-grade DHCP can handle this demand; an AP's built-in DHCP cannot.
Use publicly trusted SSL certificates. Configure the Sophos firewall to serve a certificate signed by a public CA for the redirection interface. Self-signed certificates generate browser security warnings on iOS and Android, which in turn increases portal drop-off rates. This is particularly critical in hospitality environments where the guest experience directly impacts review scores. Configure RADIUS authentication and accounting. Authentication (port 1812) is used to authorise access. Accounting (port 1813) is used to track usage. Both are required for Purple's analytics features to function correctly. Accounting data drives session duration metrics, bandwidth reporting, and repeat visitor identification within the Purple dashboard.
Plan your Walled Garden before going live. Test the portal on at least one iOS device and one Android device before deploying to production. These two platforms have different Captive Portal detection mechanisms and may behave differently if the Walled Garden configuration is incomplete. During the pre-authentication phase, use the packet capture feature on the Sophos firewall to identify any blocked domains.
Apply Sophos Synchronised Security post-authentication. Sophos AP6 access points support Synchronised Security, which integrates with Sophos Endpoint Protection. If a guest device is detected as compromised (red Security Heartbeat status), the AP can automatically restrict that device to the Walled Garden, isolating it from the internet without manual intervention. This is a highly valuable security control for healthcare and retail environments.
For broader enterprise WiFi security context, see our guide: Enterprise WiFi Security: The Complete 2026 Guide .
Troubleshooting and Mitigation
Symptom: Portal page fails to load (blank screen or timeout) Cause: Incomplete Walled Garden configuration. The Sophos firewall is blocking pre-authentication access to Purple's CSS/JS assets or social login APIs. Resolution: Enable packet capture for the guest VLAN on the Sophos firewall. Identify blocked domains. Add them to the Walled Garden. Verify that DNS resolution is allowed pre-authentication.
Symptom: Portal loads, but authentication always fails
Cause: RADIUS shared secret mismatch or UDP ports 1812/1813 are blocked.
Resolution: Verify the shared secrets in the Sophos configuration and the Purple portal verbatim. Use nmap -sU -p 1812,1813 in the Sophos CLI to confirm UDP reachability.
Symptom: Analytics data shows zero session duration and no bandwidth data Cause: RADIUS accounting is not configured or is blocked. Resolution: Verify that the accounting server is configured with the correct shared secret on port 1813. Check for any intermediary ACLs blocking outbound UDP 1813.
Symptom: Certificate warnings appear on guest devices Cause: The Sophos firewall is using a self-signed certificate on the redirection interface. Resolution: Upload a certificate signed by a public CA (Let's Encrypt, DigiCert, or similar) to the Sophos firewall and assign it as the login page certificate under Wireless > Hotspot Settings.
Symptom: PPSK users enter the wrong VLAN
Cause: RADIUS VLAN attributes are incorrectly configured, or the Sophos AP is not accepting dynamic VLAN assignment.
Resolution: Verify that the RADIUS server returns Tunnel-Type = 13, Tunnel-Medium-Type = 6, and Tunnel-Private-Group-ID = . Confirm that RADIUS VLAN assignment for the SSID is enabled in Sophos Central.
ROI and Business Impact
Deploying Purple on Sophos infrastructure transforms guest WiFi from a utility cost into a first-party data asset. The business case is clear.
A 200-room hotel with 70% occupancy and an average length of stay of 1.8 nights will generate approximately 50,000 authenticated guest profiles annually via Purple's self-selected opt-in page. Each profile contains names, email addresses, demographic data, and visit history. This data can be directly imported into email marketing campaigns, significantly boosting direct bookings and food and beverage revenue.
For retail environments, Purple's analytics identify dwell times, repeat visit frequency, and peak footfall hours. A 50-location retail chain can use this data to optimise staffing levels, align promotional timing, and measure the impact of in-store events on visit frequency.
For public sector and transportation operators, Purple provides auditable GDPR consent logs and supports critical infrastructure operators in complying with the UK's Network and Information Systems (NIS) Regulations.
Purple's 99.999% availability SLA ensures that guest authentication services do not become a single point of failure for your network. The cloud RADIUS architecture means there are no on-premises authentication servers to maintain, patch, or replace.
For related integration guides, see the Alta Labs and Purple WiFi Integration: Setup and Captive Portal Configuration guide.
Key Definitions
Captive portal
A web page that intercepts a user's initial HTTP request and requires interaction (authentication, consent, or payment) before granting internet access.
The primary interface for Guest WiFi. Purple hosts the captive portal in the cloud; the Sophos Firewall redirects unauthenticated clients to it.
Walled Garden
A strict allowlist of domains and IP addresses that unauthenticated devices can access before completing portal authentication.
Must include Purple's portal domains, social login providers, and any identity federation endpoints. An incomplete Walled Garden is the most common cause of portal load failures.
RADIUS (Remote Authentication Dial-In User Service)
A networking protocol that provides centralised authentication, authorisation, and accounting for users connecting to a network. Uses UDP port 1812 for authentication and 1813 for accounting.
Purple provides RADIUS-as-a-Service. The Sophos Firewall and APs communicate with Purple's cloud RADIUS to authenticate guests and report session data.
RADIUS accounting
The component of RADIUS that tracks network usage metrics, including session start time, duration, bytes transferred, and session termination reason.
Essential for Purple's WiFi Analytics. Without accounting data on port 1813, session duration and bandwidth metrics are unavailable in the Purple dashboard.
PPSK (Private Pre-Shared Key)
A WiFi security feature that allows a single SSID to accept multiple unique passphrases, each typically mapped to a specific VLAN or policy via RADIUS.
Used in Multi-Tenant WiFi deployments to provide per-user or per-group network isolation without broadcasting multiple SSIDs. Sophos AP6 supports PPSK with dynamic VLAN assignment.
Dynamic VLAN assignment
A process where the RADIUS server instructs the access point to place an authenticated user onto a specific VLAN by returning Tunnel-Type, Tunnel-Medium-Type, and Tunnel-Private-Group-ID attributes in the Access-Accept message.
Enables Identity-Based Networks. Users are placed in the correct network segment based on their credentials, regardless of which physical AP they connect to.
802.1X
An IEEE standard for port-based network access control. Provides an authentication framework for devices connecting to a LAN or WLAN, requiring a supplicant (client), authenticator (AP or switch), and authentication server (RADIUS).
The enterprise standard for Staff WiFi. Sophos AP6 supports 802.1X with WPA2-Enterprise and WPA3-Enterprise, using EAP-TLS or PEAP-MSCHAPv2.
Bridge mode
A network configuration where the access point passes wireless client traffic directly onto the wired LAN as tagged VLAN frames, without performing NAT or local DHCP.
Recommended for high-density deployments. Offloads DHCP to enterprise servers and ensures Purple receives the true client IP address for accurate analytics.
First-party data
Information collected directly from users through your own channels, owned by you, not shared with or sourced from third parties.
The primary business value of Purple Guest WiFi. Captured through conscious-choice opt-ins at the captive portal, this data is GDPR-compliant and independent of third-party cookies.
Worked Examples
A 300-room hotel has deployed Sophos AP6 access points managed via Sophos Central. They need guests to authenticate through a branded Purple splash page and require the guest network to be completely isolated from the property management system (PMS) on VLAN 20 to maintain PCI DSS compliance. The hotel expects up to 600 concurrent guest connections during peak periods.
- In Sophos Central, create a dedicated guest SSID named 'Hotel Guest WiFi' with Open encryption. 2. Assign the SSID to VLAN 100 in Bridge mode to handle the 600-device DHCP load via the core network DHCP server. 3. Enable the captive portal under Advanced Settings and select Backend authentication. 4. Enter the Purple RADIUS server IP on port 1812 and the shared secret from the Purple portal. 5. Configure the Walled Garden to allow region1.purpleportal.net, venuewifi.com, and all social login domains. 6. On the Sophos Firewall, create a firewall rule allowing VLAN 100 to the WAN zone with web filtering applied. 7. Create an explicit DENY rule blocking all traffic from VLAN 100 to VLAN 20 (PMS network). 8. Configure RADIUS accounting on port 1813 with a 120-second interim interval. 9. Upload a publicly trusted SSL certificate to the Sophos Firewall for the redirect interface. 10. Test on both iOS and Android before go-live.
A coworking space operator manages 15 tenant companies across three floors. Each company requires its own isolated network segment. They currently broadcast 15 separate SSIDs, causing significant RF congestion. They want to consolidate to a single SSID using Sophos AP6 access points while maintaining strict Layer 2 isolation between tenants.
- Assign a unique VLAN to each tenant company (e.g., VLANs 200-214). 2. In Sophos Central, create a single WPA2-Personal SSID named 'CoWork WiFi'. 3. Enable RADIUS VLAN assignment on the SSID. 4. Configure the RADIUS server (Purple's cloud RADIUS or an integrated directory) to store a unique PPSK per tenant and return the appropriate VLAN attributes on authentication. 5. Issue each tenant company their unique PPSK via the Purple portal. 6. On the Sophos Firewall, configure inter-VLAN firewall rules to block all traffic between tenant VLANs. Allow each VLAN access to the internet only. 7. For tenants requiring shared services (e.g., a shared printer), create explicit permit rules for those specific resources only.
Practice Questions
Q1. A retail chain has deployed Sophos AP6 access points across 50 stores. Shoppers report that the Purple splash page takes over 30 seconds to load, or times out completely. The IT team has confirmed that RADIUS authentication is configured correctly. What is the most likely cause and how do you resolve it?
Hint: Consider what happens before the user reaches the authentication step.
View model answer
The Walled Garden is incomplete. The Sophos Firewall is blocking access to Purple's CSS and JavaScript assets, or to social login CDN domains, before authentication. Enable a packet capture on the Sophos Firewall for the guest VLAN and filter for blocked traffic from unauthenticated clients. Identify the blocked domains and add them to the Walled Garden under Wireless > Hotspot Settings. Also verify that DNS (UDP port 53) is permitted pre-authentication. Without DNS resolution, the device cannot resolve the Purple portal hostname and the redirect fails immediately.
Q2. You are designing a Guest WiFi deployment for a 5,000-seat stadium using Sophos AP6 access points. The venue expects 4,000 concurrent fan connections during events. Should you configure the guest SSID in NAT mode or Bridge mode? Justify your decision.
Hint: Consider the DHCP load generated by 4,000 simultaneous connections.
View model answer
Bridge mode. At 4,000 concurrent connections, NAT mode would overwhelm the on-board DHCP server of the Sophos APs or the firewall. In Bridge mode, the APs drop guest traffic directly onto a dedicated VLAN, and enterprise DHCP servers handle IP address assignment. This prevents DHCP exhaustion and ensures the Purple platform receives the true client IP address for accurate analytics. Bridge mode also provides higher throughput than NAT mode, which is important for a high-density event environment. Configure a DHCP scope on the core network with sufficient addresses for the expected peak load, plus a 20% buffer.
Q3. Your Purple Analytics dashboard shows the correct number of logins, but all session durations are reported as zero minutes and bandwidth usage is not tracked. The guest portal is working correctly and guests can browse the internet. What configuration element is missing?
Hint: Authentication grants access. What tracks usage after access is granted?
View model answer
RADIUS accounting is not configured or is being blocked. Authentication on port 1812 grants internet access, but accounting on port 1813 is the mechanism that reports session duration and bandwidth data back to Purple. Check the Sophos Firewall configuration to confirm the accounting server is set to the Purple RADIUS IP on port 1813 with the correct shared secret. Then verify that UDP port 1813 is not blocked by any intermediate ACL or firewall rule between the Sophos Firewall and Purple's cloud RADIUS servers. Use a packet capture to confirm accounting packets are leaving the Sophos Firewall and receiving responses.
Q4. A coworking space operator wants to use Sophos PPSK to give each of their 20 tenant companies an isolated network segment. After configuration, all PPSK users connect successfully but all land on the same VLAN regardless of which PPSK they use. What is the most likely cause?
Hint: Think about what the RADIUS server needs to return and what the AP needs to accept.
View model answer
There are two likely causes. First, the RADIUS server is not returning the correct VLAN attributes in the Access-Accept message. Verify that the RADIUS server returns Tunnel-Type = 13 (VLAN), Tunnel-Medium-Type = 6 (IEEE-802), and Tunnel-Private-Group-ID = the correct VLAN ID for each PPSK. Second, RADIUS VLAN assignment may not be enabled on the SSID in Sophos Central. Navigate to the SSID's Advanced Settings and confirm that RADIUS VLAN assignment is toggled on. Use a RADIUS debug log or packet capture to inspect the Access-Accept messages and confirm the VLAN attributes are present and correctly formatted.
Continue reading in this series
Cisco WLC and Catalyst Integration with Purple WiFi: Step-by-Step Guest Access Guide
This authoritative guide details the step-by-step integration of Cisco Catalyst 9800 WLCs with Purple WiFi. It covers External Web Authentication for guest captive portals, 802.1X EAP-TLS for secure staff access, and Cisco iPSK for multi-tenant dynamic VLAN segmentation.
Cisco WLC and Catalyst Integration with Purple WiFi: Step-by-Step Guest Access Guide
This authoritative guide details the step-by-step integration of Cisco Catalyst 9800 WLCs with Purple WiFi. It covers External Web Authentication for guest captive portals, 802.1X EAP-TLS for secure staff access, and Cisco iPSK for multi-tenant dynamic VLAN segmentation.
CommScope Ruckus Integration with Purple WiFi: Setup and Configuration Guide
This technical reference guide provides an authoritative configuration playbook for integrating CommScope Ruckus architectures with Purple WiFi. It details step-by-step deployments for Guest WiFi captive portals, Secure Staff WiFi via 802.1X, and Multi-Tenant network isolation using Ruckus Dynamic PSK.