# Sophos Integration Guide

This guide covers the full integration between a **Sophos Firewall** and Useroam Cloud: RADIUS authentication, web authentication, the captive portal template, the firewall rules, and 5651 syslog forwarding.

> **Before you start:** you need administrator access to the Sophos web interface and the WAN IP address of the firewall. If Useroam will also manage users over the API, complete the **Sophos API Connection** page afterwards.

---

### **1 - Adding the device to the Useroam panel**

Sign in to your panel at **[panel.useroam.com](https://panel.useroam.com)** and add a **New Device**. The system selects your license automatically.

- **Device type:** select **Sophos**.
- **Device address:** enter the WAN IP address of the firewall. If you have more than one WAN IP, the Sophos device sends this request from the first WAN interface by default.

`Note: if you want the traffic to leave over a different WAN interface, create an SNAT rule to route it through the interface you want.`

<div class="image-container" id="bkmrk--1">![Adding a Sophos device in the Useroam panel](https://help.useroam.com/uploads/images/gallery/2026-07/screenshot-2026-07-06-at-11-17-57.png)</div>---

### **2 - Device Access settings**

Go to **Administration &gt; Device Access**. For the zone where you will use Useroam, enable **only** the **Captive Portal** and **DNS** options.

<div class="alert-box" id="bkmrk-caution%3A-if-you-enab">**Caution:** if you enable other authentication mechanisms such as RADIUS SSO at the same time, you may run into redirection problems or a slow-loading captive portal page.</div><div class="image-container" id="bkmrk--3">![Sophos Device Access settings](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-sophos-entegrasyon-kilavuzu-pdf-1-pdf-21.jpg)</div>---

### **3 - Adding the RADIUS server**

Add a new RADIUS server from **Authentication &gt; Servers**. In the Server IP field, enter the IP address you get when you ping **panel.useroam.com**.

Then copy the code shown next to **Device Password** under **Useroam &gt; Settings &gt; Device Settings** and paste it into the **Shared Secret** field.

<div class="image-container" id="bkmrk--5">![Sophos RADIUS server settings](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-sophos-entegrasyon-kilavuzu-pdf-1-pdf-21-1.jpg)</div><div class="image-container" id="bkmrk--6">[![Device password in the Useroam panel](https://help.useroam.com/uploads/images/gallery/2026-07/scaled-1680-/screenshot-2026-07-06-at-11-34-24.png)](https://help.useroam.com/uploads/images/gallery/2026-07/screenshot-2026-07-06-at-11-34-24.png)</div>---

### **4 - Connection test (optional)**

If you want to test at this point: create a new user in the Useroam Cloud panel via **Guests &gt; New User**, then check the connection with **Test Connection** inside the RADIUS server settings on the firewall.

<div class="image-container" id="bkmrk--8">![Sophos RADIUS connection test](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-sophos-entegrasyon-kilavuzu-pdf-1-pdf-25.jpg)</div>---

### **5 - Authentication priority (Authentication Methods)**

Go to **Authentication &gt; Services**, move Useroam to the top of the *Firewall Authentication Methods* list, and click **Apply** to save.

<div class="image-container" id="bkmrk--10">![Sophos firewall authentication methods](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-sophos-entegrasyon-kilavuzu-pdf-1-pdf-30.jpg)</div>---

### **6 - Web authentication settings**

Move on to **Authentication &gt; Web Authentication**. Under *Sign Out User*, tick **When User is Inactive**.

In the *Traffic flow* section next to it, set **1440 minutes** (24 hours) for 100 bytes. With this setting, every connected device stays signed in on the firewall as long as it transfers at least 100 bytes within 24 hours. You can shorten this period if you prefer.

Finally, tick **"Use insecure HTTP instead of HTTPS"** and save.

<div class="image-container" id="bkmrk--12">![Sophos web authentication settings](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-sophos-entegrasyon-kilavuzu-pdf-1-pdf-37.jpg)</div>---

### **7 - Integrating the captive portal design (Custom HTML)**

In Useroam, go to **Settings &gt; Device Settings** and copy the whole block that starts with the `<html>` line. Paste it into **Authentication &gt; Web Authentication &gt; Captive portal appearance &gt; Custom HTML** on the Sophos firewall and save.

<div class="image-container" id="bkmrk--14">![Useroam captive portal template](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-sophos-entegrasyon-kilavuzu-pdf-1-pdf-40.jpg)</div><div class="image-container" id="bkmrk--15">![Sophos custom HTML field](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-sophos-entegrasyon-kilavuzu-pdf-1-pdf-40-1.jpg)</div><div class="alert-box" id="bkmrk-limiting-concurrent-">**Limiting concurrent sessions:** if you want to limit how many devices can use a single account, configure this under **Configure &gt; Authentication &gt; Services &gt; Global Settings** on the Sophos firewall. By default the system allows an unlimited number of devices.</div><div class="image-container" id="bkmrk--16">![Sophos global authentication settings](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-sophos-entegrasyon-kilavuzu-pdf-1-pdf-48.jpg)</div>---

## Creating the firewall rules

To create the rules, go to **Protect &gt; Rules and Policies** on the Sophos firewall and open the **Add Firewall Rule** page.

#### **RULE 1: Guest to DNS**

Every device sends a DNS query to a vendor-specific domain to work out whether the network it joined has internet access (for example `captive.apple.com`).

When the answer comes back, the device concludes it has internet and starts passing traffic. Without it, the hotspot redirect will not happen.

**This rule must sit above the guest internet access rule.**

<div class="image-container" id="bkmrk--18">![Sophos Guest to DNS rule](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-sophos-entegrasyon-kilavuzu-pdf-1-pdf-51.jpg)</div>#### **RULE 2: Guest to Useroam**

This rule lets devices on your guest network reach `*.useroam.com`. Selecting **HTTP/HTTPS** under Services is enough.

<div class="image-container" id="bkmrk--19">[![Sophos Guest to Useroam rule](https://help.useroam.com/uploads/images/gallery/2026-07/scaled-1680-/useroam-cloud-sophos-entegrasyon-kilavuzu-pdf-1-pdf-55.jpg)](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-sophos-entegrasyon-kilavuzu-pdf-1-pdf-55.jpg)</div>#### **RULE 3: Guest to Internet**

This rule provides internet access for your devices.

Tick the **Log Firewall** checkbox. So that unknown users are shown the hotspot screen, also tick **Match Known Users** and **Use Web Authentication For Unknown Users**. For Web Policy and Identify And Control Applications (App Control), select *Allow All* or any policy you prefer.

<div class="image-container" id="bkmrk--20">![Sophos Guest to Internet rule](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-sophos-entegrasyon-kilavuzu-pdf-1-pdf-63.jpg)</div><div class="image-container" id="bkmrk--21">[![Sophos Guest to Internet rule details](https://help.useroam.com/uploads/images/gallery/2026-07/scaled-1680-/useroam-cloud-sophos-entegrasyon-kilavuzu-pdf-1-pdf-63-1.jpg)](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-sophos-entegrasyon-kilavuzu-pdf-1-pdf-63-1.jpg)</div><div class="image-container" id="bkmrk-when-you-are-done%2C-t">*When you are done, the **Protect &gt; Rules and Policies** list should be ordered as shown below.*</div><div class="image-container" id="bkmrk--22">[![Sophos rule order](https://help.useroam.com/uploads/images/gallery/2026-07/scaled-1680-/useroam-cloud-sophos-entegrasyon-kilavuzu-pdf-1-pdf-63-2.jpg)](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-sophos-entegrasyon-kilavuzu-pdf-1-pdf-63-2.jpg)</div>---

## Forwarding logs to the Useroam device

#### **1 - Defining the syslog server**

First go to **System Services &gt; Log Settings** and define a new syslog server.

<div class="image-container" id="bkmrk--24">![Sophos log settings](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-sophos-entegrasyon-kilavuzu-pdf-1-pdf-70.jpg)</div>#### **2 - Entering the syslog details and starting**

Fill in the following details for the newly added syslog server:

- **Name:** Useroam Cloud
- **IP address / Domain:** `104.247.174.120`
- **Port:** `514`
- **Facility:** DAEMON
- **Severity level:** Debug
- **Format:** Standard syslog protocol

[![Sophos syslog server details](https://help.useroam.com/uploads/images/gallery/2026-07/scaled-1680-/useroam-cloud-sophos-entegrasyon-kilavuzu-pdf-1-pdf-75.jpg)](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-sophos-entegrasyon-kilavuzu-pdf-1-pdf-75.jpg)

Then, on the row for the newly added syslog server, select **only** the **Content Filtering** fields to start sending logs to Useroam.

<div class="image-container" id="bkmrk--26">![Sophos syslog content filtering selection](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-sophos-entegrasyon-kilavuzu-pdf-1-pdf-76.jpg)</div>#### **3 - Checking the log packets**

Afterwards, go back to the Useroam panel to confirm that packets are arriving from the firewall. Check the **General Statistics** area in the top-right corner and look at the section under **Pending Signature**.

<div class="image-container" id="bkmrk--27">![Pending signature statistics in the Useroam panel](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-sophos-entegrasyon-kilavuzu-pdf-1-pdf-76-1.jpg)</div>---

#### **Important — integration complete**

Your Sophos integration is complete. If you run into any problems during the process, contact our support team at **destek@useroamteknoloji.com**.

---

## Login with WhatsApp — firewall allowlist (walled garden)

For the **Login with WhatsApp** flow to work while the guest is still behind the captive portal (before internet access is granted), the following addresses **must be allowed** in your firewall or walled-garden configuration. Without these rules the WhatsApp login screen will not open and the automatic login based on delivery confirmation will not work.

### Domains to allow (FQDN)

- `*.wa.me`
- `*.whatsapp.com`
- `*.whatsapp.net`
- `g.whatsapp.net`
- `mmg.whatsapp.net`
- `fbsbx.com`
- `*.useroam.com`

### IP addresses to allow

- `157.240.0.0` — Meta / Facebook network block
- `31.13.0.0` — Meta / Facebook network block
- `104.247.174.120` — Useroam panel

**Note:** `157.240.0.0` and `31.13.0.0` are typically `/16` network blocks (Meta infrastructure); we recommend defining them as blocks in the firewall (`157.240.0.0/16`, `31.13.0.0/16`). `104.247.174.120` is the Useroam panel IP (`/32`). Use the domain list if your firewall supports FQDN-based filtering; otherwise use the IP blocks.