# Fortigate Integration Guide

This guide covers the full integration between a **FortiGate firewall** and Useroam Cloud: RADIUS authentication, the captive portal replacement messages, the firewall policies, and 5651 syslog forwarding.

> **Before you start:** you need administrator access to the FortiGate web interface (and CLI access if a second syslog server is required), plus the WAN IP address of the firewall.

---

### **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 **Fortinet**.
- **Device address:** enter the WAN IP address of the firewall. If you have more than one WAN IP, the firewall usually 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 Fortinet device in the Useroam panel](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-fortigate-entegrasyon-kilavuzu-pdf-pdf-9.jpg)</div>---

### **2 - Adding the RADIUS server**

On your firewall, go to **User &amp; Authentication &gt; RADIUS Servers** and click **Create New** to define the Useroam Cloud server.

- **Authentication method:** Specify / PAP
- **Primary Server IP/Name:** `panel.useroam.com`, or by IP address: `104.247.174.120`
- **Secret:** after adding the device in Useroam Cloud, copy the automatically generated **device password** from **Settings &gt; Device Settings** and paste it here.

`Test Connectivity: you can run a RADIUS test from your firewall against Useroam Cloud.`

<div class="image-container" id="bkmrk--3">![FortiGate RADIUS server settings](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-fortigate-entegrasyon-kilavuzu-pdf-pdf-15.jpg)</div><div class="image-container" id="bkmrk--4">![FortiGate RADIUS connectivity test](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-fortigate-entegrasyon-kilavuzu-pdf-pdf-24.jpg)</div>---

### **3 - Captive portal messages (Replacement Messages)**

Three fields under **System &gt; Replacement Messages** need their code replaced. Switch to **Extended View** from the top-right corner first.

#### **3A - Login Failed Page**

Search for **Login Failed Page**. On the screen that opens, clear the code area on the right, paste in `{"Error":"passwordwrong", "ErrorType":"passwordwrong"}` and save.

<div class="image-container" id="bkmrk--6">![FortiGate Login Failed Page replacement message](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-fortigate-entegrasyon-kilavuzu-pdf-pdf-23.jpg)</div><div class="image-container" id="bkmrk--7">![FortiGate replacement message code area](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-fortigate-entegrasyon-kilavuzu-pdf-pdf-28.jpg)</div>#### **3B - Authentication Success Page &amp; Login Page**

Search for **Authentication Success Page**. Clear the code area on the right, paste in `{"Error":"success", "ErrorType":"success"}` and save.

Finally, for **Login Page**, paste the entire code you copied from the Useroam Cloud panel (**Settings &gt; Device Settings**).

<div class="image-container" id="bkmrk--8">![FortiGate Login Page replacement message](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-fortigate-entegrasyon-kilavuzu-pdf-pdf-28.png)</div>---

### **4 - Creating the user group (User Groups)**

Go to **User &amp; Authentication &gt; User Groups** and create a group for Useroam Cloud.

<div class="image-container" id="bkmrk--10">![FortiGate user group](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-fortigate-entegrasyon-kilavuzu-pdf-pdf-32.jpg)</div>---

### **5 - Interface configuration**

On the firewall, edit the relevant port from the **Interface** menu.

- **DNS Server:** first enter the firewall's gateway IP for this interface, then define the DNS servers.
- **Security Mode:** enable **Captive Portal**.
- **User Access:** Restricted to Groups
- **User Groups:** select the group you created in the previous step (for example *Open Group*).
- **Exempt destinations/services:** create an FQDN object for `panel.useroam.com` and select it.

<div class="image-container" id="bkmrk--12">![FortiGate interface configuration](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-fortigate-entegrasyon-kilavuzu-pdf-pdf-35.jpg)</div>---

## Creating the firewall policies

To create the rules, go to **Policy &amp; Objects &gt; Firewall Policy** on the FortiGate firewall.

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

Create your DNS rule first. Selecting only the **DNS** service is enough.

<div class="image-container" id="bkmrk--14">![FortiGate Guest to DNS policy](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-fortigate-entegrasyon-kilavuzu-pdf-pdf-39.jpg)</div>#### **RULE 2: Guest to Useroam**

This rule lets users in the zone where you enable Useroam reach the **panel.useroam.com** panel. Under Service, select the **HTTP/HTTPS** services.

<div class="image-container" id="bkmrk--15">![FortiGate Guest to Useroam policy](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-fortigate-entegrasyon-kilavuzu-pdf-pdf-45.jpg)</div>#### **RULE 3: Guest to Internet**

This rule is your general internet access rule. Add the **User Group (Open Group)** object you created as the Source, and the **ALL** service under Service.

<div class="image-container" id="bkmrk--16">![FortiGate Guest to Internet policy](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-fortigate-entegrasyon-kilavuzu-pdf-pdf-48.jpg)</div><div class="image-container" id="bkmrk-once-all-three-rules">*Once all three rules are in place, the **Policy &amp; Objects &gt; Firewall Policy** list should be ordered as shown below.*</div><div class="image-container" id="bkmrk--17">![FortiGate firewall policy order](https://help.useroam.com/uploads/images/gallery/2026-07/tzLuseroam-cloud-fortigate-entegrasyon-kilavuzu-pdf-pdf-48.jpg)</div>---

## Forwarding logs to the Useroam device

Under **Log &amp; Report &gt; Log Settings**, set **Syslog logging** to **Enable**. Then enter the server details in the IP Address/FQDN field as **panel.useroam.com**.

<div class="image-container" id="bkmrk--19">![FortiGate syslog settings](https://help.useroam.com/uploads/images/gallery/2026-07/useroam-cloud-fortigate-entegrasyon-kilavuzu-pdf-pdf-52.jpg)</div><div class="alert-box" id="bkmrk-caution%3A-if-a-differ">**Caution:** if a different IP is already defined here, you must configure your second syslog server from the command line (CLI).</div><div class="alert-box" id="bkmrk-after-checking-wheth">After checking whether `syslogd2` already contains another configuration, you can use the example command block below:</div>`config log syslogd2 setting`  
`set status enable`  
`set server "panel.useroam.com"`  
`set port 514`  
`set format default`  
`end`

---

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

That's it — your FortiGate 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.