overlay

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WgInterfacename       = "liqo.overlay"
	NetworkPrefix         = "240"
	WgListeningPort       = "51871"
	PubKeyAnnotation      = "net.liqo.io/overlay.pubkey"
	NodeCIDRKeyAnnotation = "net.liqo.io/node.cidr"
	RoutingTableID        = 18952
	RoutingTableName      = "liqo"
)

Variables

This section is empty.

Functions

func CreateInterface

func CreateInterface(nodeName, namespace, ipAddr string, c *k8s.Clientset, wgc wireguard.Client, nl wireguard.Netlinker) (*wireguard.Wireguard, error)

func CreateRoutingTable

func CreateRoutingTable(tableID int, tableName string) error

create a new routing table with the given ID and name

func Enable_rp_filter

func Enable_rp_filter(ifaceName string) error

this function enables the rp_filter for the overlay interface on the gateway node

func GetOverlayIP

func GetOverlayIP(ip string) string

func InsertPolicyRoutingRule

func InsertPolicyRoutingRule(tableID int, fromSubnet string) error

func RemovePolicyRoutingRule

func RemovePolicyRoutingRule(tableID int, fromSubnet string) error

func SetUpDefaultRoute

func SetUpDefaultRoute(tableID int, ifaceIndex int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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