tproxy

package
v0.0.0-...-45a9176 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PROXY_FWMARK      = "0x2d0"
	PROXY_ROUTE_TABLE = "0x2d0"
)
View Source
const (
	IPV6_TRANSPARENT     = 0x4b
	IPV6_RECVORIGDSTADDR = 0x4a
)

Variables

This section is empty.

Functions

func CleanupTProxyIPTables

func CleanupTProxyIPTables()

func SetTProxyIPTables

func SetTProxyIPTables(ifname string, bypass []string, tport uint16, dport uint16) error

Types

type Listener

type Listener struct {
	// contains filtered or unexported fields
}

func New

func New(addr string, in chan<- C.ConnContext, additions ...inbound.Addition) (*Listener, error)

func (*Listener) Address

func (l *Listener) Address() string

Address implements C.Listener

func (*Listener) Close

func (l *Listener) Close() error

Close implements C.Listener

func (*Listener) RawAddress

func (l *Listener) RawAddress() string

RawAddress implements C.Listener

type UDPListener

type UDPListener struct {
	// contains filtered or unexported fields
}

func NewUDP

func NewUDP(addr string, in chan<- C.PacketAdapter, natTable C.NatTable, additions ...inbound.Addition) (*UDPListener, error)

func (*UDPListener) Address

func (l *UDPListener) Address() string

Address implements C.Listener

func (*UDPListener) Close

func (l *UDPListener) Close() error

Close implements C.Listener

func (*UDPListener) RawAddress

func (l *UDPListener) RawAddress() string

RawAddress implements C.Listener

Jump to

Keyboard shortcuts

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