Free downloadWindows and Linux, 64 bitOpen source, MIT

sgcProxy
Reverse proxy and load balancer in one executable

A free reverse proxy for Windows and Linux, configured like nginx with one JSON file. It speaks HTTP/1.1, HTTP/2 and HTTP/3, terminates TLS 1.3 with a post-quantum key exchange, gets its certificates from Let's Encrypt and balances your backend servers with health checks.

The installer is recommended on Windows: it installs and starts the Windows service. The installer and sgcProxy.exe are digitally signed by eSeGeCe. The Linux package comes with a SHA-256 checksum file. Version 2026.12.0.

HTTP/2 and HTTP/3 Post-quantum TLS Let's Encrypt built in Hot reload
A terminal on Linux: curl sends requests to sgcProxy on port 8080, the answers carry Server: sgcProxy and alternate between app server 1 and app server 2

24 hours of traffic, no restart

195.7MProxied requests in 24 hours
47Configuration reloads while traffic ran
12Planned upstream crashes
500+50Keep-alive connections and WebSocket tunnels held 24 hours
405Automated tests on Windows and Linux

Measured in a 24 hour soak of the release build on Linux: 195.7 million proxied requests, 47 configuration reloads while traffic ran, 12 planned upstream crashes (an upstream killed on purpose), 500 idle keep-alive connections and 50 WebSocket tunnels held open the whole 24 hours. No restart, no unexpected error. Every GET was retried on a healthy upstream. A POST in flight on an upstream killed on purpose is answered 502 and not resent, like nginx, because a POST is not idempotent. Threads go back to their base after every burst, and memory was 51 MB after 1 hour and 76 MB after 24 hours.

sgcProxy in one minute

Watch the sgcProxy launch video. Also on YouTube.

From the client to a healthy upstream

One process sits between the internet and your servers. One JSON file describes what it does.

Clients connect to sgcProxy over HTTP/1.1, HTTP/2 or HTTP/3 with post-quantum TLS. Inside sgcProxy the firewall, the rate limits, the router, the cache, the static files and the load balancer handle the request, which goes to an upstream pool with health checks. Clients browsers, apps, APIs HTTP/1.1 HTTP/2 HTTP/3 (QUIC) TLS 1.3 X25519 MLKEM768 sgcProxy one executable, one JSON file Firewallallow, deny, WAF, GeoIP Rate limitstoken bucket, window Routerserver_name by host, location by path Cacheon disk, gzip Static filesroot, alias, try_files Load balancerround_robin, least_conn, ip_hash, hash keep-alive Upstream pool health checks app 1 app 2 backup

In

Clients connect over HTTP/1.1, HTTP/2 or HTTP/3. TLS 1.3 offers X25519MLKEM768 first, and SNI picks the certificate of each host.

Inside

The firewall and the rate limits check the request. The router picks a server by host name and a location by path, then the cache, a static file or the load balancer answers.

Out

The load balancer picks a healthy upstream over a keep-alive connection, and retries an idempotent request on the next one when an upstream fails.

Captured from the real proxy

sgcProxy 2026.12.0 on Linux x86-64, in front of two small test servers.

OpenSSL 3.5 connects to an sgcProxy TLS listener with X25519MLKEM768: TLS 1.3, TLS_AES_256_GCM_SHA384, negotiated group X25519MLKEM768, then an HTTP response
Post-quantum TLS

TLS 1.3 without OpenSSL libraries

The capture shows OpenSSL 3.5.9 connecting to a native TLS listener of sgcProxy. The session uses TLS 1.3 with TLS_AES_256_GCM_SHA384, and OpenSSL reports Negotiated TLS1.3 group: X25519MLKEM768, the post-quantum hybrid key exchange. The proxy offers it by default.

The engine is pure Pascal and the same on Windows and Linux. Only AEAD suites with ECDHE, and session tickets with key rotation. OpenSSL 3 can be chosen instead.

The sgcProxy error log: engine started, listeners open, configuration reloaded after SIGHUP while still listening, then a graceful stop on SIGTERM
Hot reload

Change the configuration while traffic runs

SIGHUP on Linux, or sgcproxy --reload on Windows, loads the new file while the listeners stay open. An invalid file is rejected and the running configuration stays.

The error log uses the nginx line format. SIGTERM drains the connections in flight and stops with exit code 0.

curl reads the Prometheus metrics of sgcProxy from the admin listener: requests per status class and protocol, upstream results per server, request durations
Status and metrics

Watch it with Prometheus

The admin listener answers /status with JSON and /metrics in the Prometheus text format, on a loopback address only.

Requests per status class and protocol, results per upstream server and request durations.

What a reverse proxy needs, in one file

Every feature is set in the JSON configuration and checked by sgcproxy --test.

HTTP/1.1, HTTP/2 and HTTP/3

HTTP/2 and HTTP/3 over QUIC on TLS listeners, with Alt-Svc to announce HTTP/3 and HSTS.

Post-quantum TLS

TLS 1.3 and 1.2 with the native engine, no OpenSSL libraries needed. X25519MLKEM768 by default, a certificate per host by SNI. OpenSSL 3 can be chosen instead.

Let's Encrypt certificates

Automatic certificates with ACME, HTTP-01 and TLS-ALPN-01 challenges. Renewal and hot swap without a restart.

Load balancing

round_robin, least_conn, ip_hash and hash. Backup and down servers, passive and active health checks, retries of idempotent requests, keep-alive pool.

Routing like nginx

server_name matching and the nginx location order: =, ^~, regular expressions, longest prefix. --test works like nginx -t.

WebSocket

Upgrade requests become tunnels to the upstream. An idle tunnel holds no thread.

Static files

root and alias, index, try_files, autoindex, MIME types, ETag and Last-Modified (304), byte ranges (206).

Cache and gzip

A proxy cache on disk with Cache-Control, Expires and Vary, stale answers on error, one fetch for concurrent misses and purge. gzip compression.

Firewall and rate limits

IP allow and deny lists with CIDR, GeoIP, WAF checks on URL, query and headers, trusted proxies. Rate limits with token bucket or sliding window.

Status, metrics and logs

JSON status and Prometheus metrics on an admin listener. Error log in the nginx line format, also in the Windows event log. Access log combined or JSON.

Windows service and systemd

--install registers the service with recovery restarts. On Linux a Type=notify unit runs as a non-root user on ports 80 and 443. IOCP on Windows, epoll on Linux.

Protocol hygiene

Hop-by-hop headers stripped, X-Forwarded-For, X-Forwarded-Proto and X-Forwarded-Host, request smuggling rejected, header and body limits, slow client timeouts.

Running in a few minutes

Both installers start the proxy with a starter configuration on port 8080. Edit the file, test it, reload.

Windows

  1. Run sgcProxy_setup.exe. It installs and starts the Windows service sgcProxy.
  2. Open http://127.0.0.1:8080/, then edit C:\ProgramData\eSeGeCe\sgcProxy\sgcproxy.json.
  3. Test the file and reload the running service:
    > sgcproxy.exe --test --config "C:\ProgramData\eSeGeCe\sgcProxy\sgcproxy.json"
    > sgcproxy.exe --reload

Linux

  1. Unpack the package and run the installer as root. It creates the user sgcproxy and starts the systemd service.
    $ tar xzf sgcProxy_linux64.tar.gz
    $ cd sgcproxy-*-linux64
    $ sudo ./install.sh
  2. Edit /etc/sgcproxy/sgcproxy.json, test it as the service user and reload:
    $ sudo -u sgcproxy /opt/sgcproxy/sgcproxy --test --config /etc/sgcproxy/sgcproxy.json
    $ sudo systemctl reload sgcproxy

HTTPS in front of two servers

HTTP/2 and HTTP/3 on port 443, the certificate from two PEM files, and the requests balanced by least connections over the upstream app. Replace the tls object with { "acme": true } to get the certificate from Let's Encrypt.

{
  "upstreams": {
    "app": {
      "balance": "least_conn",
      "servers": [
        { "url": "http://127.0.0.1:3000" },
        { "url": "http://127.0.0.1:3001" }
      ]
    }
  },
  "servers": [
    {
      "listen": [ { "port": 443, "tls": true, "http2": true, "http3": true } ],
      "server_name": ["example.com"],
      "tls": { "certificate": "certs/example.com.crt", "key": "certs/example.com.key" },
      "locations": [
        { "match": "/", "proxy_pass": "app" }
      ]
    }
  ]
}
sgcproxy --version prints sgcProxy 2026.12.0, then sgcproxy --test reports syntax is ok and test is successful

--test checks the file and the certificate files. An error names the JSON path, for example servers[0].tls.certificate.

A real application on sgcWebSockets

sgcProxy is written in Delphi on sgcWebSockets. The listeners, the protocols, the TLS engine, the event driven IO and the protection layer all come from the library, and the proxy adds the routing, the upstreams, the cache and the configuration.

The source code is on GitHub under the MIT License, so you can read how these components come together in a server that runs for days.

Free application, open source under the MIT License

sgcProxy is free for commercial and non-commercial use, on any number of computers and servers. The full Delphi source code is on GitHub. Building it needs the source code of sgcWebSockets 2026.12.0 or later, edition All-Access, or Enterprise together with the sgcQUIC pack, which is not in the repository. Open Apps\Server\sgcProxy.dproj, set the environment variable SGCWS_SOURCE and build for Win64 or Linux64.

View on GitHub

What you need

A 64 bit Windows or Linux server. No runtime and no OpenSSL libraries to install.

Windows

64 bit Windows 10, Windows 11, Windows Server 2016 or later. The setup needs administrator rights.

Linux

Linux x86-64 with systemd. Built with the Ubuntu 20.04 SDK and tested on Ubuntu. The installer runs as root.

Windows downloads

sgcProxy_setup.exe installs and starts the service. sgcProxy.zip holds sgcProxy.exe, EULA.txt, a starter sgcproxy.json and configuration.md. The installer and sgcProxy.exe are signed by eSeGeCe.

Linux download

sgcProxy_linux64.tar.gz holds the binary, the systemd unit, install.sh, uninstall.sh, a sample configuration and EULA.txt, with a SHA-256 checksum file.

Put sgcProxy in front of your servers

Free download for 64 bit Windows and Linux. Start with the starter configuration, then add your sites.