Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Start ¶
func Start(ipt *iptables.IPTablesInstance, rulesFile string) int
Start run fwdctl in daemon mode The flow has the following steps: - Open the rules file - Create all the defined forwards - Start listening on rules file changes - When file changes:
- Calculate the Diff between old and new ruleset
- Delete unwanted forwards
- Create wanted forawrds
- Listen for SIGTERM signals to gracefuly shutdown - When SIGTERM signal occurs:
- Delete all the applied forwards
- Shutdown the daemon
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.