filters

package
v2.11.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package filters contains the options for configuring NFTables filtering

Index

Constants

This section is empty.

Variables

View Source
var Drop = Statement{
	&expr.Verdict{
		Kind: expr.VerdictDrop,
	},
}

Drop is a statement which drops all packets

Functions

This section is empty.

Types

type Statement

type Statement []expr.Any

Statement is a list of one or more nftables expressions

func Destination

func Destination(netw *net.IPNet) Statement

func DestinationIP

func DestinationIP(fmts string, args ...any) Statement

func DestinationIPv4

func DestinationIPv4(a, b, c, d byte, m int) Statement

func DestinationPort

func DestinationPort(portNum uint16) Statement

func DestinationPortRange

func DestinationPortRange(minPort, maxPort uint16) Statement

func InputInterfaceGroup

func InputInterfaceGroup(idx uint32) Statement

func InputInterfaceIndex

func InputInterfaceIndex(idx uint32) Statement

func InputInterfaceName

func InputInterfaceName(name string) Statement

func OutputInterfaceGroup

func OutputInterfaceGroup(idx uint32) Statement

func OutputInterfaceIndex

func OutputInterfaceIndex(idx uint32) Statement

func OutputInterfaceName

func OutputInterfaceName(name string) Statement

func Protocol

func Protocol(proto int) Statement

func Source

func Source(netw *net.IPNet) Statement

func SourceIP

func SourceIP(fmts string, args ...any) Statement

func SourceIPv4

func SourceIPv4(a, b, c, d byte, m int) Statement

func SourcePort

func SourcePort(portNum uint16) Statement

func SourcePortRange

func SourcePortRange(minPort, maxPort uint16) Statement

func TransportProtocol

func TransportProtocol(proto int) Statement

Jump to

Keyboard shortcuts

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