Windows Server memory overflows with SecureNAT

Author: shemeckCreated Jun 22, 2022Updated Aug 6, 2026

Prerequisites

  • [ yes ] Can you reproduce?
  • [ yes ] Are you running the latest version of SoftEtherVPN?

SoftEther version: 4.38 - 4.39 Component: [Server - Secure NAT.] Operating system: [Windows and Linux] Architecture: [64 bit]

[In case it's a computer with known specs, such as the Raspberry Pi, you can specify it omitting the details.] Processor: [Xeon]

Description

We are using newest version SoftEther Server and made virtual hub for about 20 clients. Those clients are connecting from mikrotik routers using L2TP protocol. During tests we noticed that every spike of cpu (softether process) takes additional memory from system. After few days You can get memory overflow. We tested it on Winodws and Linux system with same results. It is happen only with SecureNAT. Without SecureNAT we get about 150-300 MB memory and stable. SecureNAT is also very useful because of DHCP functionality.

Expected behavior: Please test and check - because softether is very useful please fix if possible

Actual behavior: Using wihtout SecureNAT with Windows Server DHCP feature takes about 150-300MB and stable

Steps to reproduce

  1. Install SoftetherServer on Windows 2019 Server
  2. Add virtual Hub
  3. Add about 20 clients with L2TP
  4. Add Secure Nat with DHCP
  5. Connect clients
  6. Check task manager
  7. Every cpu spike give additional MB to used memory
  8. After few days You get overload with memory

Source: SoftEtherVPN/SoftEtherVPN