> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getprimo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Network stack hardening

> Harden the TCP/IP stack of Windows devices against SYN floods, source routing and redirects, and set the traffic exempt from IPsec.

The Network stack hardening control sets how the TCP/IP stack of your Windows devices resists network attacks: SYN flood protection, the SYN-ACK and data retransmissions, the keep-alive interval, dead gateway detection, router discovery, ICMP redirects, IPv4 and IPv6 source routing, NetBIOS name release requests, and the traffic exempt from IPsec.

## Platform compatibility

| macOS | Windows | Linux | iOS / iPadOS | Android |
| - | - | - | - | - |
| | ✅ | | | |

Runs on Windows devices with an x86\_64 or ARM64 processor. Some settings need Windows 10 2004, 20H2 or 21H1 with KB5005101, or a later release: see the settings below.

## Set up the control

**1. Add a configuration**

Go to **MDM** > **Controls**, open **Network stack hardening**, then click **Add configuration**.

**2. Configure the settings**

Set each setting you want to enforce. See the settings below. Configure at least one setting.

**3. Select targeting**

Choose which devices to apply the configuration to: all Windows devices, specific device groups, or a custom target. Click **Activate** to deploy the configuration. **Save** keeps it inactive.

A setting left empty or on **Not configured** isn't written: the PC keeps its own setting.

## Settings

| Section | Setting | Options |
| - | - | - |
| **TCP** | **SYN flood protection** | **On**, **Off**, **Not configured** |
| | **Dead gateway detection** | **On**, **Off**, **Not configured** |
| | **SYN-ACK retransmissions** | **None**, **1**, **2**, **3**, **Not configured** |
| | **IPv4 data retransmissions** | A whole number from 1 to 255 |
| | **IPv6 data retransmissions** | A whole number from 1 to 255 |
| | **Keep-alive interval** | **2.5 minutes**, **5 minutes**, **10 minutes**, **20 minutes**, **40 minutes**, **1 hour**, **2 hours**, **Not configured** |
| **Routing** | **Router discovery (IRDP)** | **On**, **Off**, **Not configured** |
| | **ICMP redirects override OSPF routes** | **On**, **Off**, **Not configured** |
| | **Ignore NetBIOS name release requests except from WINS servers** | **On**, **Off**, **Not configured** |
| | **IPv4 source routing protection** | **None: accept source-routed packets**, **Medium: ignore them when forwarding**, **Highest: drop every source-routed packet**, **Not configured** |
| | **IPv6 source routing protection** | Same options |
| **IPsec** | **IPsec driver default exemptions** | **Multicast, broadcast, RSVP, Kerberos and ISAKMP**, **Multicast, broadcast and ISAKMP**, **RSVP, Kerberos and ISAKMP**, **ISAKMP only**, **Not configured** |
| | **Firewall IPsec exemptions** | **These exemptions**, **Not configured** |

* **IPv4 data retransmissions** and **IPv6 data retransmissions**: the times an unacknowledged data segment is sent again before the connection drops. Windows sends it 5 times by default.
* **Firewall IPsec exemptions** set to **These exemptions** shows **Traffic exempt from IPsec**: check **Neighbor discovery**, **ICMP**, **Router discovery** or **DHCP**. Checked traffic skips IPsec. With nothing checked, no traffic is exempt.
* A configuration that sets **SYN flood protection**, **Dead gateway detection**, **SYN-ACK retransmissions**, **IPv4 data retransmissions**, **IPv6 data retransmissions**, **Keep-alive interval**, **Router discovery (IRDP)** or **IPsec driver default exemptions** is sent only to devices on Windows 10 2004, 20H2 or 21H1 with KB5005101, or a later release.

## How it works

Primo deploys a Windows configuration profile that writes one node per setting you set: the MSS (Legacy) policies of the Policy CSP (`ADMX_MSS-legacy` and `MSSLegacy`) for the TCP, routing and IPsec driver settings, and the Firewall CSP's global IPsec exemptions (`MdmStore/Global/IPsecExempt`) for **Firewall IPsec exemptions**.

When you remove the configuration, nothing stays managed. The TCP/IP values the MSS policies wrote are deleted, as on a clean PC, and Windows Defender Firewall goes back to its default IPsec exemptions, neighbor discovery and DHCP.

## Modify or remove the control

Open the control from **MDM > Controls** to edit, deactivate or replace a configuration.

## Related articles

* [Controls overview](https://docs.getprimo.com/mdm/policies/overview.md)
* [Firewall](https://docs.getprimo.com/mdm/policies/firewall.md)
* [Authentication protocols](https://docs.getprimo.com/mdm/policies/authentication-protocols.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.