tgtun

package
v0.0.0-...-33f1668 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetTelegramAccessList

func SetTelegramAccessList(s []string) func(*TelegramOutProxy) error

SetTelegramAccessList tells the system to treat the accessList as a whitelist

func SetTelegramAccessListType

func SetTelegramAccessListType(s string) func(*TelegramOutProxy) error

SetTelegramAccessListType tells the system to treat the accessList as a whitelist

func SetTelegramAllowZeroIn

func SetTelegramAllowZeroIn(b bool) func(*TelegramOutProxy) error

SetTelegramAllowZeroIn tells the tunnel to accept zero-hop peers

func SetTelegramAllowZeroOut

func SetTelegramAllowZeroOut(b bool) func(*TelegramOutProxy) error

SetTelegramAllowZeroOut tells the tunnel to accept zero-hop peers

func SetTelegramCloseIdle

func SetTelegramCloseIdle(b bool) func(*TelegramOutProxy) error

SetTelegramCloseIdle tells the connection to close it's tunnels during extended idle time.

func SetTelegramCloseIdleTime

func SetTelegramCloseIdleTime(u int) func(*TelegramOutProxy) error

SetTelegramCloseIdleTime sets the time to wait before closing tunnels to idle levels

func SetTelegramCloseIdleTimeMs

func SetTelegramCloseIdleTimeMs(u int) func(*TelegramOutProxy) error

SetTelegramCloseIdleTimeMs sets the time to wait before closing tunnels to idle levels in milliseconds

func SetTelegramCompress

func SetTelegramCompress(b bool) func(*TelegramOutProxy) error

SetTelegramCompress tells clients to use compression

func SetTelegramEncrypt

func SetTelegramEncrypt(b bool) func(*TelegramOutProxy) error

SetTelegramEncrypt tells the router to use an encrypted leaseset

func SetTelegramFastRecieve

func SetTelegramFastRecieve(b bool) func(*TelegramOutProxy) error

SetTelegramFastRecieve tells clients to use compression

func SetTelegramFilePath

func SetTelegramFilePath(s string) func(*TelegramOutProxy) error

SetTelegramFilePath sets the path to save the config file at.

func SetTelegramHost

func SetTelegramHost(s string) func(*TelegramOutProxy) error

SetTelegramHost sets the host of the service to forward

func SetTelegramInBackups

func SetTelegramInBackups(u int) func(*TelegramOutProxy) error

SetTelegramInBackups sets the inbound tunnel backups

func SetTelegramInLength

func SetTelegramInLength(u int) func(*TelegramOutProxy) error

SetTelegramInLength sets the number of hops inbound

func SetTelegramInQuantity

func SetTelegramInQuantity(u int) func(*TelegramOutProxy) error

SetTelegramInQuantity sets the inbound tunnel quantity

func SetTelegramInVariance

func SetTelegramInVariance(i int) func(*TelegramOutProxy) error

SetTelegramInVariance sets the variance of a number of hops inbound

func SetTelegramKeyFile

func SetTelegramKeyFile(s string) func(*TelegramOutProxy) error

SetTelegramKeyFile sets

func SetTelegramLeaseSetKey

func SetTelegramLeaseSetKey(s string) func(*TelegramOutProxy) error

SetTelegramLeaseSetKey sets the host of the TelegramOutProxy's SAM bridge

func SetTelegramLeaseSetPrivateKey

func SetTelegramLeaseSetPrivateKey(s string) func(*TelegramOutProxy) error

SetTelegramLeaseSetPrivateKey sets the host of the TelegramOutProxy's SAM bridge

func SetTelegramLeaseSetPrivateSigningKey

func SetTelegramLeaseSetPrivateSigningKey(s string) func(*TelegramOutProxy) error

SetTelegramLeaseSetPrivateSigningKey sets the host of the TelegramOutProxy's SAM bridge

func SetTelegramMessageReliability

func SetTelegramMessageReliability(s string) func(*TelegramOutProxy) error

SetTelegramMessageReliability sets the host of the TelegramOutProxy's SAM bridge

func SetTelegramName

func SetTelegramName(s string) func(*TelegramOutProxy) error

SetTelegramName sets the host of the TelegramOutProxy's SAM bridge

func SetTelegramOutBackups

func SetTelegramOutBackups(u int) func(*TelegramOutProxy) error

SetTelegramOutBackups sets the inbound tunnel backups

func SetTelegramOutLength

func SetTelegramOutLength(u int) func(*TelegramOutProxy) error

SetTelegramOutLength sets the number of hops outbound

func SetTelegramOutQuantity

func SetTelegramOutQuantity(u int) func(*TelegramOutProxy) error

SetTelegramOutQuantity sets the outbound tunnel quantity

func SetTelegramOutVariance

func SetTelegramOutVariance(i int) func(*TelegramOutProxy) error

SetTelegramOutVariance sets the variance of a number of hops outbound

func SetTelegramPort

func SetTelegramPort(s string) func(*TelegramOutProxy) error

SetTelegramPort sets the port of the service to forward

func SetTelegramReduceIdle

func SetTelegramReduceIdle(b bool) func(*TelegramOutProxy) error

SetTelegramReduceIdle tells the connection to reduce it's tunnels during extended idle time.

func SetTelegramReduceIdleQuantity

func SetTelegramReduceIdleQuantity(u int) func(*TelegramOutProxy) error

SetTelegramReduceIdleQuantity sets minimum number of tunnels to reduce to during idle time

func SetTelegramReduceIdleTime

func SetTelegramReduceIdleTime(u int) func(*TelegramOutProxy) error

SetTelegramReduceIdleTime sets the time to wait before reducing tunnels to idle levels

func SetTelegramReduceIdleTimeMs

func SetTelegramReduceIdleTimeMs(u int) func(*TelegramOutProxy) error

SetTelegramReduceIdleTimeMs sets the time to wait before reducing tunnels to idle levels in milliseconds

func SetTelegramSAMHost

func SetTelegramSAMHost(s string) func(*TelegramOutProxy) error

SetTelegramSAMHost sets the host of the TelegramOutProxy's SAM bridge

func SetTelegramSAMPort

func SetTelegramSAMPort(s string) func(*TelegramOutProxy) error

SetTelegramSAMPort sets the port of the TelegramOutProxy's SAM bridge using a string

func SetTelegramSaveFile

func SetTelegramSaveFile(b bool) func(*TelegramOutProxy) error

SetTelegramSaveFile tells the router to save the tunnel's keys long-term

func SetTelegramSigType

func SetTelegramSigType(s string) func(*TelegramOutProxy) error

SetTelegramSigType sets the type of the forwarder server

func SetTelegramType

func SetTelegramType(s string) func(*TelegramOutProxy) error

SetTelegramType sets the type of the forwarder server

Types

type TelegramOption

type TelegramOption func(*TelegramOutProxy) error

TelegramOption is a TelegramOutProxy Option

type TelegramOutProxy

type TelegramOutProxy struct {
	*samforwarder.SAMForwarder
	*proxy.Proxy
	Conf *config.Config
	// contains filtered or unexported fields
}

TelegramOutProxy is a SAM-based SOCKS outproxy you connect to with a regular TCP tunnel

func NewTelegramOutProxyd

func NewTelegramOutProxyd(host, port string) (*TelegramOutProxy, error)

NewTelegramOutProxyd makes a new SAM forwarder with default options, accepts host:port arguments

func NewTelegramOutProxydFromOptions

func NewTelegramOutProxydFromOptions(opts ...func(*TelegramOutProxy) error) (*TelegramOutProxy, error)

NewTelegramOutProxydFromOptions makes a new SAM forwarder with default options, accepts host:port arguments

func (*TelegramOutProxy) GetType

func (f *TelegramOutProxy) GetType() string

func (*TelegramOutProxy) Load

func (s *TelegramOutProxy) Load() (samtunnel.SAMTunnel, error)

func (*TelegramOutProxy) Serve

func (f *TelegramOutProxy) Serve() error

Serve starts the SAM connection and and forwards the local host:port to i2p

func (*TelegramOutProxy) ServeParent

func (f *TelegramOutProxy) ServeParent()

Jump to

Keyboard shortcuts

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