JeffreyGriffin.com

Archive for October, 2018

Enable Non-Root Binding to Port 80 in a FreeNAS Jail

If you are trying to get a service running as an unprivileged user to bind to port 80 in a FreeNAS iocage jail you will need to do the following:

Set securelevel of the jail in Jail Properties to -1

Add the following two lines to /etc/sysctl.conf inside the jail:

net.inet.ip.portrange.reservedlow=0
net.inet.ip.portrange.reservedhigh=0

posted by Jeff in Uncategorized and have Comment (1)