Documentation ¶
Index ¶
Constants ¶
View Source
const ( SO_ORIGINAL_DST = 80 // from linux/include/uapi/linux/netfilter_ipv4.h IP6T_SO_ORIGINAL_DST = 80 // from linux/include/uapi/linux/netfilter_ipv6/ip6_tables.h )
View Source
const ( IPV6_TRANSPARENT = 0x4b IPV6_RECVORIGDSTADDR = 0x4a )
View Source
const GETSOCKOPT = syscall.SYS_GETSOCKOPT
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedirListener ¶
func NewRedirProxy ¶
func NewRedirProxy(addr string) (*RedirListener, error)
func (*RedirListener) Address ¶
func (l *RedirListener) Address() string
func (*RedirListener) Close ¶
func (l *RedirListener) Close()
type RedirUDPListener ¶
type RedirUDPListener struct { net.PacketConn // contains filtered or unexported fields }
func NewRedirUDPProxy ¶
func NewRedirUDPProxy(addr string) (*RedirUDPListener, error)
func (*RedirUDPListener) Address ¶
func (l *RedirUDPListener) Address() string
func (*RedirUDPListener) Close ¶
func (l *RedirUDPListener) Close() error
type TProxyListener ¶
func NewTProxy ¶
func NewTProxy(addr string) (*TProxyListener, error)
func (*TProxyListener) Address ¶
func (l *TProxyListener) Address() string
func (*TProxyListener) Close ¶
func (l *TProxyListener) Close()
Click to show internal directories.
Click to hide internal directories.