From owner-freebsd-jail@FreeBSD.ORG Sun Mar 8 18:22:47 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 4D15F10656C1 for ; Sun, 8 Mar 2009 18:22:47 +0000 (UTC) (envelope-from kagekonjou@gmail.com) Received: from mail-gx0-f176.google.com (mail-gx0-f176.google.com [209.85.217.176]) by mx1.freebsd.org (Postfix) with ESMTP id EA7938FC1C for ; Sun, 8 Mar 2009 18:22:46 +0000 (UTC) (envelope-from kagekonjou@gmail.com) Received: by gxk24 with SMTP id 24so2642623gxk.19 for ; Sun, 08 Mar 2009 11:22:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=1CcGddMVjZswlN93ueuZcbLoOy/ijiesyD5uJQLkx+4=; b=DtPIgKDh9wtU+/YDVcKnHZGI+G86SHLPbrXtyoD0qCnacfoTtCa9Vtez+/7E4i5m9S 9b+3g42e+VeFN14z04CI2mcxWk7uUAiBlXM3njM2r4Tx2ilBvoEs/VD/LAjKj3cObUT4 uvwKbR9QZuMliHd3keYmOeFl7OhZam/B7hgbc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=QbIcKAkifFeGXupyOesrPm2+KXbWtHNH+rnzxCNc1DzzA4qHV9mRemrAorkTn/XxJ+ ZYPQTR678MgYMcjhhRrlnhGFDyyIA3XJlNR7BkN29WfZiodSCdWv+n3+ZpenoECn/qNR K5HPRujREh2FX9bglO3w7+XT1TVsl3vZzzMHY= MIME-Version: 1.0 Received: by 10.231.19.72 with SMTP id z8mr1253245iba.6.1236536566060; Sun, 08 Mar 2009 11:22:46 -0700 (PDT) Date: Sun, 8 Mar 2009 14:22:46 -0400 Message-ID: From: Kage To: freebsd-jail@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: 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 18:22:47 -0000 Greetings, So I'm having an issue using 7-STABLE, specifically with bz's multi-IP/IPv6 patch. First and foremost, all IPs attempted to be used (both v4 and v6) are aliased properly in ifconfig. Secondly, assigning multiple IPs to a jail is no problem, as jls -v reflects the multiples assigned correctly. However, within the jail, ifconfig reflects only the first IP listed in rc.conf. What am I missing, or what do I need to do to? Cheers! Example rc.conf entry: ifconfig_vr0_alias10="inet 12.34.56.78 netmask 255.255.255.255" ifconfig_vr0_alias11="inet 12.34.56.79 netmask 255.255.255.255" ifconfig_vr0_alias12="inet 12.34.56.80 netmask 255.255.255.255" jail_kage_rootdir="/usr/jails/kage" jail_kage_hostname="kage.foo" jail_kage_ip="12.34.56.78,12.34.56.79,12.34.56.80" Example jls: 5 kage.foo /usr/jails/kage ALIVE 6 12.34.56.78 12.34.56.79 12.34.56.80 Example ifconfig within that jail: [root@kage:/usr/local/etc/apache22] ifconfig vr0: flags=8843 metric 0 mtu 1500 options=2808 ether 00:1d:92:0d:77:8a inet 12.34.56.78 netmask 0xffffffff broadcast 12.34.56.1 media: Ethernet autoselect (100baseTX ) status: active lo0: flags=8049 metric 0 mtu 16384 [root@kage:/usr/local/etc/apache22] -- ~ Kage From owner-freebsd-jail@FreeBSD.ORG Sun Mar 8 21:05:19 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 284A81065670 for ; Sun, 8 Mar 2009 21:05:19 +0000 (UTC) (envelope-from kagekonjou@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.251]) by mx1.freebsd.org (Postfix) with ESMTP id D6D738FC15 for ; Sun, 8 Mar 2009 21:05:18 +0000 (UTC) (envelope-from kagekonjou@gmail.com) Received: by an-out-0708.google.com with SMTP id b38so612868ana.13 for ; Sun, 08 Mar 2009 14:05:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=GMR4BAhgCl0u9P3BlX42GEIJioRrgnTPx5kx0DG2gH4=; b=aFkp4ZH/5/pIMRsJvPnoqx50WSmqdRwWAETsBxAU8rk2NkbB2Vb3rwmOhWqt5MJEy6 50jprOKNTvEB+g8p1CHGgIs2RbLXnzeeM8jJh+kPLlJWd6aaqvpIzRm91QFWkjTsZMpR 9MS0UYSMFZzEF5uvm8+wfaPMGd/H6xcLMwjJs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=X0Cu+cjg7LI4KPuA+InRGrfotMdMTNU5Hw6xoOb7/8psDQcyplrXvC/bQO/O93OnX7 cqo2HJdGJdkgv6qi6aKHlhjZrJuU2+kWdHyZgYmouRgflHPosqC6Jtlid8zJXCaXezPB p2uMnFqj456cMQTMFWlg+bwItysRk9eDmdq3k= MIME-Version: 1.0 Received: by 10.231.18.130 with SMTP id w2mr1272873iba.11.1236546318173; Sun, 08 Mar 2009 14:05:18 -0700 (PDT) In-Reply-To: References: Date: Sun, 8 Mar 2009 17:05:18 -0400 Message-ID: From: Kage To: freebsd-jail@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 21:05:19 -0000 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 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 15= 00 > =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 > =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 ~ Kage From owner-freebsd-jail@FreeBSD.ORG Sun Mar 8 21:18:09 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 B7A7B1065670 for ; Sun, 8 Mar 2009 21:18:09 +0000 (UTC) (envelope-from kagekonjou@gmail.com) Received: from mail-gx0-f176.google.com (mail-gx0-f176.google.com [209.85.217.176]) by mx1.freebsd.org (Postfix) with ESMTP id 5F5798FC0C for ; Sun, 8 Mar 2009 21:18:09 +0000 (UTC) (envelope-from kagekonjou@gmail.com) Received: by gxk24 with SMTP id 24so2729612gxk.19 for ; Sun, 08 Mar 2009 14:18:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=L22gMLF1NoMI7Z5gRFHaQ3Q1x0ZaMJ2U8zb2RM8XgTc=; b=CS+0GiJD3ixFGI/uOJJMQBEkZu/iQx8/qGht7hspAcRHp636hvo/StemEm+To1xyPx SDg0tVaSKKVIjzRYfMvphxFmMqn56xXwHnP0epsHnd43beeJ1BYankNpDMMhz1sxfqoQ Dtq/S06nOzS/v2nFenuowCWNtygZyrIcLAE7s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=TcoYkECKqmUyxPMvjVsKHraCCEKIrUr5b99fJugvQgIU4CjF443rKYRePsMO0zCwxZ F4ooV6J0whCuB4CwbxrvD06vtheem54Cy3fQBMZdmXNzuhyWZJeookSrmNau4g9k2xHQ j/hga4snVxVJ121SDjCX5u3spbz+iR1lMW3PY= MIME-Version: 1.0 Received: by 10.231.12.12 with SMTP id v12mr1282776ibv.4.1236547088630; Sun, 08 Mar 2009 14:18:08 -0700 (PDT) In-Reply-To: References: Date: Sun, 8 Mar 2009 17:18:08 -0400 Message-ID: From: Kage To: freebsd-jail@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 21:18:10 -0000 In case this helps solve my problem: [root@nub:/etc] cat sysctl.conf kern.maxfiles=3D131072 kern.maxfilesperproc=3D4096 kern.maxprocperuid=3D1024 kern.ipc.somaxconn=3D4096 net.inet.ip.rtexpire=3D60 net.inet.ip.rtminexpire=3D10 net.inet.icmp.icmplim=3D200 net.inet.tcp.drop_synfin=3D1 net.inet.tcp.blackhole=3D2 net.inet.tcp.msl=3D10000 net.inet.tcp.finwait2_timeout=3D10000 net.inet.tcp.fast_finwait2_recycle=3D1 net.inet.udp.blackhole=3D1 security.bsd.see_other_uids=3D0 On Sun, Mar 8, 2009 at 5:05 PM, Kage wrote: > Encountering more issues now. =A0Binding 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 > =A0 JID =A0Hostname =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Path > =A0 =A0 =A0 =A0Name =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0St= ate > =A0 =A0 =A0 =A0CPUSetID > =A0 =A0 =A0 =A0IP Address(es) > =A0 =A0 9 =A0jail.template.tld =A0 =A0 =A0 =A0 =A0 =A0 /usr/jails/TEMPLAT= E > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0ALIVE > =A0 =A0 =A0 =A010 > =A0 =A0 =A0 =A02610:150:c248:dead:beef:c0ff:eec0:deaa > > [root@jail:/] ifconfig -a > ifconfig: socket(family 2,SOCK_DGRAM): Protocol not supported > > > 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 >> =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 >> > > > > -- > ~ Kage > --=20 ~ Kage 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-- From owner-freebsd-jail@FreeBSD.ORG Sun Mar 8 23:20:09 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 5A86C106566B for ; Sun, 8 Mar 2009 23:20:09 +0000 (UTC) (envelope-from kagekonjou@gmail.com) Received: from mail-gx0-f176.google.com (mail-gx0-f176.google.com [209.85.217.176]) by mx1.freebsd.org (Postfix) with ESMTP id F34208FC12 for ; Sun, 8 Mar 2009 23:20:08 +0000 (UTC) (envelope-from kagekonjou@gmail.com) Received: by gxk24 with SMTP id 24so2792354gxk.19 for ; Sun, 08 Mar 2009 16:20:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=L7OgKcblUh3jW1l5/CEMsQaGmCw2JisgxMZB8ACFCBw=; b=mJofNU96MvbNgOBkvHGguHdCPBSmqlK4j3HWNKCpr9qzwK2NVz9uM6Ge5Fkk86rvib x/O4zlS3yymJJEi//kUqmVcLGaH/hsVREa+L/jSyrDxGK7AcUDRWNAh/BLLqHnJEUmgi x5s9DJYpa7nOWXgBvUBgYX8gL++Qb1CDnPw8c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=tpriMCdLTys0atNJriglwOjSux9v04ATwhKD4SotJYDIZLxK1Ub8W2rsm2GWz9rFtD W7B9tF2hROe6z6gqsiYfrHf8aBnYMnN8o+eY3PkH/t1d86hakv4wTht3BOPL/q+lW0IZ NLkwCJ3vd3HcbIi1RGW5S6e4fTH9kLigENjgA= MIME-Version: 1.0 Received: by 10.231.20.2 with SMTP id d2mr1286773ibb.37.1236554406931; Sun, 08 Mar 2009 16:20:06 -0700 (PDT) In-Reply-To: <20090308222441.Y96785@maildrop.int.zabbadoz.net> References: <20090308222441.Y96785@maildrop.int.zabbadoz.net> Date: Sun, 8 Mar 2009 19:20:06 -0400 Message-ID: From: Kage To: "Bjoern A. Zeeb" , freebsd-jail@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: 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 23:20:09 -0000 On Sun, Mar 8, 2009 at 6:26 PM, Bjoern A. Zeeb wrote: > On Sun, 8 Mar 2009, Kage wrote: > >> Encountering more issues now. =A0Binding 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 >> =A0JID =A0Hostname =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Path >> =A0 =A0 =A0 Name =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Stat= e >> =A0 =A0 =A0 CPUSetID >> =A0 =A0 =A0 IP Address(es) >> =A0 =A09 =A0jail.template.tld =A0 =A0 =A0 =A0 =A0 =A0 /usr/jails/TEMPLAT= E >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = ALIVE >> =A0 =A0 =A0 10 >> =A0 =A0 =A0 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? Explain, please? >> >> 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 use= d >>> (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 = 1500 >>> =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? Looks the same inside and out for the IP that shows up in jails > Can you send ifconfig -a from inside and outside jails, unmangled > and unedited along with a jls -va? I'll give two examples, hold please... (edited slightly for sake of privacy of other users hosted on this box, and to keep this E-Mail brief) (Inside Host) ----- [root@nub:/etc] ifconfig -a (snip) inet 64.32.24.218 netmask 0xffffffff broadcast 64.32.24.218 (snip) inet 208.98.30.200 netmask 0xffffff00 broadcast 208.98.30.255 (snip) inet6 2610:150:c248::2 prefixlen 48 (etc.) [root@nub:/etc] jls -va JID Hostname Path Name State CPUSetID IP Address(es) (snip) 6 kage.vitund.com /usr/jails/kage ALIVE 7 64.32.24.218 208.98.30.200 (snip) 4 irc.hackthissite.org /usr/jails/irc ALIVE 5 64.32.24.217 2610:150:c248:dead:c0ff:eec0:deba:be00 (snip) [root@nub:/etc] rc.conf chunk: ipv6_enable=3D"YES" ipv6_defaultrouter=3D"2610:150:c248::1" ipv6_network_interfaces=3D"vr0" ipv6_ifconfig_vr0=3D"2610:150:c248::2 prefixlen 48" (Inside Jail: kage) [root@kage:/] ifconfig -a vr0: flags=3D8843 metric 0 mtu 1500 options=3D2808 ether 00:1d:92:0d:77:8a inet 64.32.24.218 netmask 0xffffffff broadcast 64.32.24.218 media: Ethernet autoselect (100baseTX ) status: active lo0: flags=3D8049 metric 0 mtu 16384 [root@kage:/] (Inside Jail: irc) [root@irc:/] ifconfig -a vr0: flags=3D8843 metric 0 mtu 1500 options=3D2808 ether 00:1d:92:0d:77:8a inet 64.32.24.217 netmask 0xffffffff broadcast 64.32.24.217 media: Ethernet autoselect (100baseTX ) status: active lo0: flags=3D8049 metric 0 mtu 16384 [root@irc:/] > Are you running 7-STABLE now or 7.x + patch? 7-STABLE. >>> =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 >>> >> >> >> >> > > -- > Bjoern A. Zeeb =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0The greatest ri= sk is not taking one. --=20 ~ Kage From owner-freebsd-jail@FreeBSD.ORG Mon Mar 9 10:19:30 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 8D7E81065680 for ; Mon, 9 Mar 2009 10:19:30 +0000 (UTC) (envelope-from ruben@verweg.com) Received: from erg.verweg.com (unknown [IPv6:2001:980:fff:96::c0a8:181]) by mx1.freebsd.org (Postfix) with ESMTP id 1CFCE8FC0C for ; Mon, 9 Mar 2009 10:19:29 +0000 (UTC) (envelope-from ruben@verweg.com) Received: from [193.0.2.114] ([193.0.2.114]) (authenticated bits=0) by erg.verweg.com (8.14.3/8.14.3) with ESMTP id n29AJJu0022821 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Mon, 9 Mar 2009 10:19:24 GMT (envelope-from ruben@verweg.com) Message-Id: From: Ruben van Staveren To: Kage In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Mon, 9 Mar 2009 11:19:18 +0100 References: <20090308222441.Y96785@maildrop.int.zabbadoz.net> X-Mailer: Apple Mail (2.930.3) X-Spam-Status: No, score=4.2 required=5.0 tests=DATE_IN_FUTURE_06_12, RDNS_NONE, SPF_FAIL autolearn=no version=3.2.5 X-Spam-Level: **** X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on erg.verweg.com X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on erg.verweg.com X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (erg.verweg.com [94.142.245.8]); Mon, 09 Mar 2009 10:19:29 +0000 (UTC) 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: Mon, 09 Mar 2009 10:19:31 -0000 On 9 Mar 2009, at 0:20, Kage wrote: >> Is your world inside the jails in sync with the kernel? > > Explain, please? After upgrading your sources, did you rebuild both userland and kernel and installed the new userland in all your jails too ? Regards, Ruben From owner-freebsd-jail@FreeBSD.ORG Mon Mar 9 17:15: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 DBBA310656C1 for ; Mon, 9 Mar 2009 17:15:07 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A953E8FC18 for ; Mon, 9 Mar 2009 17:15:07 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n29HF7Fu045297 for ; Mon, 9 Mar 2009 17:15:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n29HF7C0045293 for freebsd-jail@FreeBSD.org; Mon, 9 Mar 2009 17:15:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 9 Mar 2009 17:15:07 GMT Message-Id: <200903091715.n29HF7C0045293@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-jail@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-jail@FreeBSD.org 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: Mon, 09 Mar 2009 17:15:10 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/132092 jail [jail] jail can listen on *:port when jail_socket_unix o kern/119842 jail [smbfs] [jail] "Bad address" with smbfs inside a jail o bin/99566 jail [jail] [patch] fstat(1) according to specified jid o bin/32828 jail [jail] w(1) incorrectly handles stale utmp slots with 4 problems total. From owner-freebsd-jail@FreeBSD.ORG Mon Mar 9 18:35:44 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 85F1F106566B for ; Mon, 9 Mar 2009 18:35:44 +0000 (UTC) (envelope-from jamie@FreeBSD.org) Received: from gritton.org (gritton.org [161.58.222.4]) by mx1.freebsd.org (Postfix) with ESMTP id 188A48FC14 for ; Mon, 9 Mar 2009 18:35:43 +0000 (UTC) (envelope-from jamie@FreeBSD.org) Received: from guppy.corp.verio.net (fw.oremut02.us.wh.verio.net [198.65.168.24]) (authenticated bits=0) by gritton.org (8.13.6.20060614/8.13.6) with ESMTP id n29IF3Li065224; Mon, 9 Mar 2009 12:15:04 -0600 (MDT) Message-ID: <49B55CA2.7090300@FreeBSD.org> Date: Mon, 09 Mar 2009 12:14:58 -0600 From: Jamie Gritton User-Agent: Thunderbird 2.0.0.19 (X11/20090109) MIME-Version: 1.0 To: Kage References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on gritton.org X-Virus-Status: Clean 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: Mon, 09 Mar 2009 18:35:44 -0000 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 Recent patches reject sockets in jails that have no addresses in the socket's family. So if you jail has no IPv6 addresses, you won't be able to create any IPv6 sockets. Likewise your case: if that jail has no IPv4 addresses, then it's an IPv4-less jail, and IPv4 sockets won't work (Protocol not supported). For actual network connections, this makes sense: you won't be able to bind or connect with this socket, as there are no IPv4 addresses in the system. But ifconfig is a different situation. It just needs a socket of some sort, and AF_INET has always worked, because any networked system always has IPv4 support. But in an IPv4-less system (which an IPv4-less jail not acts like), this default isn't useful. Something will need to be fixed. I'm not sure if that something is ifconfig or the kernel. - Jamie From owner-freebsd-jail@FreeBSD.ORG Tue Mar 10 02:20:51 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 D2BE1106564A for ; Tue, 10 Mar 2009 02:20:51 +0000 (UTC) (envelope-from kagekonjou@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id 8AF8B8FC22 for ; Tue, 10 Mar 2009 02:20:51 +0000 (UTC) (envelope-from kagekonjou@gmail.com) Received: by yw-out-2324.google.com with SMTP id 2so899329ywt.13 for ; Mon, 09 Mar 2009 19:20:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=kCnGxv4hyC66Uy0iZ34KX8nvxMk1z38aEIZEPaLq4j0=; b=H1CcmKFSvIssDXT0bt51ktnBqG+nXxT3UCQcxfcvQeeBbMLM7V9pn75veW2lVSOe37 zQXQBniQV1WDfBBNKCtaZW0bTWvCZKlb4ERWYgvhrspKAoF27lV2XzN29/sFmEbzq4+D 6dd1D7hU3TfFJkLAR49x+mP8oYZ65eT6FdwPw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=UNF6ngStkaV58ElaIz3O5nux+UvUNzJ1hAEG8JAvrbr+rgI6aolEm1jGD0TM75Cbti A6utOO+iVWjZlqc64XN8tO0I7JmMDJihOrusRF4rvybdUlivtHraY4p2QSOg3OCGZnXI srYr6EDqG1UIwFlueRLPmc07In+p8HRIz2GmU= MIME-Version: 1.0 Received: by 10.231.19.70 with SMTP id z6mr1595659iba.29.1236651650741; Mon, 09 Mar 2009 19:20:50 -0700 (PDT) In-Reply-To: References: <20090308222441.Y96785@maildrop.int.zabbadoz.net> Date: Mon, 9 Mar 2009 22:20:50 -0400 Message-ID: From: Kage To: Ruben van Staveren Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Tue, 10 Mar 2009 02:20:52 -0000 What of the userland do I need to copy to the jails? I didn't copy anything to the jails, so that's probably my issue. What step(s) did I miss? I only did the exact steps listed in the FreeBSD books, which were basically: cvsup, buildworld, buildkernel, installkernel, reboot, mergemaster, installworld, mergemaster, reboot I did nothing to the jails. What'd I miss? :/ On Mon, Mar 9, 2009 at 6:19 AM, Ruben van Staveren wrote= : > > On 9 Mar 2009, at 0:20, Kage wrote: > >>> Is your world inside the jails in sync with the kernel? >> >> Explain, please? > > After upgrading your sources, did you rebuild both userland and kernel an= d > installed the new userland in all your jails too ? > > Regards, > =A0 =A0 =A0 =A0Ruben > --=20 ~ Kage From owner-freebsd-jail@FreeBSD.ORG Tue Mar 10 09:05:14 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 11CF3106566B for ; Tue, 10 Mar 2009 09:05:14 +0000 (UTC) (envelope-from freddy.dsx@free.fr) Received: from smtpfb1-g21.free.fr (smtpfb1-g21.free.fr [212.27.42.9]) by mx1.freebsd.org (Postfix) with ESMTP id 634EB8FC14 for ; Tue, 10 Mar 2009 09:05:11 +0000 (UTC) (envelope-from freddy.dsx@free.fr) Received: from smtp2-g21.free.fr (smtp2-g21.free.fr [212.27.42.2]) by smtpfb1-g21.free.fr (Postfix) with ESMTP id ADF2679435E for ; Tue, 10 Mar 2009 09:54:54 +0100 (CET) Received: from smtp2-g21.free.fr (localhost [127.0.0.1]) by smtp2-g21.free.fr (Postfix) with ESMTP id 4C0264B0093 for ; Tue, 10 Mar 2009 09:54:48 +0100 (CET) Received: from mini.bsdsx.fr (fbx.bsdsx.fr [82.238.159.102]) by smtp2-g21.free.fr (Postfix) with ESMTP id 52FF04B01DA for ; Tue, 10 Mar 2009 09:54:46 +0100 (CET) Received: from mini.bsdsx.fr (localhost.bsdsx.fr [127.0.0.1]) by mini.bsdsx.fr (8.14.3/8.14.3) with ESMTP id n2A8sjoK031884 for ; Tue, 10 Mar 2009 09:54:45 +0100 (CET) Received: (from dsx@localhost) by mini.bsdsx.fr (8.14.3/8.14.3/Submit) id n2A8sjdV010810 for freebsd-jail@freebsd.org; Tue, 10 Mar 2009 09:54:45 +0100 (CET) Date: Tue, 10 Mar 2009 09:54:44 +0100 From: freddy.dsx@free.fr To: freebsd-jail@freebsd.org Message-ID: <20090310085444.GN17739@mini.bsdsx.fr> References: <20090308222441.Y96785@maildrop.int.zabbadoz.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) 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: Tue, 10 Mar 2009 09:05:14 -0000 Le Mon, Mar 09, 2009 at 10:20:50PM -0400, Kage écrivait: > What of the userland do I need to copy to the jails? I didn't copy > anything to the jails, so that's probably my issue. > > What step(s) did I miss? I only did the exact steps listed in the > FreeBSD books, which were basically: cvsup, buildworld, buildkernel, > installkernel, reboot, mergemaster, installworld, mergemaster, reboot > > I did nothing to the jails. What'd I miss? :/ http://www.cyberciti.biz/faq/how-to-upgrade-freebsd-jail-vps/ From owner-freebsd-jail@FreeBSD.ORG Tue Mar 10 11:05: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 C5560106564A for ; Tue, 10 Mar 2009 11:05: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 7A85B8FC08 for ; Tue, 10 Mar 2009 11:05: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 0405A41C703; Tue, 10 Mar 2009 12:05:06 +0100 (CET) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([195.88.108.3]) by localhost (amavis.fra.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id q55F0clZoPVg; Tue, 10 Mar 2009 12:05:05 +0100 (CET) Received: by mail.cksoft.de (Postfix, from userid 66) id 94C3F41C70A; Tue, 10 Mar 2009 12:05: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 1E8434448E6; Tue, 10 Mar 2009 11:04:26 +0000 (UTC) Date: Tue, 10 Mar 2009 11:04:26 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Jamie Gritton In-Reply-To: <49B55CA2.7090300@FreeBSD.org> Message-ID: <20090310110332.Q96785@maildrop.int.zabbadoz.net> References: <49B55CA2.7090300@FreeBSD.org> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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: Tue, 10 Mar 2009 11:05:08 -0000 On Mon, 9 Mar 2009, Jamie Gritton wrote: > 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 > > Recent patches reject sockets in jails that have no addresses in the > socket's family. So if you jail has no IPv6 addresses, you won't be > able to create any IPv6 sockets. Likewise your case: if that jail has > no IPv4 addresses, then it's an IPv4-less jail, and IPv4 sockets won't > work (Protocol not supported). For actual network connections, this > makes sense: you won't be able to bind or connect with this socket, as > there are no IPv4 addresses in the system. > > But ifconfig is a different situation. It just needs a socket of some > sort, and AF_INET has always worked, because any networked system always > has IPv4 support. But in an IPv4-less system (which an IPv4-less jail > not acts like), this default isn't useful. Something will need to be > fixed. I'm not sure if that something is ifconfig or the kernel. I'd suggest fixing ifconfig if (easily) possible; that would avoid us running into it again in a few months/year(s) when it might be possible to compile an INET6 but no INET kernel. -- Bjoern A. Zeeb The greatest risk is not taking one. From owner-freebsd-jail@FreeBSD.ORG Tue Mar 10 12:52:23 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 7378E1065670 for ; Tue, 10 Mar 2009 12:52:23 +0000 (UTC) (envelope-from kagekonjou@gmail.com) Received: from mail-gx0-f176.google.com (mail-gx0-f176.google.com [209.85.217.176]) by mx1.freebsd.org (Postfix) with ESMTP id 1404F8FC0A for ; Tue, 10 Mar 2009 12:52:22 +0000 (UTC) (envelope-from kagekonjou@gmail.com) Received: by gxk24 with SMTP id 24so4406496gxk.19 for ; Tue, 10 Mar 2009 05:52:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=7elJmhFFXxQMYpn8RKKUBppJO79RPpbsyIZOcxN7mVo=; b=hR3RidR1PSzp1vMjL+TNCVNdgQWj4YDL9kyAptTqeYFBGb6UZUWFjAeaXq/mPi+Y5X SxXKonvurm5OCNuLMYSQ+aYeGEz4x2+oK7UVZIzXQvasqM4PZDEdqCN2A6zY1GTodA9Q ZP9Mjm7tf2IPCYVZV1GdFkC67IGEEni1bdw8E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Y5NBIFJl902GDOQeDcmWglmLi3YnDpElbGEfIyaYS2Zp3v9P7It3NXIQzUd30urwFG ZGI1Qr7t6MbjcF8dFn6t2q4qIaVgKAKUBu0/V0xKivPRwIdNEmDobw68ezl+R+WTGUOA PM7lyJ4lE6JgYMetIcirxtyFyR0aoPfWvPfhg= MIME-Version: 1.0 Received: by 10.231.12.138 with SMTP id x10mr1696696ibx.16.1236689542137; Tue, 10 Mar 2009 05:52:22 -0700 (PDT) In-Reply-To: <20090310085444.GN17739@mini.bsdsx.fr> References: <20090308222441.Y96785@maildrop.int.zabbadoz.net> <20090310085444.GN17739@mini.bsdsx.fr> Date: Tue, 10 Mar 2009 08:52:22 -0400 Message-ID: From: Kage To: freddy.dsx@free.fr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Tue, 10 Mar 2009 12:52:23 -0000 Double-sigh. I feel dumb, haha. Thanks, I'll proceed with this, and if things don't work, I'll post to this thread again. Thanks, guys! On Tue, Mar 10, 2009 at 4:54 AM, wrote: > Le Mon, Mar 09, 2009 at 10:20:50PM -0400, Kage =E9crivait: > >> What of the userland do I need to copy to the jails? =A0I didn't copy >> anything to the jails, so that's probably my issue. >> >> What step(s) did I miss? =A0I only did the exact steps listed in the >> FreeBSD books, which were basically: cvsup, buildworld, buildkernel, >> installkernel, reboot, mergemaster, installworld, mergemaster, reboot >> >> I did nothing to the jails. =A0What'd I miss? :/ > > > http://www.cyberciti.biz/faq/how-to-upgrade-freebsd-jail-vps/ > _______________________________________________ > freebsd-jail@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org" > --=20 ~ Kage http://vitund.com http://hackthissite.org From owner-freebsd-jail@FreeBSD.ORG Tue Mar 10 13:22:04 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 7AB291065673 for ; Tue, 10 Mar 2009 13:22:04 +0000 (UTC) (envelope-from kagekonjou@gmail.com) Received: from mail-gx0-f176.google.com (mail-gx0-f176.google.com [209.85.217.176]) by mx1.freebsd.org (Postfix) with ESMTP id 1A4CD8FC26 for ; Tue, 10 Mar 2009 13:22:03 +0000 (UTC) (envelope-from kagekonjou@gmail.com) Received: by gxk24 with SMTP id 24so4435410gxk.19 for ; Tue, 10 Mar 2009 06:22:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=mX1st2I71DNQbjLvNrCHk7cCEJYNgtl7AKOUFBeTTYg=; b=acZJG3PFUM++NcqvFn50tEl7XtZvfxvhhBY6Ffn0vrOst67jQhWsmDnxD8/8v+LTNY xb5CgOEuMsF6bd6tm+0p0iYXbqBeldx1x4ek78bf1QOJpCU+bMHYFMzJHi7CRjfNdRqt RdIZ9vd++gV8VdUhXQMln2D5D+5d57lhiFFAI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=bRFOxEA1BOgOMocPeT4kn53nouNendYq0vvK7j9mjYq5SWKJt1GcFVanAD2UhckW5h LUn4asQ1Q03PruViLAlBEj5HnvJsrZs+HnhwnpJ5nS4g1I/7c1bK+70kPwqcm1njO+ep i6cWnkuuIOBtOQsn7c00dJZRtYuUS2PX5x6Ks= MIME-Version: 1.0 Received: by 10.231.17.74 with SMTP id r10mr1705422iba.13.1236691322175; Tue, 10 Mar 2009 06:22:02 -0700 (PDT) In-Reply-To: References: <20090308222441.Y96785@maildrop.int.zabbadoz.net> <20090310085444.GN17739@mini.bsdsx.fr> Date: Tue, 10 Mar 2009 09:22:02 -0400 Message-ID: From: Kage To: freddy.dsx@free.fr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Tue, 10 Mar 2009 13:22:05 -0000 Dumb question, perhaps... Do I need to re-run make buildworld again since I've already done it once for the upgrade (ie. does build/installkernel remove the work done by installworld or something odd?), or can I simply just run installworld immediately on all my jails without running buildworld again? Thanks! On Tue, Mar 10, 2009 at 8:52 AM, Kage wrote: > Double-sigh. =A0I feel dumb, haha. =A0Thanks, I'll proceed with this, and > if things don't work, I'll post to this thread again. =A0Thanks, guys! > > On Tue, Mar 10, 2009 at 4:54 AM, =A0 wrote: >> Le Mon, Mar 09, 2009 at 10:20:50PM -0400, Kage =E9crivait: >> >>> What of the userland do I need to copy to the jails? =A0I didn't copy >>> anything to the jails, so that's probably my issue. >>> >>> What step(s) did I miss? =A0I only did the exact steps listed in the >>> FreeBSD books, which were basically: cvsup, buildworld, buildkernel, >>> installkernel, reboot, mergemaster, installworld, mergemaster, reboot >>> >>> I did nothing to the jails. =A0What'd I miss? :/ >> >> >> http://www.cyberciti.biz/faq/how-to-upgrade-freebsd-jail-vps/ >> _______________________________________________ >> freebsd-jail@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-jail >> To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org" >> > > > > -- > ~ Kage > http://vitund.com > http://hackthissite.org > --=20 ~ Kage http://vitund.com http://hackthissite.org From owner-freebsd-jail@FreeBSD.ORG Tue Mar 10 13:37:02 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 D73AB10656EA for ; Tue, 10 Mar 2009 13:37:02 +0000 (UTC) (envelope-from kagekonjou@gmail.com) Received: from mail-gx0-f176.google.com (mail-gx0-f176.google.com [209.85.217.176]) by mx1.freebsd.org (Postfix) with ESMTP id 78BD58FC14 for ; Tue, 10 Mar 2009 13:37:02 +0000 (UTC) (envelope-from kagekonjou@gmail.com) Received: by gxk24 with SMTP id 24so4451770gxk.19 for ; Tue, 10 Mar 2009 06:37:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=rF/h6WFA1sdrz93tsZf3UZSj4WFT6bfZiEzCd6D8LFM=; b=g/jA/LrBo3hZoRsWM7MiIRcF8/Togvm8UKQs+Y074DigbrQmvjRIkbc6NlvsvWErDs 3jYjjS2kvkLvlAmVhqnNzV7n6X1BcQ5HGGVG4gft1MI7/8tdQl8MMfUufwW82oi3IGqh al4nT6L9oL/vd6s3tj71HfEw71JsgY+ML4ToE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=IcvNyfTp59bGIqKUnx54bEk1BWkFhto0VPWWNrqaskZSrmYSdkcOTQBAlhXivH9oMz r5P8ztv8i49dC9VP5Ua520zWdGMT/fHbFQJW3rb+RvhgtfAqG9Y4o3+c5i58Cm/voqVw nPRwMnAsQDu8FAFvjLV6ZUXs5pI2XiKJKNV4M= MIME-Version: 1.0 Received: by 10.231.10.140 with SMTP id p12mr1694968ibp.50.1236692221222; Tue, 10 Mar 2009 06:37:01 -0700 (PDT) In-Reply-To: References: <20090308222441.Y96785@maildrop.int.zabbadoz.net> <20090310085444.GN17739@mini.bsdsx.fr> Date: Tue, 10 Mar 2009 09:37:01 -0400 Message-ID: From: Kage To: freddy.dsx@free.fr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Tue, 10 Mar 2009 13:37:03 -0000 Sorry for the continual E-Mails. I did a test of just installworld on a temp jail. Multiple IPv4 works perfectly, but IPv6 still does not show up in ifconfig and cannot be binded to. Suggestions? On Tue, Mar 10, 2009 at 9:22 AM, Kage wrote: > Dumb question, perhaps... Do I need to re-run make buildworld again > since I've already done it once for the upgrade (ie. does > build/installkernel remove the work done by installworld or something > odd?), or can I simply just run installworld immediately on all my > jails without running buildworld again? =A0Thanks! > > On Tue, Mar 10, 2009 at 8:52 AM, Kage wrote: >> Double-sigh. =A0I feel dumb, haha. =A0Thanks, I'll proceed with this, an= d >> if things don't work, I'll post to this thread again. =A0Thanks, guys! >> >> On Tue, Mar 10, 2009 at 4:54 AM, =A0 wrote: >>> Le Mon, Mar 09, 2009 at 10:20:50PM -0400, Kage =E9crivait: >>> >>>> What of the userland do I need to copy to the jails? =A0I didn't copy >>>> anything to the jails, so that's probably my issue. >>>> >>>> What step(s) did I miss? =A0I only did the exact steps listed in the >>>> FreeBSD books, which were basically: cvsup, buildworld, buildkernel, >>>> installkernel, reboot, mergemaster, installworld, mergemaster, reboot >>>> >>>> I did nothing to the jails. =A0What'd I miss? :/ >>> >>> >>> http://www.cyberciti.biz/faq/how-to-upgrade-freebsd-jail-vps/ >>> _______________________________________________ >>> freebsd-jail@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-jail >>> To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org" >>> >> >> >> >> -- >> ~ Kage >> http://vitund.com >> http://hackthissite.org >> > > > > -- > ~ Kage > http://vitund.com > http://hackthissite.org > --=20 ~ Kage http://vitund.com http://hackthissite.org From owner-freebsd-jail@FreeBSD.ORG Thu Mar 12 21:38:48 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 7DEEE106564A for ; Thu, 12 Mar 2009 21:38:48 +0000 (UTC) (envelope-from jamie@FreeBSD.org) Received: from gritton.org (gritton.org [161.58.222.4]) by mx1.freebsd.org (Postfix) with ESMTP id 3D7198FC47 for ; Thu, 12 Mar 2009 21:38:47 +0000 (UTC) (envelope-from jamie@FreeBSD.org) Received: from guppy.corp.verio.net (fw.oremut02.us.wh.verio.net [198.65.168.24]) (authenticated bits=0) by gritton.org (8.13.6.20060614/8.13.6) with ESMTP id n2CLckBN060890; Thu, 12 Mar 2009 15:38:47 -0600 (MDT) Message-ID: <49B980E1.30203@FreeBSD.org> Date: Thu, 12 Mar 2009 15:38:41 -0600 From: Jamie Gritton User-Agent: Thunderbird 2.0.0.19 (X11/20090109) MIME-Version: 1.0 To: Kage References: <49B55CA2.7090300@FreeBSD.org> In-Reply-To: <49B55CA2.7090300@FreeBSD.org> Content-Type: multipart/mixed; boundary="------------070206030304030508090404" X-Virus-Scanned: ClamAV 0.94.2/9102/Thu Mar 12 14:54:00 2009 on gritton.org X-Virus-Status: Clean 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: Thu, 12 Mar 2009 21:38:48 -0000 This is a multi-part message in MIME format. --------------070206030304030508090404 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I wrote: > 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 > > Recent patches reject sockets in jails that have no addresses in the > socket's family. So if you jail has no IPv6 addresses, you won't be > able to create any IPv6 sockets. Likewise your case: if that jail has > no IPv4 addresses, then it's an IPv4-less jail, and IPv4 sockets won't > work (Protocol not supported). For actual network connections, this > makes sense: you won't be able to bind or connect with this socket, as > there are no IPv4 addresses in the system. > > But ifconfig is a different situation. It just needs a socket of some > sort, and AF_INET has always worked, because any networked system always > has IPv4 support. But in an IPv4-less system (which an IPv4-less jail > not acts like), this default isn't useful. Something will need to be > fixed. I'm not sure if that something is ifconfig or the kernel. Here's a patch for ifconfig. It allows "ifconfig -a" and a few other similar informative ifconfig options to run inside an IPv4-less jail (of course trying to set anything still fails). Outside of a jail, you should see no change. Apply it inside your /usr/src tree, and install it both in the root system (under /sbin) and in your jails (/usr/jails/TEMPLATE or wherever). Just in case I broke something, keep a copy of the old one :-). But I've tested it on my own system so I don't expect anything to be broken. This is under review and I expect to be able to commit it to Current shortly, then MFC it a week or so after that. If you have any trouble with it, feel free to ask me - I'm the one who broke ifconfig in the first place. - Jamie --------------070206030304030508090404 Content-Type: text/plain; name="ifconfig.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ifconfig.diff" Index: sbin/ifconfig/ifgroup.c =================================================================== --- isbin/ifconfig/fgroup.c (revision 189318) +++ sbin/ifconfig/ifgroup.c (working copy) @@ -131,9 +131,9 @@ int len, cnt = 0; int s; - s = socket(AF_INET, SOCK_DGRAM, 0); + s = socket(AF_LOCAL, SOCK_DGRAM, 0); if (s == -1) - err(1, "socket(AF_INET,SOCK_DGRAM)"); + err(1, "socket(AF_LOCAL,SOCK_DGRAM)"); bzero(&ifgr, sizeof(ifgr)); strlcpy(ifgr.ifgr_name, groupname, sizeof(ifgr.ifgr_name)); if (ioctl(s, SIOCGIFGMEMB, (caddr_t)&ifgr) == -1) { Index: sbin/ifconfig/ifclone.c =================================================================== --- sbin/ifconfig/ifclone.c (revision 189318) +++ sbin/ifconfig/ifclone.c (working copy) @@ -54,9 +54,9 @@ int idx; int s; - s = socket(AF_INET, SOCK_DGRAM, 0); + s = socket(AF_LOCAL, SOCK_DGRAM, 0); if (s == -1) - err(1, "socket(AF_INET,SOCK_DGRAM)"); + err(1, "socket(AF_LOCAL,SOCK_DGRAM)"); memset(&ifcr, 0, sizeof(ifcr)); Index: sbin/ifconfig/ifconfig.c =================================================================== --- sbin/ifconfig/ifconfig.c (revision 189318) +++ sbin/ifconfig/ifconfig.c (working copy) @@ -441,22 +441,23 @@ DEF_CMD("ifdstaddr", 0, setifdstaddr); static int -ifconfig(int argc, char *const *argv, int iscreate, const struct afswtch *afp) +ifconfig(int argc, char *const *argv, int iscreate, const struct afswtch *uafp) { - const struct afswtch *nafp; + const struct afswtch *afp, *nafp; const struct cmd *p; struct callback *cb; int s; strncpy(ifr.ifr_name, name, sizeof ifr.ifr_name); + afp = uafp != NULL ? uafp : af_getbyname("inet"); top: - if (afp == NULL) - afp = af_getbyname("inet"); ifr.ifr_addr.sa_family = afp->af_af == AF_LINK || afp->af_af == AF_UNSPEC ? - AF_INET : afp->af_af; + AF_LOCAL : afp->af_af; - if ((s = socket(ifr.ifr_addr.sa_family, SOCK_DGRAM, 0)) < 0) + if ((s = socket(ifr.ifr_addr.sa_family, SOCK_DGRAM, 0)) < 0 && + (uafp != NULL || errno != EPROTONOSUPPORT || + (s = socket(AF_LOCAL, SOCK_DGRAM, 0)) < 0)) err(1, "socket(family %u,SOCK_DGRAM", ifr.ifr_addr.sa_family); while (argc > 0) { @@ -803,11 +804,12 @@ if (afp == NULL) { allfamilies = 1; - afp = af_getbyname("inet"); - } else + ifr.ifr_addr.sa_family = AF_LOCAL; + } else { allfamilies = 0; - - ifr.ifr_addr.sa_family = afp->af_af == AF_LINK ? AF_INET : afp->af_af; + ifr.ifr_addr.sa_family = + afp->af_af == AF_LINK ? AF_LOCAL : afp->af_af; + } strncpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)); s = socket(ifr.ifr_addr.sa_family, SOCK_DGRAM, 0); --------------070206030304030508090404-- From owner-freebsd-jail@FreeBSD.ORG Fri Mar 13 17:31:30 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 AB10F1065672 for ; Fri, 13 Mar 2009 17:31:30 +0000 (UTC) (envelope-from dez@accid.net) Received: from postville.darq.net (postville.darq.net [82.136.41.65]) by mx1.freebsd.org (Postfix) with ESMTP id 6CAE18FC19 for ; Fri, 13 Mar 2009 17:31:30 +0000 (UTC) (envelope-from dez@accid.net) Received: from localhost (postville [82.136.41.65]) by postville.darq.net (Postfix) with ESMTP id 46ABE31540B5 for ; Fri, 13 Mar 2009 17:14:52 +0000 (GMT) X-Virus-Scanned: amavisd-new at darq.net Received: from postville.darq.net ([82.136.41.65]) by localhost (postville.darq.net [82.136.41.65]) (amavisd-new, port 10024) with ESMTP id 0lVL9N0VSVJf for ; Fri, 13 Mar 2009 17:14:50 +0000 (GMT) Received: from [10.10.10.9] (78-105-7-89.zone3.bethere.co.uk [78.105.7.89]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: dez@accid.net) by postville.darq.net (Postfix) with ESMTPSA id C8A003153733 for ; Fri, 13 Mar 2009 17:14:50 +0000 (GMT) Message-ID: <49BA948B.40302@accid.net> Date: Fri, 13 Mar 2009 17:14:51 +0000 From: Desmond Vicks User-Agent: Thunderbird 2.0.0.17 (X11/20081023) MIME-Version: 1.0 To: freebsd-jail@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: which patch to use with 7.1-RELEASE? 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: Fri, 13 Mar 2009 17:31:30 -0000 Hi list, I have a 7.1-RELEASE machine here and would like to get it going with multi-ip jails. Problem is I'm finding it difficult to work out which patch I should use with the RELEASE branch. Can somebody please point it out for me? I know that the multi-ip jail patch is 7-STABLE branch, but I really need to be tracking RELEASE on this box. Thanks for your help -- Dez From owner-freebsd-jail@FreeBSD.ORG Sat Mar 14 10:49:34 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 DAD19106564A for ; Sat, 14 Mar 2009 10:49:34 +0000 (UTC) (envelope-from alexey@renatasystems.org) Received: from mx-4.renatasystems.org (mx-4.renatasystems.org [217.16.18.200]) by mx1.freebsd.org (Postfix) with SMTP id 16FFB8FC08 for ; Sat, 14 Mar 2009 10:49:33 +0000 (UTC) (envelope-from alexey@renatasystems.org) Received: (qmail 92409 invoked by uid 1001); 14 Mar 2009 13:22:50 +0300 Date: Sat, 14 Mar 2009 13:22:50 +0300 From: "Alexey V. Degtyarev" To: freebsd-jail@FreeBSD.org Message-ID: <20090314102250.GJ15853@hs-4.renatasystems.org> References: <49BA948B.40302@accid.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49BA948B.40302@accid.net> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: Subject: Re: which patch to use with 7.1-RELEASE? 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: Sat, 14 Mar 2009 10:49:35 -0000 Hi Desmond and everyone, I have been searching the same, and was unable to point any explicit patch for 7.1-RELEASE, but trying the nearest to release's date patch seems to works fine for me: http://people.freebsd.org/~bz/bz_jail7-20081126-02-at153644.diff execution of `patch -p6 < ./bz_jail7-20081126-02-at153644.diff' get all the hunks to be succeed, and my jails are multi-ip'ed now. Please correct me anybody if I was wrong. > I have a 7.1-RELEASE machine here and would like to get it going with > multi-ip jails. > > Problem is I'm finding it difficult to work out which patch I should use > with the RELEASE branch. Can somebody please point it out for me? > > I know that the multi-ip jail patch is 7-STABLE branch, but I really need > to be tracking RELEASE on this box. -- Alexey V. Degtyarev