Skip to content

Instantly share code, notes, and snippets.

@darkgeek
Created October 12, 2015 06:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darkgeek/3aeeeadc82b5fb488d67 to your computer and use it in GitHub Desktop.
Save darkgeek/3aeeeadc82b5fb488d67 to your computer and use it in GitHub Desktop.
pf.conf
allowed_ports="{8000, 8001, 6600, 3000, 4231, https}"
icmp_types="echoreq"
set skip on lo0
pass in on pppoe0 from pppoe0:network to urtwn0:network keep state
pass out on urtwn0 from pppoe0:network to urtwn0:network keep state
block in all
pass out all keep state
pass in quick inet proto tcp from any to any port $allowed_ports keep state
pass in quick inet proto icmp from any to any icmp-type $icmp_types keep state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment