network

package
v0.0.0-...-365054f Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoutingTable

type RoutingTable struct{}

RoutingTable implements a set of platform specific tool for creating, deleting and observe routing tables rules for a different needs.

func (*RoutingTable) DeleteRule

func (t *RoutingTable) DeleteRule(ip, gw net.IP) error

DeleteRule removes excluded routing table rule to return it back to routing thought the tunnel.

func (*RoutingTable) DiscoverGateway

func (t *RoutingTable) DiscoverGateway() (net.IP, error)

DiscoverGateway returns system default gateway.

func (*RoutingTable) ExcludeRule

func (t *RoutingTable) ExcludeRule(ip, gw net.IP) error

ExcludeRule adds a single IP address to be excluded from the main tunnelled traffic. Traffic sent to the IP address will be directed to the system default gaitway instead of tunnel.

type RoutingTableRemote

type RoutingTableRemote struct{}

RoutingTableRemote implements a set of commands for supervisor deamon for creating, deleting and observe routing tables rules for a different needs.

func (*RoutingTableRemote) DeleteRule

func (t *RoutingTableRemote) DeleteRule(ip, gw net.IP) error

DeleteRule removes excluded routing table rule to return it back to routing thought the tunnel.

func (*RoutingTableRemote) DiscoverGateway

func (t *RoutingTableRemote) DiscoverGateway() (net.IP, error)

DiscoverGateway returns system default gateway.

func (*RoutingTableRemote) ExcludeRule

func (t *RoutingTableRemote) ExcludeRule(ip, gw net.IP) error

ExcludeRule adds a single IP address to be excluded from the main tunnelled traffic. Traffic sent to the IP address will be directed to the system default gaitway instead of tunnel.

Jump to

Keyboard shortcuts

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