ipsec

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2025 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Overview

Package ipsec provides networkservice.NetworkService{Client,Server} chain elements for the ipsec mechanism The implementation is based on IKEv2 protocol

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRSAKey

func GenerateRSAKey() (privateKeyFileName string, err error)

GenerateRSAKey generates RSA private key

func NewClient

func NewClient(vppConn api.Connection, tunnelIP net.IP, options ...Option) networkservice.NetworkServiceClient

NewClient - returns a new client for the IPSec remote mechanism

func NewServer

func NewServer(vppConn api.Connection, tunnelIP net.IP, options ...Option) networkservice.NetworkServiceServer

NewServer - returns a new server for the IPSec remote mechanism

Types

type Option

type Option func(o *ipsecOptions)

Option is an option pattern for ipsec chain element

func WithIKEv2PrivateKey

func WithIKEv2PrivateKey(privateKeyFileName string) Option

WithIKEv2PrivateKey - sets private key paths

Directories

Path Synopsis
Package mtu computes the mtu for the ipsec tunnel and adds it to the mechanism
Package mtu computes the mtu for the ipsec tunnel and adds it to the mechanism

Jump to

Keyboard shortcuts

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