Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupported = errors.New(`unsupported`)
Functions ¶
Types ¶
type Rule ¶
type Rule struct {
Type string `json:"type" xml:"type"` // filter / nat / etc.
Name string `json:"name" xml:"name"`
Direction string `json:"direction" xml:"direction"` // INPUT / OUTPUT / etc.
Action string `json:"action" xml:"action"` // ACCEPT / DROP / etc.
Protocol string `json:"protocol" xml:"protocol"` // tcp / udp / etc.
// IP or Port
RemoteIP string `json:"remoteIP" xml:"remoteIP"`
LocalIP string `json:"localIP" xml:"localIP"`
RemotePort string `json:"remotePort" xml:"remotePort"`
LocalPort string `json:"localPort" xml:"localPort"`
}
Click to show internal directories.
Click to hide internal directories.