redir

package
v0.0.0-...-277102e Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: GPL-3.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const GETSOCKOPT = syscall.SYS_GETSOCKOPT
View Source
const (
	SO_ORIGINAL_DST = 80 // from linux/include/uapi/linux/netfilter_ipv4.h
)

Variables

This section is empty.

Functions

func EnableUDPTProxy

func EnableUDPTProxy(conn *net.UDPConn) error

EnableUDPTProxy enable tproxy for udp sockets at linux

func GetOrigDst

func GetOrigDst(conn net.Conn) (string, error)

Get the original destination of a TCP connection.

func GetOrigDstFromOob

func GetOrigDstFromOob(oob []byte) (*net.UDPAddr, error)

GetOrigDstFromOob get the original destination from oob data

func Getorigdst

func Getorigdst(fd uintptr) (string, error)

Call getorigdst() from linux/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c

Types

This section is empty.

Jump to

Keyboard shortcuts

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