netutils

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2019 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInterfaceAddr

func GetInterfaceAddr(name string) (*net.IPNet, error)

GetInterfaceAddr returns the IPv4 address of a network interface.

func SetupNATOut

func SetupNATOut(cidr string, action iptables.Action) error

SetupNATOut adds NAT rules for outbound traffic with iptables.

Types

This section is empty.

Jump to

Keyboard shortcuts

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