firewalld

package
v0.3.10-0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Direct

type Direct struct {
	Rules []*Rule

	XMLName struct{} `xml:"direct"`
}

func NewDirect

func NewDirect(rules ...*Rule) *Direct

func (*Direct) String

func (d *Direct) String() string

type Rule

type Rule struct {
	// required, smaller the number more front the rule in chain
	Priority int `xml:"priority,attr"`
	// required, netfilter table: "nat", "mangle", etc.
	Table string `xml:"table,attr"`
	// required, ip family: "ipv4", "ipv6", "eb"
	IPv string `xml:"ipv,attr"`
	// required, netfilter chain: "FORWARD", custom chain names
	Chain string `xml:"chain,attr"`

	// match and action command line options for {ip,ip6,eb}tables
	Body string `xml:",chardata"`

	XMLName struct{} `xml:"rule"`
}

func NewIP4Rule

func NewIP4Rule(prio int, table, chain, body string) *Rule

func (*Rule) String

func (r *Rule) String() string

Jump to

Keyboard shortcuts

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