epcommon

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSnatRule added in v1.1.0

func AddSnatRule(match string, ip net.IP) error

This fucntion adds rule which snat to ip passed filtered by match string.

func AllowIPAddresses added in v1.0.24

func AllowIPAddresses(bridgeName string, skipAddresses []string, action string) error

func AssignIPToInterface

func AssignIPToInterface(interfaceName string, ipAddresses []net.IPNet) error

func BlockIPAddresses added in v1.0.24

func BlockIPAddresses(bridgeName string, action string) error

func CreateEndpoint

func CreateEndpoint(hostVethName string, containerVethName string) error

func DisableRAForInterface added in v1.1.3

func DisableRAForInterface(ifName string) error

func EnableIPForwarding added in v1.0.26

func EnableIPForwarding(ifName string) error

This fucntion enables ip forwarding in VM and allow forwarding packets from the interface

func EnableIPV6Forwarding added in v1.1.0

func EnableIPV6Forwarding() error

func SetupContainerInterface

func SetupContainerInterface(containerVethName string, targetIfName string) error

func UpdateIPV6Setting added in v1.1.0

func UpdateIPV6Setting(disable int) error

This functions enables/disables ipv6 setting based on enable parameter passed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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