block

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: MIT Imports: 4 Imported by: 0

README

block

Documentation

Index

Constants

View Source
const Table string = "filter"

Variables

This section is empty.

Functions

func BlockInbound

func BlockInbound(opt, ip string) bool

action: append, insert, delete

func BlockOutbound

func BlockOutbound(opt, ip string) bool

action: append, insert, delete

func ListRules

func ListRules(opt string, clear bool) ([]string, bool)

action: list, clear

func NewIptables

func NewIptables(s string) (*iptables.IPTables, string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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