firewall

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blocker

type Blocker interface {
	BlockIP(address net.IP) error
	BlockIPList(blacklist []net.IP) error
	UnblockIP(address net.IP) error
	ResetFirewallRules() error
}

type NetInterface

type NetInterface struct {
	Name      string
	Addresses []string
}

func ListNetInterfaces

func ListNetInterfaces() ([]NetInterface, error)

TODO: Add config option to bind to a specific network interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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