srcipmasq

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

package srcipmasq the interface SourceIPAddressMasqer for masqing the source IP address.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Masq

type Masq struct {
	OriginalSource, Destination, NewSource net.IP
}

Masq is the IP to masquerade as when targeting a specific destination.

type SourceIPAddressMasqer

type SourceIPAddressMasqer interface {
	MasqSourceIPAddress(context.Context, *Masq) (func() error, error)
}

SourceIPAddressMasqer masqs traffic to an IP address as an IP address.

Directories

Path Synopsis
package srcipmasqiptables provides an implementation of srcipmasq.SourceIPAddressMasqer that masqs the source IP using `iptables`.
package srcipmasqiptables provides an implementation of srcipmasq.SourceIPAddressMasqer that masqs the source IP using `iptables`.
package srcipmasqnftables provides an implementation of srcipmasq.SourceIPAddressMasqer that masqs the source IP using the nftables protocol in pure go.
package srcipmasqnftables provides an implementation of srcipmasq.SourceIPAddressMasqer that masqs the source IP using the nftables protocol in pure go.

Jump to

Keyboard shortcuts

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