Skip to content

Instantly share code, notes, and snippets.

@dronov
Last active August 29, 2015 14:16
Show Gist options
  • Save dronov/d55f6ce82d67794d5797 to your computer and use it in GitHub Desktop.
Save dronov/d55f6ce82d67794d5797 to your computer and use it in GitHub Desktop.
# /etc/pf.conf
ext_if="re0"
int_if="wlan0"
set skip on lo0
scrub in all
nat on $ext_if from $int_if:network to any -> ($ext_if)
block all
pass in on $int_if from any to any
pass out on $ext_if from $ext_if to any
pass in on $ext_if proto tcp from any to $ext_if port ssh
pass in inet proto icmp all icmp-type echoreq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment