Skip to content

Instantly share code, notes, and snippets.

@wujiang
Created January 29, 2016 23:33
Show Gist options
  • Save wujiang/990ae9a3028432ab7dd4 to your computer and use it in GitHub Desktop.
Save wujiang/990ae9a3028432ab7dd4 to your computer and use it in GitHub Desktop.
pf.conf
# $OpenBSD: pf.conf,v 1.54 2014/08/23 05:49:42 deraadt Exp $
#
# See pf.conf(5) and /etc/examples/pf.conf
set skip on lo
block return # block stateless traffic
pass # establish keep-state
# By default, do not permit remote connections to X11
block return in on ! lo0 proto tcp to port 6000:6010
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment