Documentation ¶
Index ¶
- func SetAccessList(s []string) func(*OutProxy) error
- func SetAccessListType(s string) func(*OutProxy) error
- func SetAllowZeroIn(b bool) func(*OutProxy) error
- func SetAllowZeroOut(b bool) func(*OutProxy) error
- func SetBurst(s int) func(*OutProxy) error
- func SetByteLimit(u int64) func(*OutProxy) error
- func SetCloseIdle(b bool) func(*OutProxy) error
- func SetCloseIdleTime(u int) func(*OutProxy) error
- func SetCloseIdleTimeMs(u int) func(*OutProxy) error
- func SetCompress(b bool) func(*OutProxy) error
- func SetDomains(s []string) func(*OutProxy) error
- func SetEncrypt(b bool) func(*OutProxy) error
- func SetFastRecieve(b bool) func(*OutProxy) error
- func SetFilePath(s string) func(*OutProxy) error
- func SetHost(s string) func(*OutProxy) error
- func SetHttpAccessList(s []string) func(*HttpOutProxy) error
- func SetHttpAccessListType(s string) func(*HttpOutProxy) error
- func SetHttpAllowZeroIn(b bool) func(*HttpOutProxy) error
- func SetHttpAllowZeroOut(b bool) func(*HttpOutProxy) error
- func SetHttpCloseIdle(b bool) func(*HttpOutProxy) error
- func SetHttpCloseIdleTime(u int) func(*HttpOutProxy) error
- func SetHttpCloseIdleTimeMs(u int) func(*HttpOutProxy) error
- func SetHttpCompress(b bool) func(*HttpOutProxy) error
- func SetHttpEncrypt(b bool) func(*HttpOutProxy) error
- func SetHttpFastRecieve(b bool) func(*HttpOutProxy) error
- func SetHttpFilePath(s string) func(*HttpOutProxy) error
- func SetHttpHost(s string) func(*HttpOutProxy) error
- func SetHttpInBackups(u int) func(*HttpOutProxy) error
- func SetHttpInLength(u int) func(*HttpOutProxy) error
- func SetHttpInQuantity(u int) func(*HttpOutProxy) error
- func SetHttpInVariance(i int) func(*HttpOutProxy) error
- func SetHttpKeyFile(s string) func(*HttpOutProxy) error
- func SetHttpLeaseSetKey(s string) func(*HttpOutProxy) error
- func SetHttpLeaseSetPrivateKey(s string) func(*HttpOutProxy) error
- func SetHttpLeaseSetPrivateSigningKey(s string) func(*HttpOutProxy) error
- func SetHttpMessageReliability(s string) func(*HttpOutProxy) error
- func SetHttpName(s string) func(*HttpOutProxy) error
- func SetHttpOutBackups(u int) func(*HttpOutProxy) error
- func SetHttpOutLength(u int) func(*HttpOutProxy) error
- func SetHttpOutQuantity(u int) func(*HttpOutProxy) error
- func SetHttpOutVariance(i int) func(*HttpOutProxy) error
- func SetHttpPort(s string) func(*HttpOutProxy) error
- func SetHttpReduceIdle(b bool) func(*HttpOutProxy) error
- func SetHttpReduceIdleQuantity(u int) func(*HttpOutProxy) error
- func SetHttpReduceIdleTime(u int) func(*HttpOutProxy) error
- func SetHttpReduceIdleTimeMs(u int) func(*HttpOutProxy) error
- func SetHttpSAMHost(s string) func(*HttpOutProxy) error
- func SetHttpSAMPort(s string) func(*HttpOutProxy) error
- func SetHttpSaveFile(b bool) func(*HttpOutProxy) error
- func SetHttpSigType(s string) func(*HttpOutProxy) error
- func SetHttpType(s string) func(*HttpOutProxy) error
- func SetIPs(s []net.IP) func(*OutProxy) error
- func SetInBackups(u int) func(*OutProxy) error
- func SetInLength(u int) func(*OutProxy) error
- func SetInQuantity(u int) func(*OutProxy) error
- func SetInVariance(i int) func(*OutProxy) error
- func SetKeyFile(s string) func(*OutProxy) error
- func SetLeaseSetKey(s string) func(*OutProxy) error
- func SetLeaseSetPrivateKey(s string) func(*OutProxy) error
- func SetLeaseSetPrivateSigningKey(s string) func(*OutProxy) error
- func SetLimit(s float64) func(*OutProxy) error
- func SetMessageReliability(s string) func(*OutProxy) error
- func SetName(s string) func(*OutProxy) error
- func SetOutBackups(u int) func(*OutProxy) error
- func SetOutLength(u int) func(*OutProxy) error
- func SetOutQuantity(u int) func(*OutProxy) error
- func SetOutVariance(i int) func(*OutProxy) error
- func SetPolicy(s bool) func(*OutProxy) error
- func SetPort(s string) func(*OutProxy) error
- func SetPorts(s []int) func(*OutProxy) error
- func SetReduceIdle(b bool) func(*OutProxy) error
- func SetReduceIdleQuantity(u int) func(*OutProxy) error
- func SetReduceIdleTime(u int) func(*OutProxy) error
- func SetReduceIdleTimeMs(u int) func(*OutProxy) error
- func SetSAMHost(s string) func(*OutProxy) error
- func SetSAMPort(s string) func(*OutProxy) error
- func SetSaveFile(b bool) func(*OutProxy) error
- func SetSigType(s string) func(*OutProxy) error
- func SetType(s string) func(*OutProxy) error
- type HttpOption
- type HttpOutProxy
- type Option
- type OutProxy
- type Proxy
- type SocksRuleSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetAccessList ¶
SetAccessList tells the system to treat the accessList as a whitelist
func SetAccessListType ¶
SetAccessListType tells the system to treat the accessList as a whitelist
func SetAllowZeroIn ¶
SetAllowZeroIn tells the tunnel to accept zero-hop peers
func SetAllowZeroOut ¶
SetAllowZeroOut tells the tunnel to accept zero-hop peers
func SetByteLimit ¶
SetByteLimit sets the number of hops inbound
func SetCloseIdle ¶
SetCloseIdle tells the connection to close it's tunnels during extended idle time.
func SetCloseIdleTime ¶
SetCloseIdleTime sets the time to wait before closing tunnels to idle levels
func SetCloseIdleTimeMs ¶
SetCloseIdleTimeMs sets the time to wait before closing tunnels to idle levels in milliseconds
func SetCompress ¶
SetCompress tells clients to use compression
func SetDomains ¶
func SetEncrypt ¶
SetEncrypt tells the router to use an encrypted leaseset
func SetFastRecieve ¶
SetFastRecieve tells clients to use compression
func SetFilePath ¶
SetFilePath sets the path to save the config file at.
func SetHttpAccessList ¶
func SetHttpAccessList(s []string) func(*HttpOutProxy) error
SetHttpAccessList tells the system to treat the accessList as a whitelist
func SetHttpAccessListType ¶
func SetHttpAccessListType(s string) func(*HttpOutProxy) error
SetHttpAccessListType tells the system to treat the accessList as a whitelist
func SetHttpAllowZeroIn ¶
func SetHttpAllowZeroIn(b bool) func(*HttpOutProxy) error
SetHttpAllowZeroIn tells the tunnel to accept zero-hop peers
func SetHttpAllowZeroOut ¶
func SetHttpAllowZeroOut(b bool) func(*HttpOutProxy) error
SetHttpAllowZeroOut tells the tunnel to accept zero-hop peers
func SetHttpCloseIdle ¶
func SetHttpCloseIdle(b bool) func(*HttpOutProxy) error
SetHttpCloseIdle tells the connection to close it's tunnels during extended idle time.
func SetHttpCloseIdleTime ¶
func SetHttpCloseIdleTime(u int) func(*HttpOutProxy) error
SetHttpCloseIdleTime sets the time to wait before closing tunnels to idle levels
func SetHttpCloseIdleTimeMs ¶
func SetHttpCloseIdleTimeMs(u int) func(*HttpOutProxy) error
SetHttpCloseIdleTimeMs sets the time to wait before closing tunnels to idle levels in milliseconds
func SetHttpCompress ¶
func SetHttpCompress(b bool) func(*HttpOutProxy) error
SetHttpCompress tells clients to use compression
func SetHttpEncrypt ¶
func SetHttpEncrypt(b bool) func(*HttpOutProxy) error
SetHttpEncrypt tells the router to use an encrypted leaseset
func SetHttpFastRecieve ¶
func SetHttpFastRecieve(b bool) func(*HttpOutProxy) error
SetHttpFastRecieve tells clients to use compression
func SetHttpFilePath ¶
func SetHttpFilePath(s string) func(*HttpOutProxy) error
SetHttpFilePath sets the path to save the config file at.
func SetHttpHost ¶
func SetHttpHost(s string) func(*HttpOutProxy) error
SetHttpHost sets the host of the service to forward
func SetHttpInBackups ¶
func SetHttpInBackups(u int) func(*HttpOutProxy) error
SetHttpInBackups sets the inbound tunnel backups
func SetHttpInLength ¶
func SetHttpInLength(u int) func(*HttpOutProxy) error
SetHttpInLength sets the number of hops inbound
func SetHttpInQuantity ¶
func SetHttpInQuantity(u int) func(*HttpOutProxy) error
SetHttpInQuantity sets the inbound tunnel quantity
func SetHttpInVariance ¶
func SetHttpInVariance(i int) func(*HttpOutProxy) error
SetHttpInVariance sets the variance of a number of hops inbound
func SetHttpLeaseSetKey ¶
func SetHttpLeaseSetKey(s string) func(*HttpOutProxy) error
SetHttpLeaseSetKey sets the host of the HttpOutProxy's SAM bridge
func SetHttpLeaseSetPrivateKey ¶
func SetHttpLeaseSetPrivateKey(s string) func(*HttpOutProxy) error
SetHttpLeaseSetPrivateKey sets the host of the HttpOutProxy's SAM bridge
func SetHttpLeaseSetPrivateSigningKey ¶
func SetHttpLeaseSetPrivateSigningKey(s string) func(*HttpOutProxy) error
SetHttpLeaseSetPrivateSigningKey sets the host of the HttpOutProxy's SAM bridge
func SetHttpMessageReliability ¶
func SetHttpMessageReliability(s string) func(*HttpOutProxy) error
SetHttpMessageReliability sets the host of the HttpOutProxy's SAM bridge
func SetHttpName ¶
func SetHttpName(s string) func(*HttpOutProxy) error
SetHttpName sets the host of the HttpOutProxy's SAM bridge
func SetHttpOutBackups ¶
func SetHttpOutBackups(u int) func(*HttpOutProxy) error
SetHttpOutBackups sets the inbound tunnel backups
func SetHttpOutLength ¶
func SetHttpOutLength(u int) func(*HttpOutProxy) error
SetHttpOutLength sets the number of hops outbound
func SetHttpOutQuantity ¶
func SetHttpOutQuantity(u int) func(*HttpOutProxy) error
SetHttpOutQuantity sets the outbound tunnel quantity
func SetHttpOutVariance ¶
func SetHttpOutVariance(i int) func(*HttpOutProxy) error
SetHttpOutVariance sets the variance of a number of hops outbound
func SetHttpPort ¶
func SetHttpPort(s string) func(*HttpOutProxy) error
SetHttpPort sets the port of the service to forward
func SetHttpReduceIdle ¶
func SetHttpReduceIdle(b bool) func(*HttpOutProxy) error
SetHttpReduceIdle tells the connection to reduce it's tunnels during extended idle time.
func SetHttpReduceIdleQuantity ¶
func SetHttpReduceIdleQuantity(u int) func(*HttpOutProxy) error
SetHttpReduceIdleQuantity sets minimum number of tunnels to reduce to during idle time
func SetHttpReduceIdleTime ¶
func SetHttpReduceIdleTime(u int) func(*HttpOutProxy) error
SetHttpReduceIdleTime sets the time to wait before reducing tunnels to idle levels
func SetHttpReduceIdleTimeMs ¶
func SetHttpReduceIdleTimeMs(u int) func(*HttpOutProxy) error
SetHttpReduceIdleTimeMs sets the time to wait before reducing tunnels to idle levels in milliseconds
func SetHttpSAMHost ¶
func SetHttpSAMHost(s string) func(*HttpOutProxy) error
SetHttpSAMHost sets the host of the HttpOutProxy's SAM bridge
func SetHttpSAMPort ¶
func SetHttpSAMPort(s string) func(*HttpOutProxy) error
SetHttpSAMPort sets the port of the HttpOutProxy's SAM bridge using a string
func SetHttpSaveFile ¶
func SetHttpSaveFile(b bool) func(*HttpOutProxy) error
SetHttpSaveFile tells the router to save the tunnel's keys long-term
func SetHttpSigType ¶
func SetHttpSigType(s string) func(*HttpOutProxy) error
SetHttpSigType sets the type of the forwarder server
func SetHttpType ¶
func SetHttpType(s string) func(*HttpOutProxy) error
SetHttpType sets the type of the forwarder server
func SetInBackups ¶
SetInBackups sets the inbound tunnel backups
func SetInLength ¶
SetInLength sets the number of hops inbound
func SetInQuantity ¶
SetInQuantity sets the inbound tunnel quantity
func SetInVariance ¶
SetInVariance sets the variance of a number of hops inbound
func SetLeaseSetKey ¶
SetLeaseSetKey sets the host of the OutProxy's SAM bridge
func SetLeaseSetPrivateKey ¶
SetLeaseSetPrivateKey sets the host of the OutProxy's SAM bridge
func SetLeaseSetPrivateSigningKey ¶
SetLeaseSetPrivateSigningKey sets the host of the OutProxy's SAM bridge
func SetMessageReliability ¶
SetMessageReliability sets the host of the OutProxy's SAM bridge
func SetOutBackups ¶
SetOutBackups sets the inbound tunnel backups
func SetOutLength ¶
SetOutLength sets the number of hops outbound
func SetOutQuantity ¶
SetOutQuantity sets the outbound tunnel quantity
func SetOutVariance ¶
SetOutVariance sets the variance of a number of hops outbound
func SetReduceIdle ¶
SetReduceIdle tells the connection to reduce it's tunnels during extended idle time.
func SetReduceIdleQuantity ¶
SetReduceIdleQuantity sets minimum number of tunnels to reduce to during idle time
func SetReduceIdleTime ¶
SetReduceIdleTime sets the time to wait before reducing tunnels to idle levels
func SetReduceIdleTimeMs ¶
SetReduceIdleTimeMs sets the time to wait before reducing tunnels to idle levels in milliseconds
func SetSAMHost ¶
SetSAMHost sets the host of the OutProxy's SAM bridge
func SetSAMPort ¶
SetSAMPort sets the port of the OutProxy's SAM bridge using a string
func SetSaveFile ¶
SetSaveFile tells the router to save the tunnel's keys long-term
func SetSigType ¶
SetSigType sets the type of the forwarder server
Types ¶
type HttpOutProxy ¶
type HttpOutProxy struct { *samforwarder.SAMForwarder Prox *Proxy // contains filtered or unexported fields }
HttpOutProxy is a SAM-based SOCKS outproxy you connect to with a regular TCP tunnel
func NewHttpOutProxyd ¶
func NewHttpOutProxyd(host, port string) (*HttpOutProxy, error)
NewHttpOutProxyd makes a new SAM forwarder with default options, accepts host:port arguments
func NewHttpOutProxydFromOptions ¶
func NewHttpOutProxydFromOptions(opts ...func(*HttpOutProxy) error) (*HttpOutProxy, error)
NewHttpOutProxydFromOptions makes a new SAM forwarder with default options, accepts host:port arguments
func (*HttpOutProxy) GetType ¶
func (f *HttpOutProxy) GetType() string
func (*HttpOutProxy) Load ¶
func (s *HttpOutProxy) Load() (samtunnel.SAMTunnel, error)
func (*HttpOutProxy) Serve ¶
func (f *HttpOutProxy) Serve() error
Serve starts the SAM connection and and forwards the local host:port to i2p
func (*HttpOutProxy) ServeParent ¶
func (f *HttpOutProxy) ServeParent()
type OutProxy ¶
type OutProxy struct { *samforwarder.SAMForwarder Conf *socks5.Config Socks *socks5.Server // contains filtered or unexported fields }
OutProxy is a SAM-based SOCKS outproxy you connect to with a regular TCP tunnel
func NewOutProxy ¶
NewOutProxyd makes a new SAM forwarder with default options, accepts host:port arguments
func NewOutProxyFromOptions ¶
NewOutProxydFromOptions makes a new SAM forwarder with default options, accepts host:port arguments
func (*OutProxy) Serve ¶
Serve starts the SAM connection and and forwards the local host:port to i2p
func (*OutProxy) ServeParent ¶
func (f *OutProxy) ServeParent()