firewall

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 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 added in v0.10.0

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 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 SourceNetwork

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

SourceNetwork filters traffic coming from network.

Types

This section is empty.

Jump to

Keyboard shortcuts

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