nat

package
v0.0.0-...-be0919c Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2018 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NATService

type NATService interface {
	Add(rule RuleForwarding)
	Start() error
	Stop()
}

NATService describes fake nat service for darwin

func NewService

func NewService() NATService

NewService returns linux os specific nat service based on ip tables

type RuleForwarding

type RuleForwarding struct {
	SourceAddress string
	TargetIP      string
}

RuleForwarding describes fake nat rule

Jump to

Keyboard shortcuts

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