conntrack

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CTEntryCreate

func CTEntryCreate(e CTEntry) error

CTEntryCreate Addetes the given entry from the conntrack table

func CTEntryDelete

func CTEntryDelete(e CTEntry) error

CTEntryDelete deletes the given entry from the conntrack table

Types

type CTEntry

type CTEntry struct {
	Protocol                string
	OriginalSourceIP        string
	OriginalDestinationIP   string
	OriginalSourcePort      string
	OriginalDestinationPort string
	ReplySourceIP           string
	ReplyDestinationIP      string
	ReplySourcePort         string
	ReplyDestinationPort    string
}

CTEntry represents one entry from the conntrack table Plucking only interested fields, ignoring others

func ListDNAT

func ListDNAT() ([]CTEntry, error)

ListDNAT lists only DNAT conntrack entries

func ListSNAT added in v0.6.6

func ListSNAT() ([]CTEntry, error)

ListSNAT lists only SNAT conntrack entries

Jump to

Keyboard shortcuts

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