linux

package
v0.0.0-...-2b3f9b9 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableIPTables

func DisableIPTables(log *logrus.Entry) error

DisableIPTables disables the iptables rule used by proxy

func EnableIPForwarding

func EnableIPForwarding(log *logrus.Entry) error

EnableIPForwarding enables IPv4 forwarding

func EnableIPTables

func EnableIPTables(log *logrus.Entry) error

EnableIPTables enable the iptables rule used by proxy

func OriginalDest

func OriginalDest(c *net.TCPConn) (*net.TCPAddr, error)

OriginalDest reads the SO_ORIGINAL_DST socket option to find the original destination of an incoming TCP connection redirected using the netfilter REDIRECT extension.

Types

This section is empty.

Jump to

Keyboard shortcuts

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