# How to Enable Dynamic Join/Leave > [!NOTE] > **WHAT TO EXPECT** > > In this article, users will learn how to enable and disable dynamic join/leave for groundSwXtches and how to set allow/block rules for multicast joins and leaves. This page is organized into the following functions: - [Enable Dynamic Join/Leave](#enable-dynamic-joinleave) - [Disable Dynamic Join/Leave](#disable-dynamic-joinleave) - [Participate in Dynamic Multicast](#participate-in-dynamic-multicast) - [Add Allow/Block Rules](#add-allowblock-rules) - [Edit an Allow/Block Rule](#edit-an-allowblock-rule) - [Allow/Block Rule Priority](#allowblock-rule-priority) - [Delete an Allow/Block Rule](#delete-an-allowblock-rule) For information on static vs. dynamic, refer to [Using groundSwXtch User Interface - What is Static vs Dynamic?](using-groundswxtch-user-interface.md#what-is-static-vs-dynamic). Dynamic is off by default on every node. The allow/block rules only govern automatic joins, not routes added manually with **Add Source** or **Add Destination**. ## Enable Dynamic Join/Leave To enable Dynamic join/leave: 1. Select the **⇄ Dynamic join/leave** button. ![Dynamic join/leave button highlighted on the left of the map, with the Dynamic On and Rules summary below it](../assets/document360/fb2512a795-image-441.png) 2. The side panel opens to enable Dynamic Multicast IGMP joins and leaves. 3. Select two or more groundSwXtches. Use **Select visible** to pick all visible groundSwXtches. To clear the selection, select **Clear visible**. To enable a single groundSwXtch, see [Participate in Dynamic Multicast](#participate-in-dynamic-multicast). ![GROUNDSWXTCHES list of the Dynamic join/leave drawer, with name filter, state and sort drop-downs, Select visible, Clear visible and a check box per groundSwXtch](../assets/document360/8467c96577-image-404.png) 4. Select **Enable all selected** to enable all the selected groundSwXtches. With several groundSwXtches selected, only the catch-all rule (the last rule, for every group that no other rule matches) can be set for all of them: **Allow all selected** or **Block all selected**. The other rules and their order are set one groundSwXtch at a time (see [Add Allow/Block Rules](#add-allowblock-rules)). Rules are checked top to bottom and the first match wins. ![Dynamic join/leave drawer with all groundSwXtches selected and Enable all selected highlighted, next to the highlighted Dynamic join/leave button and the Apply button](../assets/document360/06d9d7634f-image-405.png) 5. Select **Apply**. The map shows **Dynamic On** under each enabled groundSwXtch. ![groundSwXtch on the map labelled Dynamic On](../assets/document360/fba8793d5a-image-407.png) ### Confirmation Prompts - **The first time Dynamic is turned on for a node,** the user chooses the default for streams that no rule covers: **Allow all** or **Block all**. Block rules for UPnP/SSDP, mDNS and LLMNR (local-network device-discovery traffic) are also offered; they are pre-checked and recommended. - **If another querier is already on the local network,** a warning says that turning Dynamic on will compete with it or take over from it. A querier is the device that asks local devices which streams they want. - **If a new block rule would stop streams that are flowing now,** the **Block active multicast?** prompt lists those streams before they are cut off. ## Disable Dynamic Join/Leave To disable Dynamic join/leave: 1. Select the **⇄ Dynamic join/leave** button. The side panel opens to disable Dynamic Multicast IGMP joins and leaves. 2. Select two or more groundSwXtches. Use **Select visible** to pick all visible groundSwXtches. To clear the selection, select **Clear visible**. To disable a single groundSwXtch, see [Participate in Dynamic Multicast](#participate-in-dynamic-multicast). ![GROUNDSWXTCHES list of the Dynamic join/leave drawer, with name filter, state and sort drop-downs, Select visible, Clear visible and a check box per groundSwXtch](../assets/document360/8467c96577-image-404.png) 3. Select **Disable all selected**. ![Dynamic join/leave drawer with all groundSwXtches selected and Disable all selected highlighted, with the Apply button highlighted](../assets/document360/204259d0c4-image-408.png) 4. Select **Apply**. The map shows **Dynamic Off** under each disabled groundSwXtch. ## Participate in Dynamic Multicast This section only applies when a single groundSwXtch is selected. 1. Select or deselect groundSwXtches until only one is selected, as shown below: ![GROUNDSWXTCHES list showing 1 of 6 groundswxtches selected, with only one groundSwXtch checked](../assets/document360/c3101652ce-image-439.png) 2. Turn on the **Participate in Dynamic multicast** switch (or turn it off to disable). ![Dynamic join/leave drawer for one groundSwXtch with the Participate in Dynamic multicast switch on and the Apply button highlighted](../assets/document360/3f93b4bd61-image-445.png) 3. Select **Apply**. ### Add Allow/Block Rules Individual groundSwXtches can have more rules to allow or block multicast traffic. Some rules are set automatically, as shown below. ![ALLOW/BLOCK POLICY of one groundSwXtch: Block rules for UPnP/SSDP, mDNS and LLMNR above the Allow Any multicast group fallback](../assets/document360/b6e1488591-image-409.png) To add more allow/block rules: 1. Select the **Add Rule** icon. The side panel expands to enter the rule. ![Add rule form: Known use, Action, Match form, Address / range and Label, with Cancel and Add rule](../assets/document360/5e49080d16-image-410.png) 2. Select the **Known Use** drop-down to pick the type. Choosing one of the common discovery protocols (UPnP/SSDP, mDNS or LLMNR) fills in its address. **Custom IP / CIDR / range** lets the user enter an address. The remaining steps are for Custom IP / CIDR / range. ![Known use drop-down open with Custom IP / CIDR / range, UPnP / SSDP, mDNS and LLMNR](../assets/document360/a17616d465-image-412.png) 3. Select the action: **Allow** or **Block**. Allow lets this node join matching streams when devices ask for them. Block prevents it. 4. Select the **Match Form**: **Single IP** for one group, **CIDR** for a block of groups (e.g. `239.1.1.0/24`), or **IP range** for a start and end address. ![Match form drop-down open with Single IP, CIDR and IP range](../assets/document360/964be8d43b-image-413.png) 5. Enter the **Address/Range** in the format of the selected **Match Form** (**Single IP**, **CIDR**, **IP range**). The formats are below: ![Add rule form with Match form IP range, the Address / range 239.0.0.0-239.0.0.99 and the Add rule button highlighted](../assets/document360/3de8bbba00-image-421.png) A range has to be written with a **hyphen** between two full addresses, for example `239.0.0.1-239.0.0.99`. A slash is only for CIDR notation. #### Accepted Formats | Match form | Format | Example | | --- | --- | --- | | Single IP | one address | `239.0.0.1` | | IP range | full start address, hyphen, full end address | `239.0.0.1-239.0.0.99` | | CIDR | address, slash, number from 0 to 32 | `239.0.0.0/24` (covers 239.0.0.0–239.0.0.255) | Every address must be a multicast address (224.x.x.x to 239.x.x.x), and the start of a range can't be higher than the end. Spaces around the hyphen are fine. A rule that doesn't meet these conditions is rejected when **Apply** is selected: the side panel shows **Saved with rule rejections** with the reason, and the rejected rule isn't stored. 6. Enter a label. The label is a display name that fills itself in (for example, "allow - 239.0.0.1") until the user types one; it doesn't affect which streams match. 7. Select **Add rule**. The new rule is added just above the catch-all rule. To change its place, see [Allow/Block Rule Priority](#allowblock-rule-priority). 8. Select **Apply**. The rule is not added until **Apply** is selected at the bottom of the form. ![Rules list with the new Allow rule highlighted above the fallback and the note Allow/block changes are not applied](../assets/document360/87dd64429d-image-415.png) ### Edit an Allow/Block Rule A rule can be edited after it is added. To edit an allow/block rule: 1. Select the **Edit Rule** icon. ![Rules list with the edit (pencil) button of a rule highlighted](../assets/document360/efd9c0b499-image-417.png) 2. Change what is needed. 3. Select **Save changes**. ![Rule edit form with the Save changes button highlighted](../assets/document360/f4f9609f36-image-418.png) ### Allow/Block Rule Priority Change the order of the rules to set their priority. ![Rules list with the up and down arrows used to reorder rules highlighted](../assets/document360/79b00c123b-image-419.png) #### How the Arrows Behave - **↑** moves a rule one place up, giving it higher priority. It's grayed out on the top rule. - **↓** moves a rule one place down. It's grayed out on the last rule above the catch-all, because nothing can go below the catch-all. - **The catch-all** ("Any multicast group", with the 🔒) has no arrows. It's always last and only handles requests that no other rule matched. - **The ⠿ handle** on the left does the same thing as the arrows, by dragging. - **Apply:** a reorder isn't saved until **Apply** is selected. Order matters when rules overlap. For example, with these two rules: 1. **Allow** `239.1.1.0/24` (all groups from 239.1.1.0 to 239.1.1.255) 2. **Block** `239.1.1.5` (one group inside that range) With Allow on top, a request for 239.1.1.5 matches the Allow rule first and gets through, so the Block rule never takes effect. Moving the Block rule **up** above the Allow rule blocks 239.1.1.5 while still allowing the rest of the range. The rule of thumb is to put specific rules (single addresses and exceptions) above broad ones (CIDR blocks and ranges). ### Delete an Allow/Block Rule A rule can be deleted if it no longer applies. To delete an allow/block rule: 1. Select the **Delete Rule** icon. ![Rules list with the delete (×) button of a rule highlighted](../assets/document360/bce35ec6f4-image-420.png) 2. Select **Apply**. The rule isn't deleted until **Apply** is selected at the bottom of the form.