User specified iptables rules (#161)

This commit is contained in:
Quentin McGaw
2020-05-18 09:37:34 -04:00
committed by GitHub
parent fd5e7af3ff
commit ab223a5e06
6 changed files with 31 additions and 8 deletions

View File

@@ -193,6 +193,8 @@ func main() {
fatalOnError(err)
err = firewallConf.CreateLocalSubnetsRules(ctx, defaultSubnet, allSettings.Firewall.AllowedSubnets, defaultInterface)
fatalOnError(err)
err = firewallConf.RunUserPostRules(ctx, fileManager, "/iptables/post-rules.txt")
fatalOnError(err)
if allSettings.TinyProxy.Enabled {
err = tinyProxyConf.MakeConf(