From owner-freebsd-questions@FreeBSD.ORG Tue Mar 23 17:21:16 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 06D2F1065670 for ; Tue, 23 Mar 2010 17:21:16 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 825798FC12 for ; Tue, 23 Mar 2010 17:21:15 +0000 (UTC) Received: from vhoffman.lon.namesco.net (184.67-246-213.ippool.namesco.net [213.246.67.184]) (authenticated bits=0) by unsane.co.uk (8.14.3/8.14.3) with ESMTP id o2NHLDDJ090547 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 23 Mar 2010 17:21:14 GMT (envelope-from vince@unsane.co.uk) Message-ID: <4BA8F889.2080207@unsane.co.uk> Date: Tue, 23 Mar 2010 17:21:13 +0000 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: "freebsd-questions@FreeBSD.org" X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: lighttpd in a jail says address is already in use (its not) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2010 17:21:16 -0000 Hi all, I'm hoping i'm doing something silly. I have an 8.0-RELEASE machine with one jail that i'm intending to run lighttpd. I have nothing running on the host other than sendmail on 127.0.0.1 and sshd bound to the primary IP. The jail is also now running sshd fine. when i try and start lighttpd i get Starting lighttpd. 2010-03-23 17:13:35: (network.c.345) can't bind to port: 192.168.10.221 80 Address already in use /usr/local/etc/rc.d/lighttpd: WARNING: failed to start lighttpd however [root@krill /usr/ports/www/lighttpd]# netstat -an netstat: kvm not available: /dev/mem: No such file or directory Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 192.168.10.221.25 *.* LISTEN tcp4 0 0 192.168.10.221.22 *.* LISTEN udp4 0 0 192.168.10.221.514 *.* and i can make nc listen on port 80 using nc -l 192.168.10.221 80 and make connections to it from remote vincenthoffman@macbook (17:18:13 <~>) 130 $ telnet 192.168.10.221 80 Trying 192.168.10.221... Connected to jail.home.unsane.co.uk. Escape character is '^]'. So the port definitely isnt in use. Any suggestions if there is a sysctl or anything i need to change to get this to work? Vince