conntrack

package
v1.10.8-beta.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const NoConnectionToDelete = "0 flow entries have been deleted"

NoConnectionToDelete is the error string returned by conntrack when no matching connections are found

Variables

This section is empty.

Functions

func ClearEntriesForIP

func ClearEntriesForIP(execer exec.Interface, ip string, protocol v1.Protocol) error

ClearEntriesForIP uses the conntrack tool to delete the conntrack entries for the UDP connections specified by the given service IP

func ClearEntriesForNAT

func ClearEntriesForNAT(execer exec.Interface, origin, dest string, protocol v1.Protocol) error

ClearEntriesForNAT uses the conntrack tool to delete the conntrack entries for connections specified by the {origin, dest} IP pair.

func ClearEntriesForPort

func ClearEntriesForPort(execer exec.Interface, port int, isIPv6 bool, protocol v1.Protocol) error

ClearEntriesForPort uses the conntrack tool to delete the conntrack entries for connections specified by the port. When a packet arrives, it will not go through NAT table again, because it is not "the first" packet. The solution is clearing the conntrack. Known issues: https://github.com/docker/docker/issues/8795 https://github.com/kubernetes/kubernetes/issues/31983

func Exec

func Exec(execer exec.Interface, parameters ...string) error

Exec executes the conntrack tool using the given parameters

func Exists

func Exists(execer exec.Interface) bool

Exists returns true if conntrack binary is installed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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