nat64

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanRules added in v1.8.3

func CleanRules()

func ReadFromUDP

func ReadFromUDP(conn *net.UDPConn, b []byte) (int, *net.UDPAddr, *net.UDPAddr, error)

https://github.com/KatelynHaworth/go-tproxy/blob/ef7efd7f24ed7e9bf8f479c890c81ce7db27000e/tproxy_udp.go#L40C1-L97C1 ReadFromUDP reads a UDP packet from c, copying the payload into b. It returns the number of bytes copied into b and the return address that was on the packet.

Out-of-band data is also read in so that the original destination address can be identified and parsed.

Types

type NAT64Agent

type NAT64Agent struct {
	// contains filtered or unexported fields
}

NAT64Agent caches all DNS traffic from Pods with network based on the PodCIDR of the node they are running. Cache logic is very specific to Kubernetes,

func NewNAT64Agent

func NewNAT64Agent() (*NAT64Agent, error)

func (*NAT64Agent) Run

func (n *NAT64Agent) Run(ctx context.Context) error

Run syncs dns cache intercept rules

func (*NAT64Agent) SyncRules

func (n *NAT64Agent) SyncRules(ctx context.Context) error

SyncRules syncs ip masquerade rules

Jump to

Keyboard shortcuts

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