MCPcopy Create free account

hub / github.com/KatelynHaworth/go-tproxy / functions

Functions18 in github.com/KatelynHaworth/go-tproxy

↓ 21 callersMethodClose
Close will close the listener from accepting any more connections. Any blocked connections will unblock and close
tproxy_tcp.go:52
↓ 2 callersFunctiontcpAddrToSocketAddr
tcpAddToSockerAddr will convert a TCPAddr into a Sockaddr that may be used when connecting and binding sockets
tproxy_tcp.go:158
↓ 2 callersFunctionudpAddrToSocketAddr
udpAddToSockerAddr will convert a UDPAddr into a Sockaddr that may be used when connecting and binding sockets
tproxy_udp.go:152
↓ 1 callersMethodAccept
Accept waits for and returns the next connection to the listener. This command wraps the AcceptTProxy method of the Listener
tproxy_tcp.go:26
↓ 1 callersMethodAcceptTProxy
AcceptTProxy will accept a TCP connection and wrap it to a TProxy connection to provide TProxy functionality
tproxy_tcp.go:33
↓ 1 callersMethodDialOriginalDestination
DialOriginalDestination will open a TCP connection to the original destination that the client was trying to connect to before being intercepted. Whe
tproxy_tcp.go:100
↓ 1 callersFunctionhandleTCPConn
handleTCPConn will open a connection to the original destination pretending to be the client. From there it will setup two routines to stream data bet
example/tproxy_example.go:159
↓ 1 callersFunctionhandleUDPConn
handleUDPConn will open a connection to the original destination pretending to be the client. It will when right the received data to the remote host
example/tproxy_example.go:106
↓ 1 callersFunctionlistenTCP
listenTCP runs in a routine to accept TCP connections and hand them off into their own routines for handling
example/tproxy_example.go:84
↓ 1 callersFunctionlistenUDP
listenUDP runs in a routine to accept UDP connections and hand them off into their own routines for handling
example/tproxy_example.go:63
↓ 1 callersFunctiontcpAddrFamily
tcpAddrFamily will attempt to work out the address family based on the network and TCP addresses
tproxy_tcp.go:182
↓ 1 callersFunctionudpAddrFamily
udpAddrFamily will attempt to work out the address family based on the network and UDP addresses
tproxy_udp.go:176
MethodAddr
Addr returns the network address the listener is accepting connections from
tproxy_tcp.go:45
FunctionDialUDP
DialUDP connects to the remote address raddr on the network net, which must be "udp", "udp4", or "udp6". If laddr is not nil, it is used as the local
tproxy_udp.go:101
FunctionListenTCP
ListenTCP will construct a new TCP listener socket with the Linux IP_TRANSPARENT option set on the underlying socket
tproxy_tcp.go:59
FunctionListenUDP
ListenUDP will construct a new UDP listener socket with the Linux IP_TRANSPARENT option set on the underlying socket
tproxy_udp.go:17
FunctionReadFromUDP
ReadFromUDP reads a UDP packet from c, copying the payload into b. It returns the number of bytes copied into b and the return address that was on the
tproxy_udp.go:47
Functionmain
main will initialize the TProxy handling application
example/tproxy_example.go:29