rules

package
v0.0.0-...-3e36787 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 6 Imported by: 0

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