Documentation ¶
Overview ¶
Package filters contains the options for configuring NFTables filtering
Index ¶
- Variables
- type Statement
- func Destination(netw *net.IPNet) Statement
- func DestinationIP(fmts string, args ...any) Statement
- func DestinationIPv4(a, b, c, d byte, m int) Statement
- func DestinationPort(portNum uint16) Statement
- func DestinationPortRange(minPort, maxPort uint16) Statement
- func InputInterfaceGroup(idx uint32) Statement
- func InputInterfaceIndex(idx uint32) Statement
- func InputInterfaceName(name string) Statement
- func OutputInterfaceGroup(idx uint32) Statement
- func OutputInterfaceIndex(idx uint32) Statement
- func OutputInterfaceName(name string) Statement
- func Protocol(proto int) Statement
- func Source(netw *net.IPNet) Statement
- func SourceIP(fmts string, args ...any) Statement
- func SourceIPv4(a, b, c, d byte, m int) Statement
- func SourcePort(portNum uint16) Statement
- func SourcePortRange(minPort, maxPort uint16) Statement
- func TransportProtocol(proto int) Statement
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 ¶
Statement is a list of one or more nftables expressions
func Destination ¶
func DestinationIP ¶
func DestinationIPv4 ¶
func DestinationPort ¶
func DestinationPortRange ¶
func InputInterfaceGroup ¶
func InputInterfaceIndex ¶
func InputInterfaceName ¶
func OutputInterfaceGroup ¶
func OutputInterfaceIndex ¶
func OutputInterfaceName ¶
func SourceIPv4 ¶
func SourcePort ¶
func SourcePortRange ¶
func TransportProtocol ¶
Click to show internal directories.
Click to hide internal directories.