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