From owner-freebsd-jail@FreeBSD.ORG Wed Jul 31 11:58:12 2013 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A9F8C43C for ; Wed, 31 Jul 2013 11:58:12 +0000 (UTC) (envelope-from roberto@keltia.freenix.fr) Received: from keltia.net (cl-90.mrs-01.fr.sixxs.net [IPv6:2a01:240:fe00:59::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6BC092D6D for ; Wed, 31 Jul 2013 11:58:12 +0000 (UTC) Received: from lonrach.local (foret.keltia.net [78.232.116.160]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: roberto) by keltia.net (Postfix) with ESMTPSA id 2F77A52B1 for ; Wed, 31 Jul 2013 13:58:09 +0200 (CEST) Date: Wed, 31 Jul 2013 13:58:07 +0200 From: Ollivier Robert To: freebsd-jail@freebsd.org Subject: IPv6 init issue Message-ID: <20130731115807.GB85585@lonrach.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: MacOS X / MBP 4,1 - FreeBSD 8.0 / T3500-E5520 Nehalem User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jul 2013 11:58:12 -0000 Hello, I've configured several different jails to host my services and such (howto to come soon, relating my experience) but I still have an IPv6 initialization issue. It happens with plain jail and using ezjail to start jails. lo0 is having the various 127.0.1.x IPv4 addresses for IPv4 networking, using nat/rdr bce1 is having the various 2a01:240:fe5c:1::x IPv6 addresses /etc/jail.conf ----- # Typical static defaults: # Use the rc scripts to start and stop jails. Mount jail's /dev. exec.start = "/bin/sh /etc/rc"; exec.stop = "/bin/sh /etc/rc.shutdown"; exec.clean; mount.devfs; host.hostname = "$name.keltia.net"; mail { ip4.addr = lo0|127.0.1.3; ip6.addr = bce1|2a01:240:fe5c:1::3; path = "/jails/mail.keltia.net"; mount.fstab = "/etc/fstab.mail_keltia_net"; allow.raw_sockets = 1; command = "/usr/bin/login -f root"; } ----- results in the following, preventing any services in /usr/local/etc/rc.d to properly start. If I log into the jail after init and run the scripts manually, it works! Even the system sshd refuses to start. host and basejail is 9.2-BETA1. ----- 1327 [13:50] root@centre:local/etc# jail -c mail mail: created /etc/rc: WARNING: $hostname is not set -- see rc.conf(5). ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/dovecot 32-bit compatibility ldconfig path: /usr/lib32 Creating and/or trimming log files. ln: /dev/log: Operation not permitted Starting syslogd. Clearing /tmp (X related). Updating motd:. Starting dovecot. Error: bind(2a01:240:fe5c:1::3, 143) failed: Can't assign requested address Error: service(imap-login): listen(2a01:240:fe5c:1::3, 143) failed: Can't assign requested address Error: bind(2a01:240:fe5c:1::3, 993) failed: Can't assign requested address Error: service(imap-login): listen(2a01:240:fe5c:1::3, 993) failed: Can't assign requested address Fatal: Failed to start listeners /etc/rc: WARNING: failed to start dovecot postfix/postfix-script: starting the Postfix mail system postfix/postfix-script: fatal: mail system startup failed Starting sshd. Starting cron. Wed Jul 31 11:50:15 UTC 2013 Last login: Wed Jul 31 11:44:07 on pts/2 FreeBSD 9.2-BETA1 (DEDIBOX9) #2 r253554: Tue Jul 23 00:18:00 CEST 2013 Welcome to FreeBSD! -- mail.keltia.net jail root@mail:/root # logout ----- Any idea? -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr In memoriam to Ondine : http://ondine.keltia.net/