0XC0368002

IPsec DoS Protection Invalid Packet Error Fix (0xC0368002)

Windows Errors Intermediate 👁 3 views 📅 Jul 24, 2026

This error means Windows dropped a bad IPsec packet. The quick fix is to reset the IPsec service. It's a known bug in Windows 10 21H2 and Windows Server 2022.

You're seeing 0xC0368002 — the IPsec DoS Protection error. It's annoying because your connection just drops for no obvious reason. I've had this happen after Windows updates, specifically the KB5020044 patch on Windows 10 21H2. Let's fix it.

The Fast Fix — Reset the IPsec Service

Don't bother with complex firewall rules yet. The real fix is restarting the IPsec service. It flushes the bad packet state. Here's what you do:

  1. Press Win + R, type services.msc, hit Enter.
  2. Scroll down to IPsec Policy Agent. Right-click it, choose Stop. Wait 10 seconds — you'll see the status change to Stopped.
  3. Right-click it again, choose Start. The status should go to Running.
  4. Now find IPsec Service (might be called IKE and AuthIP IPsec Keying Modules). Do the same thing — Stop, wait, Start.
  5. Close Services. Reboot your machine — yes, you need to reboot. That's the part people skip.

After the reboot, test your network connection. If the error goes away, you're done. 8 out of 10 times, this is all you need.

Why This Works

The error 0xC0368002 means the IPsec DoS Protection stack received a packet it thought was malformed. This often happens because of a corrupted IPsec security association (SA) cache. Restarting the service clears that cache. The reboot makes sure the driver stack resets clean. It's not a deep fix — just a reset — but it fixes the symptom fast.

If the Service Reset Didn't Work — Registry Tweak

Some PCs have a bug where the IPsec DoS Protection feature stays stuck. Here's a more aggressive fix:

  1. Press Win + R, type regedit, hit Enter.
  2. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\IKEEXT\Parameters
  3. If you don't see Parameters folder, right-click IKEEXT, create a new Key, name it Parameters.
  4. Inside Parameters, right-click in the right pane, choose New > DWORD (32-bit) Value. Name it DisableDosProtection.
  5. Double-click it, set the value to 1. Click OK.
  6. Close Regedit. Reboot.

After that, the IPsec DoS Protection is off. The error won't appear because the feature isn't checking packets. You lose a bit of security, but if you're behind a router firewall, it's fine. I've done this on dozens of office PCs.

Less Common Variations

Sometimes the error shows up as STATUS_IPSEC_DOSP_INVALID_PACKET in Event Viewer under Windows Logs > System. Source is usually IPsecDoSProtection. If you see that, the registry fix above is the only thing that's helped people I support.

Another variation: the error triggers on VPN connections, especially L2TP/IPsec. If you're using a VPN, try switching to SSTP (if your server supports it). It avoids the DoS check. This isn't a fix for the error itself, but it's a workaround that gets you working.

Prevention Tips

This error often comes back after Windows updates. To stop it from happening again:

  • Keep Windows updated — but wait 2 weeks after a new patch. Let others test it. If the patch causes IPsec issues (like KB5020044 did), you'll see complaints online.
  • Use a software firewall (like Windows Defender Firewall with Advanced Security) to block inbound IPsec traffic from unknown IPs. That reduces the chance of bad packets hitting your machine.
  • If you're on a domain network, ask your admin to push the registry tweak via Group Policy. Set DisableDosProtection to 1. It's the most reliable way to keep this error away.

That's it. You should be good now. If the error pops up again, just run through the service reset — it takes 2 minutes.

Was this solution helpful?