Documentation ¶
Index ¶
- func AddForwardPort(localPort uint16, destPort uint16, remoteAddr string)
- func AddRedirect(localIP string, iface string)
- func AllowTCPPort(port uint16)
- func BlockTCPPort(port uint16)
- func CheckLogDir()
- func LogInboundData(remoteAddr string, remotePort uint16, port uint16, data string)
- func PipeConn(srcConn *net.Conn, destConn *net.Conn, loggingType LogType)
- func RemoveForwardPort(port uint16, remoteAddr string)
- type CommLogger
- type DNSService
- type HTTPService
- type LogType
- type PortService
- type Service
- type TLSService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddForwardPort ¶
func AddRedirect ¶
func AllowTCPPort ¶
func AllowTCPPort(port uint16)
func BlockTCPPort ¶
func BlockTCPPort(port uint16)
func CheckLogDir ¶
func CheckLogDir()
func LogInboundData ¶
func RemoveForwardPort ¶
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
type HTTPService ¶
type HTTPService struct {
// contains filtered or unexported fields
}
func NewHTTPService ¶
func NewHTTPService() *HTTPService
type PortService ¶
type PortService struct {
// contains filtered or unexported fields
}
func NewPortService ¶
func NewPortService() *PortService
func (*PortService) IsActive ¶
func (s *PortService) IsActive() bool
type TLSService ¶
type TLSService struct {
// contains filtered or unexported fields
}
func NewTLSService ¶
func NewTLSService() *TLSService
Click to show internal directories.
Click to hide internal directories.