firewallField

package
v0.0.0-...-b35749e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

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

func ActionTypeFromString

func ActionTypeFromString(chainString string) (Action, error)

func (Action) GetString

func (ctx Action) GetString() string

func (Action) GetValue

func (ctx Action) GetValue() ActionType

func (*Action) SetValue

func (ctx *Action) SetValue(value ActionType)

func (*Action) TryInitFromString

func (ctx *Action) TryInitFromString(param string) error

type ActionType

type ActionType uint8
const (
	ACTION_INVALID ActionType = 0xFF
	ACTION_ACCEPT  ActionType = 0
	ACTION_DROP    ActionType = 1
	ACTION_REJECT  ActionType = 3
	ACTION_JUMP    ActionType = 4
	ACTION_LOG     ActionType = 5
)

type Address

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

func AddressTypeFromString

func AddressTypeFromString(idString string) (Address, error)

func (Address) GetString

func (ctx Address) GetString() string

func (Address) GetValue

func (ctx Address) GetValue() netip.Addr

func (*Address) SetValue

func (ctx *Address) SetValue(value netip.Addr)

func (*Address) TryInitFromString

func (ctx *Address) TryInitFromString(param string) error

type Bool

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

func BoolTypeFromString

func BoolTypeFromString(idString string) (Bool, error)

func (Bool) GetString

func (ctx Bool) GetString() string

func (Bool) GetValue

func (ctx Bool) GetValue() bool

func (*Bool) SetValue

func (ctx *Bool) SetValue(value bool)

func (*Bool) TryInitFromString

func (ctx *Bool) TryInitFromString(param string) error

type Chain

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

func ChainTypeFromString

func ChainTypeFromString(chainString string) (Chain, error)

func (Chain) GetString

func (ctx Chain) GetString() string

func (Chain) GetValue

func (ctx Chain) GetValue() ChainType

func (*Chain) SetValue

func (ctx *Chain) SetValue(value ChainType)

func (*Chain) TryInitFromString

func (ctx *Chain) TryInitFromString(param string) error

type ChainType

type ChainType uint8
const (
	INVALID ChainType = 0xFF
	INPUT   ChainType = 0
	FORWARD ChainType = 1
	OUTPUT  ChainType = 2
)

type Number

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

func NumberTypeFromString

func NumberTypeFromString(idString string) (Number, error)

func (Number) GetString

func (ctx Number) GetString() string

func (Number) GetValue

func (ctx Number) GetValue() uint64

func (*Number) SetValue

func (ctx *Number) SetValue(value uint64)

func (*Number) TryInitFromString

func (ctx *Number) TryInitFromString(param string) error

type Port

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

func PortTypeFromString

func PortTypeFromString(idString string) (Port, error)

func (Port) GetString

func (ctx Port) GetString() string

func (Port) GetValue

func (ctx Port) GetValue() uint16

func (*Port) SetValue

func (ctx *Port) SetValue(value uint16)

func (*Port) TryInitFromString

func (ctx *Port) TryInitFromString(param string) error

type Protocol

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

func ProtocolTypeFromString

func ProtocolTypeFromString(protocolString string) (Protocol, error)

func (Protocol) GetString

func (ctx Protocol) GetString() string

func (*Protocol) GetValue

func (ctx *Protocol) GetValue() ProtocolType

func (*Protocol) SetValue

func (ctx *Protocol) SetValue(protocol ProtocolType)

func (*Protocol) TryInitFromString

func (ctx *Protocol) TryInitFromString(param string) error

func (*Protocol) UnmarshalYAML

func (ctx *Protocol) UnmarshalYAML(unmarshal func(interface{}) error) error

type ProtocolType

type ProtocolType uint64
const (
	PROTOCOL_INVALID ProtocolType = 0xFFFFFFFFFFFFFFFF
	IP               ProtocolType = 0
	ICMP             ProtocolType = 1
	IGMP             ProtocolType = 2
	GGP              ProtocolType = 3
	IPENCAP          ProtocolType = 4
	ST2              ProtocolType = 5
	TCP              ProtocolType = 6
	CBT              ProtocolType = 7
	EGP              ProtocolType = 8
	IGP              ProtocolType = 9
	BBN_RCC          ProtocolType = 10
	NVP              ProtocolType = 11
	PUP              ProtocolType = 12
	ARGUS            ProtocolType = 13
	EMCON            ProtocolType = 14
	XNET             ProtocolType = 15
	CHAOS            ProtocolType = 16
	UDP              ProtocolType = 17
	MUX              ProtocolType = 18
	DCN              ProtocolType = 19
	HMP              ProtocolType = 20
	PRM              ProtocolType = 21
	XNS_IDP          ProtocolType = 22
	TRUNK_1          ProtocolType = 23
	TRUNK_2          ProtocolType = 24
	LEAF_1           ProtocolType = 25
	LEAF_2           ProtocolType = 26
	RDP              ProtocolType = 27
	IRTP             ProtocolType = 28
	ISO_TP4          ProtocolType = 29
	NETBLT           ProtocolType = 30
	MFE_NSP          ProtocolType = 31
	MERIT_INP        ProtocolType = 32
	DCCP             ProtocolType = 33
	THREE_PC         ProtocolType = 34
	IDPR             ProtocolType = 35
	XTP              ProtocolType = 36
	DDP              ProtocolType = 37
	IDPR_CMTP        ProtocolType = 38
	TPPLUSPLUS       ProtocolType = 39
	IL               ProtocolType = 40
	IPV6             ProtocolType = 41
	SDRP             ProtocolType = 42
	IPV6_ROUTE       ProtocolType = 43
	IPV6_FRAG        ProtocolType = 44
	IDRP             ProtocolType = 45
	RSVP             ProtocolType = 46
	GRE              ProtocolType = 47
	DSR              ProtocolType = 48
	BNA              ProtocolType = 49
	ESP              ProtocolType = 50
	AH               ProtocolType = 51
	I_NLSP           ProtocolType = 52
	SWIPE            ProtocolType = 53
	NARP             ProtocolType = 54
	MOBILE           ProtocolType = 55
	TLSP             ProtocolType = 56
	SKIP             ProtocolType = 57
	IPV6_ICMP        ProtocolType = 58
	IPV6_NONXT       ProtocolType = 59
	IPV6_OPTS        ProtocolType = 60
	CFTP             ProtocolType = 62
	SAT_EXPAK        ProtocolType = 64
	KRYPTOLAN        ProtocolType = 65
	RVD              ProtocolType = 66
	IPPC             ProtocolType = 67
	SAT_MON          ProtocolType = 69
	VISA             ProtocolType = 70
	IPCV             ProtocolType = 71
	CPNX             ProtocolType = 72
	CPHB             ProtocolType = 73
	WSN              ProtocolType = 74
	PVP              ProtocolType = 75
	BR_SAT_MON       ProtocolType = 76
	SUN_ND           ProtocolType = 77
	WB_MON           ProtocolType = 78
	WB_EXPAK         ProtocolType = 79
	ISO_IP           ProtocolType = 80
	VMTP             ProtocolType = 81
	SECURE_VMTP      ProtocolType = 82
	VINES            ProtocolType = 83
	TTP              ProtocolType = 84
	NSFNET_IGP       ProtocolType = 85
	DGP              ProtocolType = 86
	TCF              ProtocolType = 87
	EIGRP            ProtocolType = 88
	OSPF             ProtocolType = 89
	SPRITE_RPC       ProtocolType = 90
	LARP             ProtocolType = 91
	MTP              ProtocolType = 92
	AX_25            ProtocolType = 93
	IPIP             ProtocolType = 94
	MICP             ProtocolType = 95
	SCC_SP           ProtocolType = 96
	ETHERIP          ProtocolType = 97
	ENCAP            ProtocolType = 98
	GMTP             ProtocolType = 100
	IFMP             ProtocolType = 101
	PNNI             ProtocolType = 102
	PIM              ProtocolType = 103
	ARIS             ProtocolType = 104
	SCPS             ProtocolType = 105
	QNX              ProtocolType = 106
	A_N              ProtocolType = 107
	IPCOMP           ProtocolType = 108
	SNP              ProtocolType = 109
	COMPAQ_PEER      ProtocolType = 110
	IPX_IN_IP        ProtocolType = 111
	CARP             ProtocolType = 112
	PGM              ProtocolType = 113
	L2TP             ProtocolType = 115
	DDX              ProtocolType = 116
	IATP             ProtocolType = 117
	STP              ProtocolType = 118
	SRP              ProtocolType = 119
	UTI              ProtocolType = 120
	SMP              ProtocolType = 121
	SM               ProtocolType = 122
	PTP              ProtocolType = 123
	ISIS             ProtocolType = 124
	FIRE             ProtocolType = 125
	CRTP             ProtocolType = 126
	CRUDP            ProtocolType = 127
	SSCOPMCE         ProtocolType = 128
	IPLT             ProtocolType = 129
	SPS              ProtocolType = 130
	PIPE             ProtocolType = 131
	SCTP             ProtocolType = 132
	FC               ProtocolType = 133
	RSVP_E2E_IGNORE  ProtocolType = 134
	MOBILITY_HEADER  ProtocolType = 135
	UDPLITE          ProtocolType = 136
	MPLS_IN_IP       ProtocolType = 137
	MANET            ProtocolType = 138
	HIP              ProtocolType = 139
	SHIM6            ProtocolType = 140
	WESP             ProtocolType = 141
	ROHC             ProtocolType = 142
	PFSYNC           ProtocolType = 240
	DIVERT           ProtocolType = 258
)

Extracted from: /etc/protocols

type Text

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

func TextTypeFromString

func TextTypeFromString(idString string) (Text, error)

func (Text) GetString

func (ctx Text) GetString() string

func (Text) GetValue

func (ctx Text) GetValue() string

func (*Text) SetValue

func (ctx *Text) SetValue(value string)

func (*Text) TryInitFromString

func (ctx *Text) TryInitFromString(param string) error

Jump to

Keyboard shortcuts

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