private

package
v0.2.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2026 License: MPL-2.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package private registers the "private" egress policy: it blocks outbound op dials whose resolved IP falls in loopback, private, link-local (incl. cloud-metadata 169.254.169.254), CGNAT/Tailscale, IPv6 ULA/link-local, and other IETF special-use space — plus any operator-supplied deny CIDRs. An allow CIDR is an explicit escape hatch and wins over deny.

The check runs at the dial step on the already-resolved IP, so it is DNS-rebinding safe. All CIDR sets are parsed once at Open(); CheckAddr is pure in-memory.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL