/*NewFirewall is the constructor for the firewall object given a rule map and two boleans:
* failOpen: - false (default) to drop all requests for paths with an undefined trusted netblock
*           - true to allow all traffic to such paths
* log: true to log all dropped requests
 */
NewFirewall is the constructor for the firewall object given a rule map and two boleans:
failOpen: - false (default) to drop all requests for paths with an undefined trusted netblock
- true to allow all traffic to such paths
log: true to log all dropped requests
/ * NewFirewall is the constructor for the firewall object given a rule map and two boleans : * failOpen : - false ( default ) to drop all requests for paths with an undefined trusted netblock * - true to allow all traffic to such paths * log : true to log all dropped requests * /
func NewFirewall(rules map[string][]net.IPNet, failOpen, log bool) *Firewall {
	return &Firewall{
		Rules: Rules{
			PathToNetblocks: rules,
			FailOpen:        failOpen,
		},
		Log: log,
	}
}
func NewFirewall ( rules map [ string ] [ ] net . IPNet , failOpen , log bool ) * Firewall { return & Firewall { Rules : Rules { PathToNetblocks : rules , FailOpen : failOpen , } , Log : log , } }
NewFirewall is the constructor for the firewall object given a rule map and two boleans:
failOpen: - false (default) to drop all requests for paths with an undefined trusted netblock
 true to allow all traffic to such paths
log: true to log all dropped requests
NewFirewall is the constructor for the firewall object given a rule map and two boleans : failOpen : - false ( default ) to drop all requests for paths with an undefined trusted netblock true to allow all traffic to such paths log : true to log all dropped requests