From owner-freebsd-jail@FreeBSD.ORG Fri Apr 10 16:51: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 CEE5A106564A for ; Fri, 10 Apr 2009 16:51:51 +0000 (UTC) (envelope-from goya@eik.bme.hu) Received: from mono.eik.bme.hu (mono.eik.bme.hu [IPv6:2001:738:2001:2001::2001]) by mx1.freebsd.org (Postfix) with ESMTP id 261B18FC08 for ; Fri, 10 Apr 2009 16:51:50 +0000 (UTC) (envelope-from goya@eik.bme.hu) Received: from localhost (localhost [127.0.0.1]) by mono.eik.bme.hu (Postfix) with ESMTP id 4CA4026B; Fri, 10 Apr 2009 18:51:49 +0200 (CEST) X-Virus-Scanned: amavisd-new at eik.bme.hu Received: from mono.eik.bme.hu ([127.0.0.1]) by localhost (mono.eik.bme.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id oP+qFeY4il6z; Fri, 10 Apr 2009 18:51:49 +0200 (CEST) Received: by mono.eik.bme.hu (Postfix, from userid 884) id 17C6257B; Fri, 10 Apr 2009 18:51:49 +0200 (CEST) Date: Fri, 10 Apr 2009 18:51:48 +0200 (CEST) From: JAKO Andras X-X-Sender: goya@mono To: "Bjoern A. Zeeb" In-Reply-To: <20090410135647.E15361@maildrop.int.zabbadoz.net> Message-ID: References: <20090410135647.E15361@maildrop.int.zabbadoz.net> Organization: Budapest University of Technology and Economics - Division of Telecommunications and Informatics X-GPG-public_key: http://splash.eik.bme.hu/JakoAndras-pubkey.asc X-GPG-fingerprint: 59B59365 - 6A25 5EEC C11D 41FB 2EE8 F171 F77C F862 59B5 9365 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-jail@freebsd.org Subject: Re: lo0's IPv6 address overwritten 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, 10 Apr 2009 16:51:52 -0000 > testing this on a bit older HEAD: > > ifconfig lo1 create inet6 2001:738:2001:1000::2/128 > ifconfig lo0 ; ifconfig lo1 > lo0: flags=8049 metric 0 mtu 16384 > options=3 > inet 127.0.0.1 netmask 0xff000000 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 lo1: > flags=8049 metric 0 mtu 16384 > options=3 > inet6 2001:738:2001:1000::2 prefixlen 128 jail -l -U root -i / > hostname "2001:738:2001:1000::2" /bin/sh > 1 > # sysctl security.jail.jailed > security.jail.jailed: 1 > # ifconfig lo0; ifconfig lo1 > lo0: flags=8049 metric 0 mtu 16384 > options=3 > lo1: flags=8049 metric 0 mtu 16384 > options=3 > inet6 2001:738:2001:1000::2 prefixlen 128 This works fine here too. > I wonder what's going onfor you. Can you check with > netstat -rn -f inet6 > that what you are seeing is indeed true? It's always the same: Internet6: Destination Gateway Flags Netif Expire ::/96 ::1 UGRS lo0 => default fe80::1%em0 UGS em0 ::1 ::1 UHL lo0 ::ffff:0.0.0.0/96 ::1 UGRS lo0 2001:738:2001:1000::2 link#5 UHL lo0 2001:738:2001:2001::/64 link#3 UC em0 2001:738:2001:2001::62 00:1b:21:30:ee:7e UHL lo0 fe80::/10 ::1 UGRS lo0 fe80::%em0/64 link#3 UC em0 fe80::1%em0 00:06:52:7c:64:40 UHLW em0 fe80::21b:21ff:fe30:ee7e%em0 00:1b:21:30:ee:7e UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01:3::/32 link#3 UC em0 ff01:4::/32 ::1 UC lo0 ff01:5::/32 2001:738:2001:1000::2 UC lo1 ff02::/16 ::1 UGRS lo0 ff02::%em0/32 link#3 UC em0 ff02::%lo0/32 ::1 UC lo0 ff02::%lo1/32 2001:738:2001:1000::2 UC lo1 > Can you try starting the jail to get an interactive shell and not > running any scripts like I did and check what happens then? That works, and ifconfig doesn't show any change on lo0. I found that when I start a telnet in the jail to an arbitrary global IPv6 address, lo0's ::1 changes to the jail's IPv6 address. The routing table doesn't change. Andras