# AIWIFI SSID and CAPTIVE PORTAL creation manual. (FORTINET)

Source: https://help.aiwifi.io/hardware-setup-guides/aiwifi-ssid-and-captive-portal-creation-manual-fortinet

### Step 1: RADIUS Server and Group Configuration

First, we prepare the communication with the AIWIFI system.

1. Go to **User &amp; Device &gt; RADIUS Servers**

![image.png](https://cdn.eniston.com/bases/2b10a652-e62a-4286-82ba-15e5ad2656f5/attachments/1771602508_6998824c08230.png)

1. Click on **Create New**.
    
    
    - **Name:** `RADIUS_AIWIFI`
    - **Primary Server IP/FQDN:** (The IP provided by AIWIFI).
    - **Primary Service Secret:** (The AIWIFI shared secret).
    - **Authentication Method:** Select **PAP**.
2. Click **OK**.

![image.png](https://cdn.eniston.com/bases/2b10a652-e62a-4286-82ba-15e5ad2656f5/attachments/1771602524_6998825c10e1c.png)

1. Go to **User &amp; Device &gt; User Groups**.
2. Click on **Create New**.
    
    
    - **Name:** `GRUPO_AIWIFI_USUARIOS`
    - **Type:** **Firewall**
    - **Remote Groups:** Click **Add**, select the **RADIUS\_AIWIFI** server, and click **OK**.

![image.png](https://cdn.eniston.com/bases/2b10a652-e62a-4286-82ba-15e5ad2656f5/attachments/1771602548_6998827420f45.png)

---

### Step 2: Walled Garden Creation

1. Go to **Policy &amp; Objects &gt; Addresses**.
2. Click **Create New &gt; Address** for each of the following domains:
    
    
    - **Category:** Address.
    - **Type:** FQDN.
    - **FQDNs:**
        
        
        - `captive.aiwifi.io`
        - `storage1-prod-media.s3.us-east-2.amazonaws.com`
        - `api.aiwifi.io`
        - `connect.facebook.net`
        - `facebook.com`
        - `sentry.io`
        - `cloudfront.com`
        - `lr-ingest.io`
        - `doubleclick.net`
        - `fbsbx.com`

![image.png](https://cdn.eniston.com/bases/2b10a652-e62a-4286-82ba-15e5ad2656f5/attachments/1771602567_69988287e9a9d.png)

1. Go to **Policy &amp; Objects &gt; Address Groups**.
2. Click **Create New**.
    
    
    - **Name:** `WALLED_GARDEN_AIWIFI`
    - **Members:** Add all the FQDNs created above.
3. Click **OK**.

![image.png](https://cdn.eniston.com/bases/2b10a652-e62a-4286-82ba-15e5ad2656f5/attachments/1771602584_6998829898d35.png)

---

### Step 3: SSID (WiFi) Creation

We configure the wireless signal and link the previous steps.

1. Go to **WiFi &amp; Switch Controller &gt; SSIDs**.
2. Click **Create New &gt; SSID**.
    
    
    - **Interface Name:** `wifi_portal`
    - **IP/Network Mask:** `10.50.0.1/255.255.255.0`
    - **DHCP Server:** Enabled (Range `10.50.0.2` - `10.50.0.254`).
    - **DNS Server:** Select **Specify** and enter `8.8.8.8` and `8.8.4.4`.
3. Under the **Security Mode** section:
    
    
    - Select **Captive Portal**.
    - **Authentication Portal:** Select **External**.
    - **URL:** `http://captive.aiwifi.io`
    - **User Groups:** Select **GRUPO\_AIWIFI\_USUARIOS** (from Step 1).
    - **Exempt Destinations:** Select **WALLED\_GARDEN\_AIWIFI** (from Step 2).

![image.png](https://cdn.eniston.com/bases/2b10a652-e62a-4286-82ba-15e5ad2656f5/attachments/1771602609_699882b13f94e.png)

---

### Step 4: Access Point (FortiAP) Authorization

1. Go to **WiFi &amp; Switch Controller &gt; Managed FortiAPs**.
2. Find your Access Point in the list (it will appear with a waiting icon or in grey).
3. Right-click on the AP and select **Authorize**.
4. Wait for the status to change to **Online** (Green).

![image.png](https://cdn.eniston.com/bases/2b10a652-e62a-4286-82ba-15e5ad2656f5/attachments/1771602631_699882c7396cf.png)![image.png](https://cdn.eniston.com/bases/2b10a652-e62a-4286-82ba-15e5ad2656f5/attachments/1771602640_699882d00c307.png)

---

### Step 5: Firewall Policy Rule

1. Go to **Policy &amp; Objects &gt; IPv4 Policy**.
2. Click **Create New**.
    
    
    - **Name:** `Acceso_Internet_AiwiFi`
    - **Incoming Interface:** Select your SSID (`wifi_portal`).
    - **Outgoing Interface:** Your internet exit port (**WAN**).
    - **Source:** Click the **+** and add the **all** object.
    - Click again and add the **GRUPO\_AIWIFI\_USUARIOS** group.
    - **Destination:** **all**
    - **Service:** **ALL**
    - **Action:** **ACCEPT**
    - **NAT:** **ENABLED** (Ensure the toggle is green).
3. Click **OK**.

![image.png](https://cdn.eniston.com/bases/2b10a652-e62a-4286-82ba-15e5ad2656f5/attachments/1771602662_699882e650d71.png)

---

### Step 6: In case of SSL Certificate Errors

1. Go to **User &amp; Device &gt; Authentication Settings**.
2. Disable **HTTPS**.

\*NOTA IMPORTANTE: Si la compatibilidad de hardware no lo permite, desactivar USER GROUPS
