# UniFi Dream Router Setup Guide

This guide will help you set up your UniFi Dream Router (UDR) with the following features:

- **Two SSIDs**: Home and Guest
- **Three VLANs**: Home, Guest, and IoT
- **PPSK (Private Pre-Shared Key)**: Different keys for Home and IoT networks
- **Firewall Rules**: Optimized for streaming and gaming

### Prerequisites

1. **UniFi Dream Router**: Ensure your UDR is plugged in and powered on.
2. **UniFi Controller Software**: Accessible through the UniFi Network App on your smartphone or through the web interface.
3. **Basic Network Setup**: An existing internet connection and basic network configuration.

### Step-by-Step Setup

#### Step 1: Access UniFi Controller

1. Connect to the UDR using the UniFi Network App or through a web browser at `https://<UDR-IP>:8443`.
2. Log in with your UniFi account credentials.

#### Step 2: Adopt and Configure the UDR

1. In the **Devices** section, ensure the UDR is listed and click **Adopt** if necessary.
2. Wait for the UDR to show as "Connected."

#### Step 3: Create VLANs

1. Go to **Settings** &gt; **Networks**.
2. Click **Create New Network**.

**Home VLAN**

- **Name**: Home
- **Purpose**: Corporate
- **VLAN ID**: 10
- **Gateway/Subnet**: 192.168.10.1/24

**Guest VLAN**

- **Name**: Guest
- **Purpose**: Guest
- **VLAN ID**: 20
- **Gateway/Subnet**: 192.168.20.1/24

**IoT VLAN**

- **Name**: IoT
- **Purpose**: Corporate
- **VLAN ID**: 30
- **Gateway/Subnet**: 192.168.30.1/24

#### Step 4: Create Wireless Networks (SSIDs)

1. Go to **Settings** &gt; **WiFi** &gt; **Add New WiFi Network**.

**Home SSID**

- **SSID Name**: Home
- **Security**: WPA Personal
- **VLAN**: Use VLAN 10
- **PPSK**: Enable PPSK and configure keys for Home and IoT VLANs.

**Guest SSID**

- **SSID Name**: Guest
- **Security**: WPA Personal
- **VLAN**: Use VLAN 20

#### Step 5: Configure PPSK for Home SSID

1. Under the **WiFi** settings, select **Home SSID**.
2. In the **Security** section, enable **PPSK**.
3. Create multiple PPSKs: 
    - **Home Access Key**: Associate with VLAN 10.
    - **IoT Access Key**: Associate with VLAN 30.

#### Step 6: Configure Firewall Rules for Streaming and Gaming

1. Navigate to **Settings** &gt; **Firewall &amp; Security** &gt; **Firewall Rules**.
2. Click **Create New Rule** and configure the following rules:

**Streaming Optimization**

- **Name**: Allow Streaming Services
- **Rule Type**: LAN IN
- **Action**: Accept
- **Source**: Any (or specify devices/networks)
- **Destination**: IP ranges for popular streaming services (e.g., Netflix, Hulu, etc.)
- **Description**: Optimize streaming by prioritizing traffic.

**Gaming Optimization**

- **Name**: Allow Gaming Services
- **Rule Type**: LAN IN
- **Action**: Accept
- **Source**: Any (or specify gaming devices)
- **Destination**: IP ranges for popular gaming servers (e.g., Xbox Live, PlayStation Network, etc.)
- **Description**: Optimize gaming by reducing latency.

3. Ensure these rules are above any default deny rules to take effect.

#### Step 7: Apply Settings and Test

1. Review all your settings and apply the changes.
2. Test each SSID: 
    - Connect home devices to the Home SSID.
    - Connect IoT devices using the designated PPSK for the IoT VLAN.
    - Connect guest devices to the Guest SSID to ensure isolation.
3. Test streaming and gaming devices to confirm optimized performance.

### Additional Tips

- **Regular Updates**: Keep your UDR firmware up-to-date for security and performance improvements.
- **Monitoring**: Use the UniFi Controller to monitor network traffic and performance metrics.
- **Support**: For assistance, visit the UniFi support forums or consult official documentation.

[https://ui.com/uk/en/cloud-gateways/wifi-integrated/dream-router](https://ui.com/uk/en/cloud-gateways/wifi-integrated/dream-router)