Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.