Documentation ¶
Index ¶
- Constants
- type OVSSnatClient
- func (client *OVSSnatClient) AllowIPAddressesOnSnatBridge() error
- func (client *OVSSnatClient) AllowInboundFromHostToNC() error
- func (client *OVSSnatClient) AllowInboundFromNCToHost() error
- func (client *OVSSnatClient) BlockIPAddressesOnSnatBridge() error
- func (client *OVSSnatClient) ConfigureSnatContainerInterface() error
- func (client *OVSSnatClient) CreateSnatEndpoint(bridgeName string) error
- func (client *OVSSnatClient) DeleteInboundFromHostToNC() error
- func (client *OVSSnatClient) DeleteInboundFromNCToHost() error
- func (client *OVSSnatClient) DeleteSnatEndpoint() error
- func (client *OVSSnatClient) MoveSnatEndpointToContainerNS(netnsPath string, nsID uintptr) error
- func (client *OVSSnatClient) SetupSnatContainerInterface() error
Constants ¶
View Source
const ( SnatBridgeName = "azSnatbr" ImdsIP = "169.254.169.254/32" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OVSSnatClient ¶
type OVSSnatClient struct { SkipAddressesFromBlock []string // contains filtered or unexported fields }
func NewSnatClient ¶
func NewSnatClient(hostIfName string, contIfName string, localIP string, snatBridgeIP string, hostPrimaryMac string, skipAddressesFromBlock []string, nl netlink.NetlinkInterface, ovsctlClient ovsctl.OvsInterface, plClient platform.ExecClient, ) OVSSnatClient
func (*OVSSnatClient) AllowIPAddressesOnSnatBridge ¶ added in v1.4.13
func (client *OVSSnatClient) AllowIPAddressesOnSnatBridge() error
AllowIPAddressesOnSnatBridge adds iptables rules that allows only specific Private IPs via linux bridge
func (*OVSSnatClient) AllowInboundFromHostToNC ¶ added in v1.0.24
func (client *OVSSnatClient) AllowInboundFromHostToNC() error
*
This function adds iptables rules that allows only host to NC communication and not the other way
*
func (*OVSSnatClient) AllowInboundFromNCToHost ¶ added in v1.0.24
func (client *OVSSnatClient) AllowInboundFromNCToHost() error
*
This function adds iptables rules that allows only NC to Host communication and not the other way
*
func (*OVSSnatClient) BlockIPAddressesOnSnatBridge ¶ added in v1.4.13
func (client *OVSSnatClient) BlockIPAddressesOnSnatBridge() error
BlockIPAddressesOnSnatBridge adds iptables rules that blocks all private IPs flowing via linux bridge
func (*OVSSnatClient) ConfigureSnatContainerInterface ¶
func (client *OVSSnatClient) ConfigureSnatContainerInterface() error
func (*OVSSnatClient) CreateSnatEndpoint ¶
func (client *OVSSnatClient) CreateSnatEndpoint(bridgeName string) error
func (*OVSSnatClient) DeleteInboundFromHostToNC ¶ added in v1.0.24
func (client *OVSSnatClient) DeleteInboundFromHostToNC() error
func (*OVSSnatClient) DeleteInboundFromNCToHost ¶ added in v1.0.24
func (client *OVSSnatClient) DeleteInboundFromNCToHost() error
func (*OVSSnatClient) DeleteSnatEndpoint ¶
func (client *OVSSnatClient) DeleteSnatEndpoint() error
func (*OVSSnatClient) MoveSnatEndpointToContainerNS ¶
func (client *OVSSnatClient) MoveSnatEndpointToContainerNS(netnsPath string, nsID uintptr) error
*
Move container veth inside container network namespace
*
func (*OVSSnatClient) SetupSnatContainerInterface ¶
func (client *OVSSnatClient) SetupSnatContainerInterface() error
*
Configure Routes and setup name for container veth
*
Click to show internal directories.
Click to hide internal directories.