{"article":{"id":16750417515159,"url":"https://ubnt.zendesk.com/api/v2/help_center/en-us/articles/16750417515159.json","html_url":"https://help.ui.com/hc/en-us/articles/16750417515159-UniFi-Gateway-Setting-Up-SD-WAN-with-UniFi-Site-Manager-and-Fabrics","author_id":11576377939095,"comments_disabled":false,"draft":false,"promoted":false,"position":0,"vote_sum":165,"vote_count":511,"upvote_count":338,"downvote_count":173,"section_id":27826487543447,"created_at":"2023-08-14T14:33:54Z","updated_at":"2026-11-28T12:32:03Z","name":"UniFi Gateway - Setting Up SD-WAN with UniFi Site Manager and Fabrics","title":"UniFi Gateway - Setting Up SD-WAN with UniFi Site Manager and Fabrics","source_locale":"en-us","locale":"en-us","outdated":false,"outdated_locales":[],"edited_at":"2026-11-23T05:08:01Z","user_segment_id":null,"user_segment_ids":[],"permission_group_id":4235054,"content_tag_ids":[],"label_names":["bot"],"body":"<p>UniFi SD-WAN simplifies the setup of Site-to-Site VPN tunnels between UniFi Gateways, enabling seamless resource and application sharing across multiple sites.</p><h2 id=\"h_01JF7TT0HD04YHMGQ7BT7Q74T3\">Comparing Topologies</h2><p>SD-WAN supports both Hub-and-Spoke and Mesh topologies. The table below highlights the key differences between these configurations.</p><figure class=\"wysiwyg-table wysiwyg-table-align-left\" style=\"width: 100%;\"><table style=\"border-collapse: collapse;\"><tbody>\n<tr>\n<td style=\"width: 33.3333%;\"> </td>\n<td style=\"text-align: center; width: 33.3333%;\">\n<p><strong>Hub &amp; Spoke</strong></p>\n<p><img src=\"https://help.ui.com/hc/article_attachments/28561500130327\" width=\"127\" height=\"115\"></p>\n</td>\n<td style=\"text-align: center; width: 33.3333%;\">\n<p><strong>Mesh</strong></p>\n<p><img src=\"https://help.ui.com/hc/article_attachments/28561470770967\" width=\"122\" height=\"111\"></p>\n</td>\n</tr>\n<tr>\n<td style=\"width: 33.3333%;\"><strong>Description</strong></td>\n<td style=\"width: 33.3333%;\">Centralized architecture where all branch sites connect through a central hub or multiple hubs.</td>\n<td style=\"width: 33.3333%;\">Decentralized architecture where all branch sites connect directly to one another.</td>\n</tr>\n<tr>\n<td style=\"width: 33.3333%;\"><strong>Best Use-Cases</strong></td>\n<td style=\"width: 33.3333%;\">Ideal for organizations with centralized data centers or resources and those needing IP-based whitelisting for cloud access.</td>\n<td style=\"width: 33.3333%;\">Suited for organizations with distributed resources that require direct sharing between all locations.</td>\n</tr>\n<tr>\n<td style=\"width: 33.3333%;\"><strong>Scalability</strong></td>\n<td style=\"width: 33.3333%;\">Supports up to <strong>1,000 tunnels</strong>.</td>\n<td style=\"width: 33.3333%;\">Supports up to <strong>20 sites</strong>.</td>\n</tr>\n<tr>\n<td style=\"width: 33.3333%;\"><strong>Security</strong></td>\n<td style=\"width: 33.3333%;\">Centralized traffic management at hubs with isolation options.</td>\n<td style=\"width: 33.3333%;\">Direct traffic flow between sites; requires individual firewall rules at each site.</td>\n</tr>\n<tr>\n<td style=\"width: 33.3333%;\"><strong>Redundancy</strong></td>\n<td style=\"width: 33.3333%;\">Each spoke supports up to <strong>4 active VPN tunnels</strong> with the hub; failover hubs can be added for even more redundancy.</td>\n<td style=\"width: 33.3333%;\">Each site has only <strong>one active tunnel</strong> per connection. Failover tunnels require time to re-establish during Internet outages.</td>\n</tr>\n<tr>\n<td style=\"width: 33.3333%;\"><strong>Flexibility</strong></td>\n<td style=\"width: 33.3333%;\">Highly customizable with features like NAT for overlapping subnets, custom routing advertisements, and load balancing across hubs.</td>\n<td style=\"width: 33.3333%;\">Limited customization; NAT is unsupported, meaning overlapping subnets cannot exist within an SD-WAN group.</td>\n</tr>\n</tbody></table></figure><h2 id=\"h_01JF7V4ADQDEJP3MBETVGAM8ND\">Hub &amp; Spoke</h2><h3 id=\"h_01JF7V4ADQ7S6GRYXFB9369CZN\">Requirements</h3><ul>\n<li data-list-item-id=\"e2b63453bc486f94a24cf8fd445e87d0c\">\n<strong>Hub:</strong> At least one device with a public IP address:<ul>\n<li data-list-item-id=\"e10bda9e3c894c6624450bdef45fe7142\">\n<strong>Cloud Gateways:</strong> EF Core, UDM Beast, EFG, UDM Pro Max, UDM SE, UDM Pro, UCG Fiber, UCG Industrial, or UDW.</li>\n<li data-list-item-id=\"ead1e675a7cbc2b71bbf10f83b4f4f083\">\n<strong>Independent Gateways:</strong> UXG-Fiber, UXG-Enterprise, or UXG-Pro managed with a CloudKey, UniFi OS Server or Official UniFi Hosting.</li>\n</ul>\n</li>\n<li data-list-item-id=\"e1fb6bb216e593e3b196649fa4bede8d2\">\n<strong>Spoke:</strong> Most <a href=\"https://store.ui.com/us/en?category=all-unifi-cloud-gateways\">Cloud Gateways</a> (excluding Express) or <a href=\"https://store.ui.com/us/en?category=all-cloud-keys-gateways\">Independent Gateway managed with a CloudKey, UniFI OS Server, or Official UniFi Hosting</a>.</li>\n<li data-list-item-id=\"e526859bd7c0ba032bc33e0f8c0d4562e\">All hubs and spokes must share the same <strong>UI Account Owner </strong>or managed within the same <strong>Fabric</strong> by <strong>Fabric Admins</strong>.</li>\n<li data-list-item-id=\"e41378c209fa4ebe84654f5fdb6c3284b\">UniFi Network Application version 9.0.108 or newer.</li>\n<li data-list-item-id=\"eac75679cf65839b5d677c7a865e024aa\">UniFi (Cloud) Gateway version 4.1.3 or newer.</li>\n</ul><h3 id=\"h_01JF7V6KQJS03DJ6H0PV6D65VZ\">Configuring Hub &amp; Spoke</h3><ol>\n<li data-list-item-id=\"ec572d4bac165e42634d141c90232cdfc\">Navigate to <strong>Settings &gt; SD-WAN </strong>on the <a href=\"https://unifi.ui.com\">UniFi Site Manager</a>.</li>\n<li data-list-item-id=\"ee7396010cd016c5467fc5c64f1059e32\">\n<strong>Select</strong> Hub &amp; Spoke as the deployment type and name the SD-WAN group.</li>\n<li data-list-item-id=\"e7447ee431fd4b299cf7824c3397fb725\">\n<strong>Choose</strong> the <strong>Hub Topology</strong>:<ol>\n<li data-list-item-id=\"e57b57eeb249dc4e58c7c32f8006bdfc1\">\n<strong>Single:</strong> All spokes connect to the same central hub.</li>\n<li data-list-item-id=\"ee5e3129be9bce9ac9bea7bba73e167aa\">\n<strong>Failover:</strong> All spokes connect to the same central hub with failover to a backup hub (up to two backup hubs per SD-WAN.</li>\n<li data-list-item-id=\"ed075e20306492bc3b3bf62e16d8771e0\">\n<strong>Custom:</strong> Manually specify which hub each spoke connects to. More than two backup hubs can be added with this topology.</li>\n</ol>\n</li>\n<li data-list-item-id=\"eb29f124a908b776a68ab282803337a4d\">\n<strong>Select</strong> the <strong>Spoke-to-Hub VPN Architecture</strong>:<ol>\n<li data-list-item-id=\"e350d78a0ea38ea63bea186e67128ee33\">\n<strong>Max Resiliency:</strong> Up to 4 simultaneous VPN tunnels (independent tunnels between each Hub and Spoke WAN). No interruptions during failover.</li>\n<li data-list-item-id=\"e54a9e159a0c89385e5e54e1b5ecea3ff\">\n<strong>Redundant:</strong> Supports up to 2 simultaneous VPN tunnels (each Spokes’ Primary and Secondary WAN connects to the Hub Primary, and Secondary, respectively). There will not be any interruptions during failover events.</li>\n<li data-list-item-id=\"ebea86502852072f5d3c47e24a962d467\">\n<strong>Scalable:</strong> One tunnel per spoke. Temporary interruption during failover.</li>\n</ol>\n</li>\n<li data-list-item-id=\"e2a0dfcc7717b8a69042778245fa6dbdc\">Add <strong>Networks</strong> and/or <strong>Routes</strong> to each hub:<ol>\n<li data-list-item-id=\"e1879f0b17fff716ce657383d9c41705f\">\n<strong>Networks:</strong> Automatically advertise routes for the specified networks.</li>\n<li data-list-item-id=\"e439668534ebcee3f342393ef15802543\">\n<strong>Routes:</strong> Share non-local subnets (e.g., other Site-to-Site VPN connections) or manually define summary routes.</li>\n</ol>\n</li>\n<li data-list-item-id=\"ee185be43edb06593aa83be08cd3f3612\">Assign the <strong>Primary VPN WAN</strong> and (optional) <strong>WAN Failover</strong> for each hub.</li>\n<li data-list-item-id=\"e4d237639702526934ec1fd9d545a071d\">Configure Spoke Networks and WANs:<ol>\n<li data-list-item-id=\"ebb412d9cefffae4d16a3e2b812ff6d90\">\n<strong>Auto-Scale and NAT Spoke VPNs:</strong> Enable when spokes have overlapping subnets. This automatically creates a Source NAT rule to translate traffic from a spoke into a unique /24 subnet before routing it to the hub. When enabled, sessions can <strong>only be initiated by the spoke</strong>. See Overlapping Subnets and NAT below to learn more.<ol><li data-list-item-id=\"e0058b842bee3aa7bd1b875dfa1d30aa5\">If disabled, select the Networks you want to share with the Hub.</li></ol>\n</li>\n<li data-list-item-id=\"e1ee8e970ef1fa31da274cb6839b0afe9\">\n<strong>Isolate Spokes: </strong>Blocks all traffic between spokes by auto-generating Firewall rules on the hub. Disable this option and Auto-Scale if spokes need to communicate with each other.<ol><li class=\"ck-list-marker-italic\" data-list-item-id=\"e418ad01833db36206861bab213a24f3f\">\n<em><strong>Note: </strong>This requires Zone-Based Firewalling to be available on your gateway. View more details </em><a href=\"https://help.ui.com/hc/en-us/articles/28223082254743\"><em>here</em></a><em>.</em>\n</li></ol>\n</li>\n<li data-list-item-id=\"e09a1455e6c98e74fdd52a77c643bc092\">\n<strong>Standardize WAN Settings:</strong> Makes it so all Spokes use the same WAN interface as the Primary or Failover VPN interface.</li>\n<li data-list-item-id=\"e423aaea33454dd2ebebf67aadcc0b6bf\">Specify the <strong>Primary VPN WAN</strong> and the <strong>WAN Failover</strong> for each hub.</li>\n</ol>\n</li>\n</ol><h3 id=\"h_01JF7W0PB3170S9ZB3DPCPAXDQ\">Overlapping Subnets and NAT Configuration</h3><p>Overlapping subnets typically prevent communication because traffic cannot be differentiated by origin or destination. <strong>Auto-Scale and NAT Spoke VPNs</strong> solves this by automatically applying a <strong>Source NAT</strong> rule, translating traffic to appear as if it originates from a unique, non-overlapping subnet. By default, this enables <strong>one-way communication from the spoke to the hub</strong>, allowing clients on a spoke to access hub resources, download files, or proxy to cloud resources. However, spoke resources <strong>will not be sharable</strong> unless you manually configure a <strong>Destination NAT rule on the spoke</strong>.</p><p>As an example, consider a spoke assigned the 172.16.1.0/24 route with <strong>Auto-Scale and NAT Spoke VPNs</strong> enabled, and a server at 192.168.50.5 on the local 192.168.50.0/24 subnet. You can make it accessible with the following DNAT rule <strong>applied to the Spoke</strong>: </p><ul>\n<li data-list-item-id=\"eb76670c5e3101fce6566306df0801890\">\n<strong>Name: </strong>DNAT from Hub-and-Spoke to LAN</li>\n<li data-list-item-id=\"ea136ecbd71102658e926040373f54dc6\">\n<strong>Protocol: </strong>All</li>\n<li data-list-item-id=\"e657388e028ccdbc2dd8c4cac8b83ab9a\">\n<strong>Interface: </strong>SD-WAN VPN Tunnel</li>\n<li data-list-item-id=\"ee3fab60b71939ca144db40a8cd377bf1\">\n<strong>Destination: </strong>172.16.1.5</li>\n<li data-list-item-id=\"ee9c8bfdc7168912f3ed8de16e58cfa0c\">\n<strong>Translated IP Address: </strong>192.168.50.5</li>\n</ul><p>A similar rule must be created for each resource on the spoke that needs to be accessible. If you need to expose a large number of local resources, we recommend designing subnets to avoid overlap. View instructions <a href=\"https://help.ui.com/hc/en-us/articles/16602606163991\">here</a>.</p><p>To learn more about NAT rules, visit <a href=\"https://help.ui.com/hc/en-us/articles/16437942532759\">Network Address Translation</a>.</p><h3 id=\"h_01JF7Y5EYSBQFDXHHK0X0517XT\">Hub VPN Tunnel Capacity</h3><div class=\"collapsible\">\n<div class=\"collapsible--header\">Click to view a list of VPN tunnel capacity by model.</div>\n<div class=\"collapsible--body\"><figure class=\"wysiwyg-table wysiwyg-table-align-left\" style=\"width: 100%;\"><table style=\"border-collapse: collapse;\"><tbody>\n<tr>\n<td style=\"width: 50%;\">Model</td>\n<td style=\"width: 50%;\">SD-WAN VPN Tunnels</td>\n</tr>\n<tr>\n<td>Enterprise Firewall Core (EF Core)</td>\n<td>1,000</td>\n</tr>\n<tr>\n<td style=\"width: 50%;\">Enterprise Fortress Gateway (EFG)</td>\n<td style=\"width: 50%;\">1,000</td>\n</tr>\n<tr>\n<td style=\"width: 50%;\">Gateway Enterprise (UXG Enterprise)</td>\n<td style=\"width: 50%;\">1,000</td>\n</tr>\n<tr>\n<td>Dream Machine Beast (UDM Beast)</td>\n<td>200</td>\n</tr>\n<tr>\n<td style=\"width: 50%;\">Dream Machine Pro Max (UDM Pro Max)</td>\n<td style=\"width: 50%;\">200</td>\n</tr>\n<tr>\n<td style=\"width: 50%;\">Dream Machine Special Edition (UDM SE)</td>\n<td style=\"width: 50%;\">100</td>\n</tr>\n<tr>\n<td style=\"width: 50%;\">Dream Machine Pro (UDM Pro)</td>\n<td style=\"width: 50%;\">100</td>\n</tr>\n<tr>\n<td>Cloud Gateway Fiber (UCG Fiber)</td>\n<td>100</td>\n</tr>\n<tr>\n<td>Cloud Gateway Industrial (UCG Industrial)</td>\n<td>100</td>\n</tr>\n<tr>\n<td style=\"width: 50%;\">Dream Wall (UDW)</td>\n<td style=\"width: 50%;\">100</td>\n</tr>\n<tr>\n<td style=\"width: 50%;\">Gateway Pro (UXG Pro)</td>\n<td style=\"width: 50%;\">100</td>\n</tr>\n</tbody></table></figure></div>\n</div><h2 id=\"h_01JF7WB2PFAWK5X56DMXXYR539\">Mesh</h2><h3 id=\"h_01JF7WB71Y27TNJKDJJ1MMR3CY\">Requirements</h3><ul>\n<li data-list-item-id=\"ec6d7d22d42067aae47da33b0dda5eaa7\">Any <a href=\"https://store.ui.com/us/en?category=all-unifi-cloud-gateways\">Cloud Gateway</a> or <a href=\"https://store.ui.com/us/en?category=all-cloud-keys-gateways\">Independent Gateway managed with a CloudKey, UniFi OS Server, or Official UniFi Hosting</a>.</li>\n<li data-list-item-id=\"e5849e681b1a31a96030627e890a9b89e\">At least one gateway must have a public IP address.</li>\n<li data-list-item-id=\"e52b6f15dc31ff2c0b775288a87c65329\">All participating gateways <strong>must </strong>have the same UI Account Owner</li>\n</ul><h2 id=\"01H7ZCZ1D3J1QQHVRV5164CA70\">Configuring Mesh</h2><ol>\n<li data-list-item-id=\"e83bccb73717fa47f5bc48defe706dcff\">Navigate to <strong>Settings &gt; SD-WAN </strong>on the <a href=\"https://unifi.ui.com\">UniFi Site Manager</a>.</li>\n<li data-list-item-id=\"e6d8618988f7e54240feb22c54c260a44\">\n<strong>Select</strong> Mesh as the deployment type and name the SD-WAN group.</li>\n<li data-list-item-id=\"e8a294b6323ad01a5512f12ee42bb348f\">\n<strong>Choose </strong>up to 20 site to be a part of the mesh connection.</li>\n<li data-list-item-id=\"eb299b6f90256c913ce34f42b6fcb4a5f\">Select the networks from each site that will be shared.<ol><li data-list-item-id=\"e7843b5fc8304df6d71b4ce22c44cef41\">If networks have overlapping subnets, follow the instructions <a href=\"https://help.ui.com/hc/en-us/articles/16602606163991\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.</li></ol>\n</li>\n<li data-list-item-id=\"e67dfe24f66cf5e6c250b55d4d50f83cd\">Click <strong>Connect</strong>.</li>\n</ol><h2 id=\"01H7ZE9V4HWRX5GRR54PNBXGME\">Frequently Asked Questions</h2><div class=\"collapsible\">\n<div class=\"collapsible--header\">Can I use SD-WAN to connect with third-party gateways or cloud providers (AWS, Azure, GCP)?</div>\n<div class=\"collapsible--body\">Although SD-WAN is a dedicated solution for connecting UniFi Gateways, we support <a href=\"https://help.ui.com/hc/en-us/articles/12646699585047\" target=\"_blank\" rel=\"noopener noreferrer\">OpenVPN</a> and <a href=\"https://help.ui.com/hc/en-us/articles/360002426234\" target=\"_blank\" rel=\"noopener noreferrer\">IPsec</a> for interoperability with other third-party gateways and cloud providers.</div>\n</div><div class=\"collapsible\">\n<div class=\"collapsible--header\">Can I add more admins to manage SD-WAN settings?</div>\n<div class=\"collapsible--body\">No, SD-WAN can only be managed by the <strong>Owner</strong>.</div>\n</div><div class=\"collapsible\">\n<div class=\"collapsible--header\">Is IPv6 supported?</div>\n<div class=\"collapsible--body\">Not yet. We plan to add support in a future release.</div>\n</div><div class=\"collapsible\">\n<div class=\"collapsible--header\">Is the USG family supported?</div>\n<div class=\"collapsible--body\">No, legacy USG models are not supported.</div>\n</div><div class=\"collapsible\">\n<div class=\"collapsible--header\">How can I maximize performance for the Mesh deployment?</div>\n<div class=\"collapsible--body\">If more gateways have public IPs, the network will be more resilient, and the additional routes between gateways should help with performance.</div>\n</div><div class=\"collapsible\">\n<div class=\"collapsible--header\">Are there any site limitations for the Mesh deployment?</div>\n<div class=\"collapsible--body\">There is a limit of 20 sites for the Mesh topology. </div>\n</div><div class=\"collapsible\">\n<div class=\"collapsible--header\">Will SD-WAN connections drop during cloud issues?</div>\n<div class=\"collapsible--body\">SD-WAN will not drop during a cloud issue. However, you won’t be able to update the configuration if, for example, there is a WAN/LAN change. This requires the Cloud to be available.</div>\n</div><div class=\"collapsible\">\n<div class=\"collapsible--header\">Will SD-WAN VPN work even if a Gateway's WAN IP Address changes?</div>\n<div class=\"collapsible--body\">Yes. If a gateway changes its WAN IP Address, the new IP address will be automatically updated on the other gateways, and SD-WAN will stay connected. This is true for both gateways with public IPs and gateways behind NAT.</div>\n</div><div class=\"collapsible\">\n<div class=\"collapsible--header\">What happens if there's an ownership transfer?</div>\n<div class=\"collapsible--body\">All participating consoles must have the same admin. If an ownership transfer is initiated on a console that is part of a SD-WAN Group, the connections to that site will automatically close while the other sites will remain up and running.</div>\n</div><div class=\"collapsible\">\n<div class=\"collapsible--header\">Why are some remote networks unreachable over my active SD-WAN connection?</div>\n<div class=\"collapsible--body\">SD-WAN uses OSPF to exchange selected network routes between UniFi gateways. The VPN tunnel may remain active even if OSPF traffic is blocked, preventing the gateways from forming an OSPF adjacency and exchanging routes. Often this is caused by custom firewall rules, especially VPN to Gateway rules that may block OSPF traffic from the VPN tunnel to the gateway and prevent remote routes from being installed.</div>\n</div><div id=\"articles-to-feature\">\n<a href=\"https://help.ui.com/hc/en-us/articles/16602606163991\">Changing a Virtual Network Subnet</a> <a href=\"https://help.ui.com/hc/en-us/articles/12646699585047\">Site-to-Site OpenVPN</a> <a href=\"https://help.ui.com/hc/en-us/articles/360002426234\">Site-to-Site IPsec VPN</a>\n</div>"}}