stund is Minimal STUN (RFC 8489) binding server for FreeBSD.
It listens on standard UDP port 3478, supports IPv4/IPv6 dual-stack,
and responds to Binding requests with the XOR-MAPPED-ADDRESS attribute.

Engineered for maximum throughput and minimal resource footprint on FreeBSD,
stund uses kqueue for event notification, recvmmsg/sendmmsg for batch I/O,
and SO_REUSEPORT_LB with one worker thread per CPU. It performs no runtime
dynamic memory allocation, using pre-allocated thread-local buffers.
Memory usage is approximately 1.5 MB per CPU core.
Responses are generated in-place in the receive buffer. It uses the
FreeBSD base system, the C++ standard library, and pthreads,
with no third-party library dependencies.

To enable and start the service:

  sysrc stund_enable="YES"
  service stund start
