Versions in this module Expand all Collapse all v0 v0.5.2 Dec 9, 2019 Changes in this version + func GetProxyEnv(key string) string v0.5.1 Feb 7, 2018 Changes in this version + const NAT + const OUTPUT + const PREROUTING + func ListenTCP(listenAddress string, handler func(tc *TCPConn)) + func Pipe(srcConn *TCPConn, destConn net.Conn) + type DNSProxy struct + func NewDNSProxy(c DNSProxyConfig) *DNSProxy + func (s *DNSProxy) Start() error + func (s *DNSProxy) Stop() + type DNSProxyConfig struct + DNSOverHTTPSEnabled bool + EnableTCP bool + EnableUDP bool + Enabled bool + Endpoint string + ListenAddress string + NoProxyDomains []string + PrivateDNS string + PublicDNS string + type ExplicitProxy struct + func NewExplicitProxy(c ExplicitProxyConfig) *ExplicitProxy + func (s ExplicitProxy) Start() error + type ExplicitProxyConfig struct + ListenAddress string + UseProxyAuthorization bool + type HTTPProxy struct + func NewHTTPProxy(c HTTPProxyConfig) *HTTPProxy + func (s HTTPProxy) Start() error + type HTTPProxyConfig struct + ListenAddress string + NoProxy NoProxy + Verbose bool + type HTTPSProxy struct + func NewHTTPSProxy(c HTTPSProxyConfig) *HTTPSProxy + func (s HTTPSProxy) Start() error + type HTTPSProxyConfig struct + ListenAddress string + NoProxy NoProxy + type IPTables struct + func NewIPTables(c *IPTablesConfig) (*IPTables, error) + func (t *IPTables) Check(rule []string) + func (t *IPTables) Show() string + func (t *IPTables) Start() error + func (t *IPTables) Stop() error + type IPTablesConfig struct + DNSToPort int + HTTPSToPort int + HTTPToPort int + PublicDNS string + TCPDPorts []int + TCPToPort int + type NoProxy struct + CIDRs []*net.IPNet + Domains []string + IPs []string + type TCPConn struct + OrigAddr string + type TCPListener struct + func NewTCPListener(listenAddress string) (*TCPListener, error) + func (l *TCPListener) Accept() (net.Conn, error) + type TCPProxy struct + func NewTCPProxy(c TCPProxyConfig) *TCPProxy + func (s TCPProxy) Start() error + type TCPProxyConfig struct + ListenAddress string + NoProxy NoProxy