Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Jun 2010 09:15:11 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Andrew Hotlab <andrew.hotlab@hotmail.com>
Cc:        freebsd-jail@freebsd.org, samankaya@netscape.net
Subject:   RE: Strange things happening with jails?? Not starting up on boot or services not running inside!
Message-ID:  <20100604091511.123441fooipqt0ys@webmail.leidinger.net>
In-Reply-To: <BLU138-W35932975B5E41FC33DF781F6D10@phx.gbl>
References:  <BLU138-W35932975B5E41FC33DF781F6D10@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Andrew Hotlab <andrew.hotlab@hotmail.com> (from Thu, 3 Jun  
2010 22:04:44 +0000):

> I've never had to make Squid listening on port 80, but referring its  
> startup script in /usr/local/etc/rc.d/:
>
> # squid_user:   The user id that should be used to run the Squid master
> #               process. Default: squid.
> #               Note that you probably need to define "squid_user=root" if
> #               you want to run Squid in reverse proxy setups or if you want
> #               Squid to listen on a "privileged" port < 1024.
>
> So you only need to write the following line in /etc/rc.conf to have  
> Squid listening on this privileged port:
> squid_user="root"

An alternative is to change the sysctl  
net.inet.ip.portrange.reservedhigh. By lowering it, other users than  
root are allowed to bind to ports <1023 (the system prevents non-root  
binds to the port X in the range reservedlow <= X <= reservedhigh).

Bye,
Alexander.

-- 
The District of Columbia has a law forbidding you to exert pressure on
a balloon and thereby cause a whistling sound on the streets.

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100604091511.123441fooipqt0ys>