ipfilter

package
v0.6.3-beta01 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package ipfilter wraps iptables commands and is used to setup Syntropy releated rules

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PacketFilter

type PacketFilter struct {
	// contains filtered or unexported fields
}

func New

func New() (*PacketFilter, error)

func (*PacketFilter) Close

func (pf *PacketFilter) Close() error

func (*PacketFilter) CreateChain

func (pf *PacketFilter) CreateChain() error

func (*PacketFilter) Flush

func (pf *PacketFilter) Flush()

func (*PacketFilter) ForwardEnable

func (pf *PacketFilter) ForwardEnable(ifname string) error

func (*PacketFilter) RulesAdd

func (pf *PacketFilter) RulesAdd(ips ...netip.Prefix) error

func (*PacketFilter) RulesDel

func (pf *PacketFilter) RulesDel(ips ...netip.Prefix) error

Jump to

Keyboard shortcuts

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