nat

package
v0.0.0-...-adb5bea Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIPFamilyMismatch = errors.New("no matching IP family")

Functions

This section is empty.

Types

type Client

type Client interface {
	Init() error
	IsInitialized() (bool, error)
	UpdateRoutes(link netlink.Link, subnets []netip.Prefix) error
}

Client configures routes for NAT Gateway

func NewNatClient

func NewNatClient(useipv4, useipv6 bool) (Client, error)

type Gateway

type Gateway interface {
	Init() error
	AddClient(netip.Addr, netlink.Link) error
}

func NewGateway

func NewGateway(iface string, ipv4, ipv6 *netip.Addr) (Gateway, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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