nordlynx

package
v0.0.0-...-851e5e8 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Overview

Package nordlynx provides nordlynx vpn technology.

Index

Constants

View Source
const (
	// InterfaceName for various NordLynx implementations
	InterfaceName = "nordlynx"
)

Variables

This section is empty.

Functions

func SetMTU

func SetMTU(iface net.Interface) error

SetMTU for an interface.

Types

type KernelSpace

type KernelSpace struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewKernelSpace

func NewKernelSpace(fwmark uint32) *KernelSpace

func (*KernelSpace) IsActive

func (k *KernelSpace) IsActive() bool

func (*KernelSpace) NetworkChanged

func (k *KernelSpace) NetworkChanged() error

func (*KernelSpace) Start

func (k *KernelSpace) Start(
	creds vpn.Credentials,
	serverData vpn.ServerData,
) error

func (*KernelSpace) State

func (k *KernelSpace) State() vpn.State

func (*KernelSpace) Stop

func (k *KernelSpace) Stop() error

Stop is used by disconnect command

func (*KernelSpace) Tun

func (k *KernelSpace) Tun() tunnel.T

type UserSpace

type UserSpace struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewUserSpace

func NewUserSpace(fwmark uint32) *UserSpace

func (*UserSpace) IsActive

func (u *UserSpace) IsActive() bool

func (*UserSpace) Start

func (u *UserSpace) Start(
	creds vpn.Credentials,
	serverData vpn.ServerData,
) error

func (*UserSpace) State

func (u *UserSpace) State() vpn.State

func (*UserSpace) Stop

func (u *UserSpace) Stop() error

Stop is used by disconnect command

func (*UserSpace) Tun

func (u *UserSpace) Tun() tunnel.T

Directories

Path Synopsis
Package libtelio wraps generated Go bindings so that the rest of the project would not need C dependencies to run unit tests.
Package libtelio wraps generated Go bindings so that the rest of the project would not need C dependencies to run unit tests.

Jump to

Keyboard shortcuts

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