Documentation ¶
Overview ¶
Package linuxfw returns the kind of firewall being used by the kernel.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrUnsupported = errors.New("unsupported")
ErrUnsupported is the error returned from all functions on non-Linux platforms.
Functions ¶
func DebugIptables ¶
DebugNetfilter prints debug information about iptables rules to the provided log function.
func DebugNetfilter ¶
DebugNetfilter prints debug information about netfilter rules to the provided log function.
func DetectIptables ¶
DetectIptables returns the number of iptables rules that are present in the system, ignoring the default "ACCEPT" rule present in the standard iptables chains.
It only returns an error when the kernel returns an error (i.e. when a syscall fails); when there are no iptables rules, it is valid for this function to return 0, nil.
func DetectNetfilter ¶
DetectNetfilter returns the number of nftables rules present in the system.
Types ¶
This section is empty.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package linuxfwtest contains tests for the linuxfw package.
|
Package linuxfwtest contains tests for the linuxfw package. |