rules

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: MIT Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accept

func Accept() []expr.Any

Accept accepts packets.

func ConnectionEstablished

func ConnectionEstablished() []expr.Any

ConnectionEstablished filters established connections.

func DestinationAddress

func DestinationAddress(ip net.IP) []expr.Any

DestinationAddress filters destination address.

func DestinationNAT

func DestinationNAT(ip net.IP, port uint16) []expr.Any

DestinationNAT redirects packets to IP and port.

func DestinationPort

func DestinationPort(port uint16) []expr.Any

DestinationPort filters destination port.

func Expressions

func Expressions(exprs ...[]expr.Any) []expr.Any

Expressions combines expressions into a single list.

func IncomingInterface

func IncomingInterface(iface string) []expr.Any

IncomingInterface filters incoming interface.

func LocalDestinationAddress

func LocalDestinationAddress() []expr.Any

LocalDestinationAddress filters local destination addresses.

func LocalSourceAddress

func LocalSourceAddress() []expr.Any

LocalSourceAddress filters local source addresses.

func Masquerade

func Masquerade() []expr.Any

Masquerade masquerades packets.

func NotIncomingInterface

func NotIncomingInterface(iface string) []expr.Any

NotIncomingInterface filters all interfaces except incoming interface.

func NotSourceAddress

func NotSourceAddress(ip net.IP) []expr.Any

NotSourceAddress filters out packets coming from IP.

func OutgoingInterface

func OutgoingInterface(iface string) []expr.Any

OutgoingInterface filters outgoing interface.

func Protocol

func Protocol(protocol string) []expr.Any

Protocol filters protocol.

func SourceAddress

func SourceAddress(ip net.IP) []expr.Any

SourceAddress filters source address.

func SourceNAT

func SourceNAT(ip net.IP) []expr.Any

SourceNAT changes source address of packets.

func SourceNetwork

func SourceNetwork(network *net.IPNet) []expr.Any

SourceNetwork filters traffic coming from network.

func SourcePort

func SourcePort(port uint16) []expr.Any

SourcePort filters source port.

Types

This section is empty.

Jump to

Keyboard shortcuts

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