Documentation ¶
Overview ¶
This code below is referenced at https://github.com/Asphaltt/go-tproxy/blob/master/tproxy_tcp.go Because the code needs to be customized somewhere, the project is not directly imported
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conn ¶
Conn describes a connection accepted by the TProxy listener.
It is simply a TCP connection with the ability to dial a connection to the original destination while assuming the IP address of the client
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
Listener describes a TCP Listener with the Linux IP_TRANSPARENT option defined on the listening socket
func (*Listener) Accept ¶
Accept waits for and returns the next connection to the listener.
This command wraps the AcceptTProxy method of the Listener
func (*Listener) AcceptTProxy ¶
AcceptTProxy will accept a TCP connection and wrap it to a TProxy connection to provide TProxy functionality