firewall

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRouterNft

func RegisterRouterNft(router *mux.Router)

Types

type Chain

type Chain struct {
	Name     string `json:"Name"`
	Family   string `json:"Family"`
	Table    string `json:"Table"`
	Hook     string `json:"Hook"`
	Priority string `json:"Priority"`
	Type     string `json:"Type"`
	Policy   string `json:"Policy"`
}

type Nft

type Nft struct {
	Table   Table    `json:"Table"`
	Chain   Chain    `json:"Chain"`
	Command []string `json:"Command"`
}

func (*Nft) AddChain

func (n *Nft) AddChain(w http.ResponseWriter) error

func (*Nft) AddTable

func (n *Nft) AddTable(w http.ResponseWriter) error

func (*Nft) ParseChain

func (n *Nft) ParseChain(ch *nftables.Chain) error

func (*Nft) ParseTable

func (n *Nft) ParseTable(tbl *nftables.Table) error

func (*Nft) RemoveChain

func (n *Nft) RemoveChain(w http.ResponseWriter) error

func (*Nft) RemoveTable

func (n *Nft) RemoveTable(w http.ResponseWriter) error

func (*Nft) RunNFT

func (n *Nft) RunNFT(w http.ResponseWriter) error

func (*Nft) SaveNFT

func (n *Nft) SaveNFT(w http.ResponseWriter) error

func (*Nft) ShowChain

func (n *Nft) ShowChain(w http.ResponseWriter) error

func (*Nft) ShowTable

func (n *Nft) ShowTable(w http.ResponseWriter) error

type Table

type Table struct {
	Name   string `json:"Name"`
	Family string `json:"Family"`
}

Jump to

Keyboard shortcuts

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