Documentation
¶
Index ¶
- Constants
- func EbTableRuleExists(tableName, chainName, matchSet string) (bool, error)
- func GetEbtableRules(tableName, chainName string) ([]string, error)
- func SetArpReply(ipAddress net.IP, macAddress net.HardwareAddr, action string) error
- func SetBrouteAccept(ipAddress, action string) error
- func SetDnatForArpReplies(interfaceName string, action string) error
- func SetDnatForIPAddress(interfaceName string, ipAddress net.IP, macAddress net.HardwareAddr, ...) error
- func SetEbRule(table, action, chain, rule string) error
- func SetSnatForInterface(interfaceName string, macAddress net.HardwareAddr, action string) error
- func SetVepaMode(bridgeName string, downstreamIfNamePrefix string, upstreamMacAddress string, ...) error
Constants ¶
View Source
const ( // Ebtable actions. Append = "-A" Delete = "-D" // Ebtable tables. Nat = "nat" Broute = "broute" // Ebtable chains. PreRouting = "PREROUTING" PostRouting = "POSTROUTING" Brouting = "BROUTING" )
Variables ¶
This section is empty.
Functions ¶
func EbTableRuleExists ¶
EbTableRuleExists checks if eb rule exists in table and chain.
func GetEbtableRules ¶
GetEbtableRules gets EB rules for a table and chain.
func SetArpReply ¶
SetArpReply sets an ARP reply rule for the given target IP address and MAC address.
func SetBrouteAccept ¶
SetBrouteAccept sets an EB rule.
func SetDnatForArpReplies ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.