ebtables

package
v1.0.33 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Ebtables actions.
	Append = "-A"
	Delete = "-D"
)

Variables

This section is empty.

Functions

func EbTableRuleExists added in v1.0.33

func EbTableRuleExists(tableName, chainName, matchSet string) (bool, error)

EbTableRuleExists checks if eb rule exists in table and chain.

func GetEbtableRules added in v1.0.33

func GetEbtableRules(tableName, chainName string) ([]string, error)

GetEbtableRules gets EB rules for a table and chain.

func SetArpReply

func SetArpReply(ipAddress net.IP, macAddress net.HardwareAddr, action string) error

SetArpReply sets an ARP reply rule for the given target IP address and MAC address.

func SetBrouteAccept added in v1.0.33

func SetBrouteAccept(ipAddress, action string) error

SetBrouteAccept sets an EB rule.

func SetDnatForArpReplies

func SetDnatForArpReplies(interfaceName string, action string) error

SetDnatForArpReplies sets a MAC DNAT rule for ARP replies received on an interface.

func SetDnatForIPAddress

func SetDnatForIPAddress(interfaceName string, ipAddress net.IP, macAddress net.HardwareAddr, action string) error

SetDnatForIPAddress sets a MAC DNAT rule for an IP address.

func SetSnatForInterface

func SetSnatForInterface(interfaceName string, macAddress net.HardwareAddr, action string) error

SetSnatForInterface sets a MAC SNAT rule for an interface.

func SetVepaMode

func SetVepaMode(bridgeName string, downstreamIfNamePrefix string, upstreamMacAddress string, action string) error

SetVepaMode sets the VEPA mode for a bridge and its ports.

Types

This section is empty.

Jump to

Keyboard shortcuts

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