Documentation ¶
Index ¶
- Constants
- Variables
- func Exists(table Table, chain string, rule ...string) bool
- func OperatePortMap(action Action, chain string, rule []string) error
- func PortMapExists(chain string, rule []string) bool
- func PortMapUsed(chain string, proto string, begin, end int) bool
- func Raw(args ...string) ([]byte, error)
- type Action
- type Chain
- type ChainError
- type Table
Constants ¶
Variables ¶
View Source
var (
ErrIptablesNotFound = errors.New("Iptables not found")
)
Functions ¶
func OperatePortMap ¶
Check if a dnat rule exists
func PortMapExists ¶
Types ¶
type ChainError ¶
func (*ChainError) Error ¶
func (e *ChainError) Error() string
Click to show internal directories.
Click to hide internal directories.