Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HumanReadableTypes = map[NATType]string{ NATTypeNone: "None", NATTypeFullCone: "Full Cone", NATTypeRestrictedCone: "Restricted Cone", NATTypePortRestrictedCone: "Port Restricted Cone", NATTypeSymmetric: "Symmetric", }
HumanReadableTypes is a map of enum values to human readable strings
Functions ¶
This section is empty.
Types ¶
type CommandFactory ¶
CommandFactory is responsible for creating new instances of command
type NATService ¶
type NATService interface { Enable() error Setup(opts Options) (rules []interface{}, err error) Del(rules []interface{}) error Disable() error }
NATService routes internet traffic through provider and sets up firewall rules for security
func NewService ¶
func NewService() NATService
NewService returns linux os specific nat service based on ip tables
Source Files ¶
Click to show internal directories.
Click to hide internal directories.