diff options
author | Kali Kaneko <kali@leap.se> | 2018-07-06 00:03:45 +0200 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2018-07-07 04:56:57 +0200 |
commit | eb9fd2fda54a17ddcabc596b0b6555ab4e1df205 (patch) | |
tree | ba6e128761c4cfc0dbf3a6fbc7542212bf16fe70 /osx/bitmask.pf.conf | |
parent | 1cd5eedba79ad555ee486db263b598b195ff2128 (diff) |
[feat] port osx firewall implementation
Diffstat (limited to 'osx/bitmask.pf.conf')
-rw-r--r-- | osx/bitmask.pf.conf | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/osx/bitmask.pf.conf b/osx/bitmask.pf.conf new file mode 100644 index 0000000..eb0e858 --- /dev/null +++ b/osx/bitmask.pf.conf @@ -0,0 +1,17 @@ +default_device = "en99" + +set block-policy drop +set skip on lo0 + +# block all traffic on default device +block out on $default_device all + +# allow traffic to gateways +pass out on $default_device to <bitmask_gateways> + +# allow traffic to local networks over the default device +pass out on $default_device to $default_device:network + +# block all DNS, except to the gateways +block out proto udp to any port 53 +pass out proto udp to <bitmask_gateways> port 53 |