Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain struct {
Name string
Policy Policy.Enum
Rules []Rule
// contains filtered or unexported fields
}
Chain ...
func (*Chain) RemoveIndex ¶
RemoveIndex removes a rule by its index in the chain
type Firewall ¶
Firewall implements a Firewall based on iptables
func NewFirewall ¶
NewFirewall creates a new instance of Firewall and returns a pointer to it
func (*Firewall) FromSystem ¶
FromSystem loads the current Firewall configuration from system
type Rule ¶
type Rule struct {
Action Action.Enum
Protocol string
From string
FromPort string
To string
ToPort string
}
Rule defines a firewall rule
Click to show internal directories.
Click to hide internal directories.