conntrack

package
v0.0.0-...-a6598b8 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PortMapFilter

type PortMapFilter struct {
	Protocol     uint8  // udp, tcp, etc.
	ExternalPort uint16 // app external port
	InternalPort uint16 // app internal port
}

PortMapFilter : Custom filter to match on port-mapped flows

func (PortMapFilter) MatchConntrackFlow

func (f PortMapFilter) MatchConntrackFlow(flow *netlink.ConntrackFlow) bool

MatchConntrackFlow : Implements CustomConntrackFilter interface to filter flows

type SrcIPFilter

type SrcIPFilter struct {
	Log       *base.LogObject
	SrcIP     net.IP
	Proto     uint8
	SrcPort   uint16
	Mark      uint32
	MarkMask  uint32
	DebugShow bool
}

SrcIPFilter : Custom filter to match on source IP address, source port, protocol and mark

func (SrcIPFilter) MatchConntrackFlow

func (f SrcIPFilter) MatchConntrackFlow(flow *netlink.ConntrackFlow) bool

MatchConntrackFlow : Implements CustomConntrackFilter interface to filter flows

Jump to

Keyboard shortcuts

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