Documentation ¶
Index ¶
- Constants
- type Address
- type Entry
- type Translator
- func (t *Translator) ClearTCP(p *supervisor.Process, ip, port string)
- func (t *Translator) ClearUDP(p *supervisor.Process, ip, port string)
- func (t *Translator) Disable(p *supervisor.Process)
- func (t *Translator) Enable(p *supervisor.Process)
- func (t *Translator) ForwardTCP(p *supervisor.Process, ip, port, toPort string)
- func (t *Translator) ForwardUDP(p *supervisor.Process, ip, port, toPort string)
- func (t *Translator) GetOriginalDst(conn *net.TCPConn) (rawaddr []byte, host string, err error)
Constants ¶
View Source
const ( SO_ORIGINAL_DST = 80 IP6T_SO_ORIGINAL_DST = 80 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Translator ¶
type Translator struct {
// contains filtered or unexported fields
}
func NewTranslator ¶
func NewTranslator(name string) *Translator
func (*Translator) ClearTCP ¶
func (t *Translator) ClearTCP(p *supervisor.Process, ip, port string)
func (*Translator) ClearUDP ¶
func (t *Translator) ClearUDP(p *supervisor.Process, ip, port string)
func (*Translator) Disable ¶
func (t *Translator) Disable(p *supervisor.Process)
func (*Translator) Enable ¶
func (t *Translator) Enable(p *supervisor.Process)
func (*Translator) ForwardTCP ¶
func (t *Translator) ForwardTCP(p *supervisor.Process, ip, port, toPort string)
func (*Translator) ForwardUDP ¶
func (t *Translator) ForwardUDP(p *supervisor.Process, ip, port, toPort string)
func (*Translator) GetOriginalDst ¶
get the original destination for the socket when redirect by linux iptables refer to https://raw.githubusercontent.com/missdeer/avege/master/src/inbound/redir/redir_iptables.go
Click to show internal directories.
Click to hide internal directories.