summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Zeng <seanzxx@me.com>2015-03-18 09:25:41 -0700
committerSean Zeng <seanzxx@me.com>2015-03-18 09:25:41 -0700
commit10dc229125abcf4b24d8e54ac809a73e453fb0c9 (patch)
tree1cbac843c4daa52cb701a708f60b11f49e4b2458
parentcd77ad5e7b8f53718c8165676be4db35b7680a11 (diff)
fix bootstrapping issue when pf started before
-rw-r--r--src/firewall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firewall.py b/src/firewall.py
index fadf822..b255ee0 100644
--- a/src/firewall.py
+++ b/src/firewall.py
@@ -498,7 +498,7 @@ def do_pf(port, dnsport, family, subnets, udp):
with open(pf_config_file, 'w+') as f:
f.write('\n'.join(tables + translating_rules + filtering_rules) + '\n')
- pfctl('-ef', pf_config_file)
+ pfctl('-Ef', pf_config_file)
os.remove(pf_config_file)
else:
pfctl('-dF', 'all')