Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KatelynHaworth/go-tproxy
/ functions
Functions
18 in github.com/KatelynHaworth/go-tproxy
⨍
Functions
18
◇
Types & classes
2
↓ 21 callers
Method
Close
Close will close the listener from accepting any more connections. Any blocked connections will unblock and close
tproxy_tcp.go:52
↓ 2 callers
Function
tcpAddrToSocketAddr
tcpAddToSockerAddr will convert a TCPAddr into a Sockaddr that may be used when connecting and binding sockets
tproxy_tcp.go:158
↓ 2 callers
Function
udpAddrToSocketAddr
udpAddToSockerAddr will convert a UDPAddr into a Sockaddr that may be used when connecting and binding sockets
tproxy_udp.go:152
↓ 1 callers
Method
Accept
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 callers
Method
AcceptTProxy
AcceptTProxy will accept a TCP connection and wrap it to a TProxy connection to provide TProxy functionality
tproxy_tcp.go:33
↓ 1 callers
Method
DialOriginalDestination
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 callers
Function
handleTCPConn
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 callers
Function
handleUDPConn
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 callers
Function
listenTCP
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 callers
Function
listenUDP
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 callers
Function
tcpAddrFamily
tcpAddrFamily will attempt to work out the address family based on the network and TCP addresses
tproxy_tcp.go:182
↓ 1 callers
Function
udpAddrFamily
udpAddrFamily will attempt to work out the address family based on the network and UDP addresses
tproxy_udp.go:176
Method
Addr
Addr returns the network address the listener is accepting connections from
tproxy_tcp.go:45
Function
DialUDP
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
Function
ListenTCP
ListenTCP will construct a new TCP listener socket with the Linux IP_TRANSPARENT option set on the underlying socket
tproxy_tcp.go:59
Function
ListenUDP
ListenUDP will construct a new UDP listener socket with the Linux IP_TRANSPARENT option set on the underlying socket
tproxy_udp.go:17
Function
ReadFromUDP
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
Function
main
main will initialize the TProxy handling application
example/tproxy_example.go:29