From owner-freebsd-jail@FreeBSD.ORG Sun Mar 8 22:30:07 2009 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 744AB106566C for ; Sun, 8 Mar 2009 22:30:07 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [195.88.108.3]) by mx1.freebsd.org (Postfix) with ESMTP id 05C478FC0C for ; Sun, 8 Mar 2009 22:30:07 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from localhost (amavis.fra.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id 4A00A41C8DD; Sun, 8 Mar 2009 23:30:06 +0100 (CET) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([195.88.108.3]) by localhost (amavis.str.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id uuoCy+PDjjnm; Sun, 8 Mar 2009 23:30:05 +0100 (CET) Received: by mail.cksoft.de (Postfix, from userid 66) id B78A141C8FB; Sun, 8 Mar 2009 23:30:05 +0100 (CET) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id 65E334448E6; Sun, 8 Mar 2009 22:26:29 +0000 (UTC) Date: Sun, 8 Mar 2009 22:26:29 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Kage In-Reply-To: Message-ID: <20090308222441.Y96785@maildrop.int.zabbadoz.net> References: X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-732667922-1236551189=:96785" Cc: freebsd-jail@freebsd.org Subject: Re: Problem using bz's multi-IP/IPv6/No-IP Jail Patch (7-STABLE) X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Mar 2009 22:30:07 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-732667922-1236551189=:96785 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Sun, 8 Mar 2009, Kage wrote: > Encountering more issues now. Binding just an IPv6 address to a jail > shows up in jls -v, but when I run ifconfig -a in the jail, I get an > error I've never encountered, and doesn't show up on any Google > search: > > [root@nub:/etc] jls -v > JID Hostname Path > Name State > CPUSetID > IP Address(es) > 9 jail.template.tld /usr/jails/TEMPLATE > ALIVE > 10 > 2610:150:c248:dead:beef:c0ff:eec0:deaa > > [root@jail:/] ifconfig -a > ifconfig: socket(family 2,SOCK_DGRAM): Protocol not supported Is your world inside the jails in sync with the kernel? > > On Sun, Mar 8, 2009 at 2:22 PM, Kage wrote: >> Greetings, >> >> So I'm having an issue using 7-STABLE, specifically with bz's >> multi-IP/IPv6 patch. =A0First and foremost, all IPs attempted to be used >> (both v4 and v6) are aliased properly in ifconfig. =A0Secondly, >> assigning multiple IPs to a jail is no problem, as jls -v reflects the >> multiples assigned correctly. =A0However, within the jail, ifconfig >> reflects only the first IP listed in rc.conf. =A0What am I missing, or >> what do I need to do to? >> >> Cheers! >> >> >> Example rc.conf entry: >> >> ifconfig_vr0_alias10=3D"inet 12.34.56.78 netmask 255.255.255.255" >> ifconfig_vr0_alias11=3D"inet 12.34.56.79 netmask 255.255.255.255" >> ifconfig_vr0_alias12=3D"inet 12.34.56.80 netmask 255.255.255.255" >> >> jail_kage_rootdir=3D"/usr/jails/kage" >> jail_kage_hostname=3D"kage.foo" >> jail_kage_ip=3D"12.34.56.78,12.34.56.79,12.34.56.80" >> >> Example jls: >> >> =A0 =A0 5 =A0kage.foo =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 /usr/jails/kage >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0ALIVE >> =A0 =A0 =A0 =A06 >> =A0 =A0 =A0 =A012.34.56.78 >> =A0 =A0 =A0 =A012.34.56.79 >> =A0 =A0 =A0 =A012.34.56.80 >> >> >> Example ifconfig within that jail: >> >> [root@kage:/usr/local/etc/apache22] ifconfig >> vr0: flags=3D8843 metric 0 mtu 1= 500 >> =A0 =A0 =A0 =A0options=3D2808 >> =A0 =A0 =A0 =A0ether 00:1d:92:0d:77:8a >> =A0 =A0 =A0 =A0inet 12.34.56.78 netmask 0xffffffff broadcast 12.34.56.1 Now that broadcast address doesn't make any sense at all. Does it look the same outside the jail? Can you send ifconfig -a from inside and outside jails, unmangled and unedited along with a jls -va? Are you running 7-STABLE now or 7.x + patch? >> =A0 =A0 =A0 =A0media: Ethernet autoselect (100baseTX ) >> =A0 =A0 =A0 =A0status: active >> lo0: flags=3D8049 metric 0 mtu 16384 >> [root@kage:/usr/local/etc/apache22] >> >> >> -- >> ~ Kage >> > > > > --=20 Bjoern A. Zeeb The greatest risk is not taking one. --0-732667922-1236551189=:96785--