srcipmasqnftables

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: 5 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SourceIPAddressMasqer

type SourceIPAddressMasqer struct {
	*nftables.Conn
}

SourceIPAddressMasqer implements srcipmasq.SourceIPAddressMasqer using nftables.

func (*SourceIPAddressMasqer) MasqSourceIPAddress

func (m *SourceIPAddressMasqer) MasqSourceIPAddress(ctx context.Context, masq *srcipmasq.Masq) (func() error, error)

MasqSourceIPAddress implements srcipmasq.SourceIPAddressMasqer.

Jump to

Keyboard shortcuts

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