tunnel

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApoxy4To6Prefix

func NewApoxy4To6Prefix(projectID uuid.UUID, endpoint string) netip.Prefix

NewApoxy4To6Prefix generates a new IPv6 address from the Apoxy4To6Range prefix.

Types

type IPAM added in v0.8.3

type IPAM interface {
	// Allocate allocates an IP address for a peer.
	Allocate(r *http.Request) netip.Prefix

	// Release releases an IP address for a peer. No-op if the address is not allocated
	// (returns nil).
	Release(peerPrefix netip.Prefix) error
}

func NewRandomULA added in v0.8.3

func NewRandomULA() IPAM

type TunnelOption added in v0.8.3

type TunnelOption func(*tunnelOptions)

func WithCertPath added in v0.8.3

func WithCertPath(path string) TunnelOption

WithCertPath sets the path to the TLS certificate.

func WithIPAM added in v0.8.3

func WithIPAM(ipam IPAM) TunnelOption

WithIPAM sets the IPAM to use.

func WithKeyPath added in v0.8.3

func WithKeyPath(path string) TunnelOption

WithKeyPath sets the path to the TLS key.

func WithLocalAddr added in v0.8.3

func WithLocalAddr(prefix netip.Prefix) TunnelOption

WithLocalAddr sets the local address prefix.

func WithProxyAddr added in v0.8.3

func WithProxyAddr(addr string) TunnelOption

WithProxyAddr sets the address to bind the proxy to.

func WithTUNName added in v0.8.3

func WithTUNName(name string) TunnelOption

WithTUNName sets the name of the TUN interface.

func WithULAPrefix added in v0.8.3

func WithULAPrefix(prefix netip.Prefix) TunnelOption

WithULAPrefix sets the Unique Local Address prefix.

type TunnelServer added in v0.8.3

type TunnelServer struct {
	http3.Server
	client.Client
	// contains filtered or unexported fields
}

func NewTunnelServer added in v0.8.3

func NewTunnelServer(opts ...TunnelOption) *TunnelServer

NewTunnelServer creates a new server proxy that routes traffic via QUIC tunnels.

func (*TunnelServer) Start added in v0.8.3

func (t *TunnelServer) Start(ctx context.Context, mgr ctrl.Manager) error

func (*TunnelServer) Stop added in v0.8.3

func (t *TunnelServer) Stop(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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