Add session firewall (extra security for controlling traffic flow to/from a given node)

This commit is contained in:
Neil Alexander
2018-10-07 17:13:41 +01:00
parent 401960e17e
commit 2e2c58bfef
6 changed files with 103 additions and 2 deletions

View File

@@ -66,6 +66,9 @@ func generateConfig(isAutoconf bool) *nodeConfig {
cfg.IfName = defaults.GetDefaults().DefaultIfName
cfg.IfMTU = defaults.GetDefaults().DefaultIfMTU
cfg.IfTAPMode = defaults.GetDefaults().DefaultIfTAPMode
cfg.SessionFirewall.Enable = false
cfg.SessionFirewall.AllowFromDirect = true
cfg.SessionFirewall.AllowFromRemote = true
return &cfg
}