services

package
v0.0.0-...-55885ca Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddForwardPort

func AddForwardPort(localPort uint16, destPort uint16, remoteAddr string)

func AddRedirect

func AddRedirect(localIP string, iface string)

func AllowTCPPort

func AllowTCPPort(port uint16)

func BlockTCPPort

func BlockTCPPort(port uint16)

func CheckLogDir

func CheckLogDir()

func LogInboundData

func LogInboundData(remoteAddr string, remotePort uint16, port uint16, data string)

func PipeConn

func PipeConn(srcConn *net.Conn, destConn *net.Conn, loggingType LogType)

func RemoveForwardPort

func RemoveForwardPort(port uint16, remoteAddr string)

Types

type CommLogger

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

func GetRemoteLogger

func GetRemoteLogger(remoteAddr string, port uint16) *CommLogger

func NewCommLogger

func NewCommLogger(path string, port uint16, remoteAddr string) (*CommLogger, error)

func (*CommLogger) GetRemoteAddr

func (c *CommLogger) GetRemoteAddr() string

func (*CommLogger) WriteInbound

func (c *CommLogger) WriteInbound(data string)

func (*CommLogger) WriteOutbound

func (c *CommLogger) WriteOutbound(data string)

type DNSService

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

func NewDNSService

func NewDNSService() *DNSService

func (*DNSService) Start

func (s *DNSService) Start(address string, port uint16) error

type HTTPService

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

func NewHTTPService

func NewHTTPService() *HTTPService

func (*HTTPService) Start

func (s *HTTPService) Start(address string, port uint16) error

type LogType

type LogType int16
const (
	LoggingOutbound LogType = iota
	LoggingInbound
	LoggingNone
)

type PortService

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

func NewPortService

func NewPortService() *PortService

func (*PortService) IsActive

func (s *PortService) IsActive() bool

func (*PortService) Start

func (s *PortService) Start(address string, port uint16) error

type Service

type Service interface {
	Start(address string, port uint16) error
}

type TLSService

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

func NewTLSService

func NewTLSService() *TLSService

func (*TLSService) Start

func (s *TLSService) Start(address string, port uint16) error

Jump to

Keyboard shortcuts

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