Show HN: SPF – Self-hosting from home(port forwarder with UPnP/DDNS)

  • Posted 19 hours ago by DsChauhan08
  • 2 points
https://github.com/DsChauhan08/spf
I built SPF for my home server setup because I was frustrated with the complexity of existing solutions like rinetd, socat, and nginx streams for simple port forwarding.

What it does: - TCP/UDP port forwarding with load balancing - Auto-configures your router via UPnP/NAT-PMP (no manual port forwarding) - Built-in DDNS client (DuckDNS, Cloudflare, No-IP, etc.) - TLS termination, rate limiting, security hardening - Single 63KB binary, no dependencies

Example: `spf host 3000` - exposes your local app to the internet in one command.

I used AI (Claude) to audit and optimize the codebase - fixed security bugs, applied Linux kernel coding standards, reduced binary from 83KB to 63KB. The code is cleaner than I could have done alone, honestly.

Looking for maintainers if anyone finds this useful. It's C/C++ but straightforward - most features are self-contained modules. I'm a hobbyist developer and would appreciate help from anyone more experienced.

1 comments

    Loading..