services

package
v0.0.0-...-b2ae87a Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandService

func CommandService(s *netceptor.Netceptor, service string, tlscfg *tls.Config, command string)

CommandService listens on the Receptor network and runs a local command.

func TCPProxyServiceInbound

func TCPProxyServiceInbound(s *netceptor.Netceptor, host string, port int, tlsServer *tls.Config,
	node string, rservice string, tlsClient *tls.Config,
) error

TCPProxyServiceInbound listens on a TCP port and forwards the connection over the Receptor network.

func TCPProxyServiceOutbound

func TCPProxyServiceOutbound(s *netceptor.Netceptor, service string, tlsServer *tls.Config,
	address string, tlsClient *tls.Config,
) error

TCPProxyServiceOutbound listens on the Receptor network and forwards the connection via TCP.

func UDPProxyServiceInbound

func UDPProxyServiceInbound(s *netceptor.Netceptor, host string, port int, node string, service string) error

UDPProxyServiceInbound listens on a UDP port and forwards packets to a remote Receptor service.

func UDPProxyServiceOutbound

func UDPProxyServiceOutbound(s *netceptor.Netceptor, service string, address string) error

UDPProxyServiceOutbound listens on the Receptor network and forwards packets via UDP.

func UnixProxyServiceInbound

func UnixProxyServiceInbound(s *netceptor.Netceptor, filename string, permissions os.FileMode,
	node string, rservice string, tlscfg *tls.Config,
) error

UnixProxyServiceInbound listens on a Unix socket and forwards connections over the Receptor network.

func UnixProxyServiceOutbound

func UnixProxyServiceOutbound(s *netceptor.Netceptor, service string, tlscfg *tls.Config, filename string) error

UnixProxyServiceOutbound listens on the Receptor network and forwards the connection via a Unix socket.

Types

type IPRouterService

type IPRouterService struct {
	// contains filtered or unexported fields
}

IPRouterService is an IP router service.

func NewIPRouter

func NewIPRouter(nc *netceptor.Netceptor, networkName string, tunInterface string,
	localNet string, routes string,
) (*IPRouterService, error)

NewIPRouter creates a new IP router service.

Jump to

Keyboard shortcuts

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