filters

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

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,
	},
}

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 added in v1.5.1

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

func DestinationIPv4 added in v1.5.1

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 added in v1.5.1

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

func SourceIPv4 added in v1.5.1

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