pf_to_socks5

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewForwardToSocks5

func NewForwardToSocks5(
	proxyNetwork, proxyAddress string,
	user *url.Userinfo,
	targetNetwork, targetAddress string,
) (servers.Protocol, error)

Types

type ForwardToSocks5

type ForwardToSocks5 struct {
	TargetNetwork string
	TargetAddress string

	Socks5Dialer                     proxy.Dialer
	IncomingSniffer, OutgoingSniffer io.Writer
	// contains filtered or unexported fields
}

func (*ForwardToSocks5) Handle

func (forwardToSocks5 *ForwardToSocks5) Handle(clientConnection net.Conn) error

func (*ForwardToSocks5) SetAuthenticationMethod

func (forwardToSocks5 *ForwardToSocks5) SetAuthenticationMethod(_ servers.AuthenticationMethod)

func (*ForwardToSocks5) SetDial

func (forwardToSocks5 *ForwardToSocks5) SetDial(dialFunc servers.DialFunc)

func (*ForwardToSocks5) SetListen

func (forwardToSocks5 *ForwardToSocks5) SetListen(_ servers.ListenFunc)

func (*ForwardToSocks5) SetListenAddress

func (forwardToSocks5 *ForwardToSocks5) SetListenAddress(_ net.Addr)

func (*ForwardToSocks5) SetSniffers

func (forwardToSocks5 *ForwardToSocks5) SetSniffers(incoming, outgoing io.Writer)

Jump to

Keyboard shortcuts

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