Skip to content

Instantly share code, notes, and snippets.

@justrjlewis
Created January 20, 2016 17:44
Show Gist options
  • Save justrjlewis/4ddcca3d60ac7012399a to your computer and use it in GitHub Desktop.
Save justrjlewis/4ddcca3d60ac7012399a to your computer and use it in GitHub Desktop.
Bind to lower ports on freebsd
# add to: /etc/sysctl.conf
net.inet.ip.portrange.reservedlow=0
net.inet.ip.portrange.reservedhigh=0
security.mac.portacl.port_high=1023
security.mac.portacl.suser_exempt=1
security.mac.portacl.rules=uid:[uid for desired user]:tcp:80,uid:[uid for desired user]:tcp:443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment