firewall

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Actions = echo.NewKVData().
	Add(iptables.TargetAccept, `接受`).
	Add(iptables.TargetDrop, `丢弃`).
	Add(iptables.TargetReject, `拒绝`).
	Add(iptables.TargetLog, `记录日志`)
View Source
var Directions = echo.NewKVData().
	Add(iptables.ChainInput, `入站`).
	Add(iptables.ChainOutput, `出站`).
	Add(iptables.ChainPreRouting, `入站前`).
	Add(iptables.ChainPostRouting, `出站后`)
View Source
var IPProtocols = echo.NewKVData().
	Add(`4`, `IPv4`).
	Add(`6`, `IPv6`)
View Source
var NetProtocols = echo.NewKVData().
	Add(iptables.ProtocolTCP, `TCP`).
	Add(iptables.ProtocolUDP, `UDP`).
	Add(iptables.ProtocolICMP, `ICMP`).
	Add(iptables.ProtocolAll, `ALL`)
View Source
var Types = echo.NewKVData().
	Add(iptables.TableFilter, `Filter`).
	Add(iptables.TableNAT, `NAT`).
	Add(iptables.TableMangle, `Mangle`).
	Add(iptables.TableRaw, `Raw`)

Functions

func Engine

func Engine(ipVersionNumber string) driver.Driver

func EngineIPv4

func EngineIPv4() driver.Driver

func EngineIPv6

func EngineIPv6() driver.Driver

func SetFormData

func SetFormData(c echo.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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