Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Apr 2015 10:02:04 +0200
From:      Marten <info@martenvijn.nl>
To:        stable@freebsd.org
Subject:   Re: boostrapping pkg and ipv6
Message-ID:  <67683314-3A1B-43C9-B2B2-CB4B593457E9@martenvijn.nl>
In-Reply-To: <C92EE825-682A-4BEC-8FD6-592268E21255@martenvijn.nl>
References:  <C92EE825-682A-4BEC-8FD6-592268E21255@martenvijn.nl>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_822BC9D8-9F01-40AE-9D38-796C245B10FF
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hi all,

fyi:
pkg does not honor -4 or such config /usr/local/etc/pkg.conf
http://vuxml.freebsd.org/freebsd/vuln.xml.bz2 =
<http://vuxml.freebsd.org/freebsd/vuln.xml.bz2>; is not reachable over =
ipv6

adding ipv4 addresses in /etc/hosts are a workaround

data below,

kind regards,
Marten

on this box with ipv4 and 6 configured:

/usr/local/etc/pkg.conf   =3D> IP_VERSION: 4

pkg -4 audit -F
pkg: http://vuxml.freebsd.org/freebsd/vuln.xml.bz2: =
<http://vuxml.freebsd.org/freebsd/vuln.xml.bz2:>; Operation timed out
pkg: cannot fetch vulnxml file


fetch http://vuxml.freebsd.org/freebsd/vuln.xml.bz2 =
<http://vuxml.freebsd.org/freebsd/vuln.xml.bz2>;
vuln.xml.bz2
fetch: transfer timed out

tcpdump shows no ipv4 traffic though is sees traffic to =
2001:1900:2254:206a::50:0


host  2001:1900:2254:206a::50:0
0.0.0.0.0.5.0.0.0.0.0.0.0.0.0.0.a.6.0.2.4.5.2.2.0.0.9.1.1.0.0.2.ip6.arpa =
domain name pointer wfe0.ysv.freebsd.org <http://wfe0.ysv.freebsd.org/>;

host vuxml.freebsd.org <http://vuxml.freebsd.org/>;
vuxml.freebsd.org <http://vuxml.freebsd.org/>; is an alias for =
wfe0.ysv.freebsd.org <http://wfe0.ysv.freebsd.org/>.
wfe0.ysv.freebsd.org <http://wfe0.ysv.freebsd.org/>; has address =
8.8.178.110
wfe0.ysv.freebsd.org <http://wfe0.ysv.freebsd.org/>; has IPv6 address =
2001:1900:2254:206a::50:0
wfe0.ysv.freebsd.org <http://wfe0.ysv.freebsd.org/>; mail is handled by 0 =
.
2001:1900:2254:206a::50:0


while on another box without ipv6 configured:
fetch http://vuxml.freebsd.org/freebsd/vuln.xml.bz2 =
<http://vuxml.freebsd.org/freebsd/vuln.xml.bz2>;
vuln.xml.bz2                                  100% of  474 kB  434 kBps


adding the next line to /etc/hosts

8.8.178.110 vuxml.freebsd.org <http://vuxml.freebsd.org/>; =
wfe0.ysv.freebsd.org <http://wfe0.ysv.freebsd.org/>;


pkg -4 audit -F
pkg: vulnxml file up-to-date
0 problem(s) in the installed packages found.





> On Mar 28, 2015, at 9:10 AM, Marten <info@martenvijn.nl =
<mailto:info@martenvijn.nl>> wrote:
>=20
> Hi all,
>=20
> While bootstrapping pkg a fresh  jail on FreeBSD 10.1 with IPv6 =
enabled the process stalls.
>=20
> #uname -a
> FreeBSD node.vijn.org <http://node.vijn.org/>; 10.1-RELEASE-p5 FreeBSD =
10.1-RELEASE-p5 #0: Tue Jan 27 08:55:07 UTC 2015     =
root@amd64-builder.daemonology.net =
<mailto:root@amd64-builder.daemonology.net>:/usr/obj/usr/src/sys/GENERIC =
 amd64
>=20
> -> /etc/jail.conf
> exec.start	=3D "/bin/sh /etc/rc";
> exec.stop =3D "/bin/sh /etc/rc.shutdown";
> exec.clean;
> mount.devfs;
> path =3D "/data/jails/$name";
>=20
> host.hostname=3D"$name.vijn.org <http://name.vijn.org/>";
>=20
> node {
> 	ip4.addr=3D 192.x.x.22;
> 	ip6.addr=3D 2001:980:xxxx:x::22;
> 	}
>=20
>=20
> root@node:/ # ifconfig
> nfe0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 =
mtu 1500
> 	options=3D8210b<RXCSUM,TXCSUM,VLAN_MTU,TSO4,WOL_MAGIC,LINKSTATE>
> 	ether 90:e6:ba:7a:44:e8
> 	inet 192.x.x.22 netmask 0xffffff00 broadcast 192.x.x.255
> 	inet6 2001:980:xxxx:x::22 prefixlen 64
> 	nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL>
> 	media: Ethernet autoselect (100baseTX <full-duplex>)
> 	status: active
> lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
> 	options=3D600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
> 	nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL>
>=20
>=20
> root@http:/ # telnet pkg.freebsd.org <http://pkg.freebsd.org/>; 80
> Trying 2001:41c8:112:8300::50:1...
> Connected to pkg.freebsd.org <http://pkg.freebsd.org/>.
> Escape character is '^]'.
> ^CConnection closed by foreign host.
>=20
>=20
> root@http:/ # pkg search node
> The package management tool is not yet installed on your system.
> Do you want to fetch and install it now? [y/N]: y
> Bootstrapping pkg from =
pkg+http://pkg.FreeBSD.org/freebsd:10:x86:64/latest =
<pkg+http://pkg.FreeBSD.org/freebsd:10:x86:64/latest>, please wait...
> ^C
>=20
> root@http:/ # pkg -4 search node
> The package management tool is not yet installed on your system.
> Do you want to fetch and install it now? [y/N]: y
> Bootstrapping pkg from =
pkg+http://pkg.FreeBSD.org/freebsd:10:x86:64/latest =
<pkg+http://pkg.FreeBSD.org/freebsd:10:x86:64/latest>, please wait=E2=80=A6=

> ^C
>=20
> disabling IPv6 in /etc/jail.conf
> node {
> 	ip4.addr=3D 192.x.x.22;
> #	ip6.addr=3D 2001:980:xxxx:x::22;
> 	}
> # /etc/rc.d/jail restart node
>=20
>=20
> # pkg search node
> The package management tool is not yet installed on your system.
> Do you want to fetch and install it now? [y/N]: y
> Bootstrapping pkg from =
pkg+http://pkg.FreeBSD.org/freebsd:10:x86:64/latest =
<pkg+http://pkg.FreeBSD.org/freebsd:10:x86:64/latest>, please wait...
> Verifying signature with trusted certificate pkg.freebsd.org =
<http://pkg.freebsd.org/>.2013102301... done
> [node.vijn.org <http://node.vijn.org/>] Installing pkg-1.4.12...
> [node.vijn.org <http://node.vijn.org/>] Extracting pkg-1.4.12: 100%
> Message for pkg-1.4.12:
>  If you are upgrading from the old package format, first run:
>=20
>   # pkg2ng
> drupal6-nodewords-6.x.1.14
> gstreamer-plugins-annodex-0.10.31_1,3
> leafnode-1.11.10_1
> monodevelop-5.0.1
> monodevelop-database-5.0.1
> munin-node-2.0.25_4
> node-0.12.0_1
> node-devel-0.11.16_1
> node-thrift-0.9.1_1
> node010-0.10.38
> p5-Tree-DAG_Node-1.25
> p5-Tree-Node-0.08_2
> p5-WebService-Linode-0.27
> p5-XML-Node-0.11_1
> p5-XML-NodeFilter-0.01_1
> xnodecor-0.1_2
>=20
>=20
> -> enabling IPv6
>=20
> #pkg search node
> drupal6-nodewords-6.x.1.14
> gstreamer-plugins-annodex-0.10.31_1,3
> leafnode-1.11.10_1
> monodevelop-5.0.1
> monodevelop-database-5.0.1
> munin-node-2.0.25_4
> node-0.12.0_1
> node-devel-0.11.16_1
> node-thrift-0.9.1_1
> node010-0.10.38
> p5-Tree-DAG_Node-1.25
> p5-Tree-Node-0.08_2
> p5-WebService-Linode-0.27
> p5-XML-Node-0.11_1
> p5-XML-NodeFilter-0.01_1
> xnodecor-0.1_2
>=20
>=20
> Any hints to fix this are welcome..
>=20
> Kind regards,
> Marten
>=20
>=20
>=20
>=20
>=20


--Apple-Mail=_822BC9D8-9F01-40AE-9D38-796C245B10FF
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJVH5p9AAoJEDVSpuKT0yUEUYgIAIxtAF7gxPynQvxrJnSZECui
T3lKVGSnJk4QIvSxWcbnJx2efciQ/KcwDxS+0Jgbt2zcjexU+aKTxY6vnZpnzUUU
rzO0rkKdPJZWzy5ghCRypRWr7mw+vOxH/GG7gbKCISD0qXP0YK0bQO3ViyoP9EDH
MfgiLhkr1YRo5OnyvVUmIl/4YI1PM/d7uKGEII7Nmk02iPrBdIMUM/M2llbKpaLf
W6W7eh+H8DzTa3nUSm2gADDmJsOY1z4wRxQS5wSxjPRWS6P4a0AIBGUcmterVIk2
JQDElwUykDmrtmJ4qnUUt28LPA99uVaeclGQLPl0bstYZT4LZdemq5oGxJxxE20=
=Q5C2
-----END PGP SIGNATURE-----

--Apple-Mail=_822BC9D8-9F01-40AE-9D38-796C245B10FF--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?67683314-3A1B-43C9-B2B2-CB4B593457E9>