package
0.0.0-20240827065526-37a43e14a053
Repository: https://github.com/mysteriumnetwork/openvpn-forwarder.git
Documentation: pkg.go.dev

# Functions

NewConn returns net.Conn wrapped with metrics.
NewDialerHTTPConnect returns a new Dialer that dials through the provided proxy server's network and address.
NewDomainTracer creates new domain tracer instace.
NewNoopTracer creates new noop domain tracer instace.
NewServer returns new instance of HTTP transparent proxy server.
NewStickyMapper creates database for storing IP to UserID mapping.

# Constants

MemoryStorage describes in-memory data storage.
SO_ORIGINAL_DST get the original destination for the socket when redirect by linux iptables refer to https://raw.githubusercontent.com/missdeer/avege/master/src/inbound/redir/redir_iptables.go.

# Variables

DialerDirect is a direct proxy: one that makes network connections directly, good for testing.

# Structs

Conn wraps net.Conn with intercepts of read/write events.
Connection wraps net.Conn to provide extra method for establishing CONNECT session.
Context is the Proxy context, contains useful information about every request.

# Interfaces

StickyMapper represent connection stickiness storage.