Documentation
¶
Overview ¶
pfSetup, contains wrappers for the most common 'pfctl' commands and functions to fully configure a pf setup.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRuleSet ¶
CheckRuleSet, runs `pfctl -n` to check the syntax validity of the pf rules of the file at the given filePath.
func EnablePF ¶
EnablePF, enables PF. The firewall starts filtering packets, it is just as running 'pfctl -e'.
func PFSetup ¶
PFSetup, does all the required configurations on /etc/rc.conf to have pf working after rebooting the system. Furthermore, it also initializes pflog at boot. This function accepts a *log.Logger informational logger to print out information after running commands.
func RCEnablePF ¶
RCEnablePF, enable pf in /etc/rc.conf. So that it starts at boot.
func RCEnablePflog ¶
RCEnablePflog, enable pflog in /etc/rc.conf. So that it starts at boot.
Types ¶
This section is empty.