Created
January 20, 2016 17:44
-
-
Save justrjlewis/4ddcca3d60ac7012399a to your computer and use it in GitHub Desktop.
Bind to lower ports on freebsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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