forwarder

package
v1.4.18 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2021 License: GPL-3.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSocksServers

func GetSocksServers() map[int]*WGSocksServer

func GetTCPForwarders

func GetTCPForwarders() map[int]*WGTCPForwarder

func RemoveSocksServer

func RemoveSocksServer(id int)

func RemoveTCPForwarder

func RemoveTCPForwarder(id int)

Types

type WGSocksServer

type WGSocksServer struct {
	ID int
	// contains filtered or unexported fields
}

WGSocksServer implements a Socks5 server

func GetSocksServer

func GetSocksServer(id int) *WGSocksServer

func NewWGSocksServer

func NewWGSocksServer(lport int, tunIP string, tnet *netstack.Net) *WGSocksServer

func (*WGSocksServer) LocalAddr

func (s *WGSocksServer) LocalAddr() string

func (*WGSocksServer) Start

func (s *WGSocksServer) Start() error

func (*WGSocksServer) Stop

func (s *WGSocksServer) Stop()

type WGTCPForwarder

type WGTCPForwarder struct {
	ID int
	// contains filtered or unexported fields
}

func GetTCPForwarder

func GetTCPForwarder(id int) *WGTCPForwarder

func NewWGTCPForwarder

func NewWGTCPForwarder(targetAddress string, tunIP string, tunPort int, tnet *netstack.Net) *WGTCPForwarder

func (*WGTCPForwarder) LocalAddr

func (f *WGTCPForwarder) LocalAddr() string

func (*WGTCPForwarder) RemoteAddr

func (f *WGTCPForwarder) RemoteAddr() string

func (*WGTCPForwarder) Start

func (f *WGTCPForwarder) Start() error

func (*WGTCPForwarder) Stop

func (f *WGTCPForwarder) Stop()

Jump to

Keyboard shortcuts

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