Date: Wed, 31 Jul 2013 13:58:07 +0200 From: Ollivier Robert <roberto@keltia.freenix.fr> To: freebsd-jail@freebsd.org Subject: IPv6 init issue Message-ID: <20130731115807.GB85585@lonrach.local>
next in thread | raw e-mail | index | archive | help
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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130731115807.GB85585>