pkg(1) ipv6 address not listening
Matthew Seaman
matthew at FreeBSD.org
Fri Nov 22 07:30:08 UTC 2013
On 22/11/2013 07:19, Stanisław Halik wrote:
> Hey,
>
> On Fri November 22 2013 07:15:00 Matthew Seaman wrote:
>>> pkg(1) doesn't like ipv6 from two different subnets:
>>> | ^C15720: connect(6,{ AF_INET6 [2001:41c8:112:8300::50:1]:80 },28) ERR#4
>>
>> pkg(8) works fine over IPv6 for me.
>
> Failing command is:
>
> % pkg update
>
> using default repo configuration. The above line was producted by:
>
> % truss -f pkg update
>
> Unable to access pkg.freebsd.org IPv6 server over two subnets.
> Tested with `nc -v'
>
> 2001:470:600d:dead:beae:c5ff:fee1:4407/48
> 2a01:4f8:192:50e3::/64
>
> 1001 ~ % ssh ananke.laggy.pk cat /etc/pkg/FreeBSD.conf
> FreeBSD: {
> url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
> mirror_type: "srv",
> enabled: "yes"
> }
Are you running the ports-mgmt/pkg-devel port or did you install from
GitHub sources? (I deduce this because the config format with curly
braces does not work with pkg-1.1.4...)
Can't reproduce with 1.1.4:
xenophobe:/usr/local/etc:# pkg -vv
Version: 1.1.4
PACKAGESITE:
PKG_DBDIR: /var/db/pkg
PKG_CACHEDIR: /var/cache/pkg
PORTSDIR: /usr/ports
PUBKEY:
HANDLE_RC_SCRIPTS: no
ASSUME_ALWAYS_YES: no
REPOS_DIR: /usr/local/etc/pkg/repos/
PLIST_KEYWORDS_DIR:
SYSLOG: yes
AUTODEPS: no
ABI: freebsd:9:x86:64
DEVELOPER_MODE: no
PORTAUDIT_SITE: http://portaudit.FreeBSD.org/auditfile.tbz
VULNXML_SITE: http://www.vuxml.org/freebsd/vuln.xml.bz2
MIRROR_TYPE: SRV
FETCH_RETRY: 3
PKG_PLUGINS_DIR: /usr/local/lib/pkg/
PKG_ENABLE_PLUGINS: yes
PLUGINS:
DEBUG_SCRIPTS: no
PLUGINS_CONF_DIR: /usr/local/etc/pkg/
PERMISSIVE: no
REPO_AUTOUPDATE: yes
NAMESERVER:
EVENT_PIPE:
FETCH_TIMEOUT: 30
UNSET_TIMESTAMP: no
SSH_RESTRICT_DIR:
PKG_ENV:
DISABLE_MTREE: no
Repositories:
pkg-test:
url: pkg+http://pkg.freebsd.org/freebsd:9:x86:64/latest
key:
enabled: yes
mirror_type: SRV
xenophobe:/usr/local/etc:# pkg update -f
Updating repository catalogue
digests.txz 100% 996KB 996.1KB/s 996.1KB/s
00:01
packagesite.txz 100% 5555KB 1.4MB/s 1.1MB/s
00:04
Incremental update completed, 0 packages processed:
0 packages updated, 0 removed and 0 added.
This is using an IPv6-only jail:
xenophobe:/usr/local/etc:# ifconfig em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
ether 68:05:ca:0b:3d:42
inet6 2001:8b0:151:1:54f9:9484:e8b0:12d1 prefixlen 128
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1036 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20131122/09ec3b73/attachment.sig>
More information about the freebsd-current
mailing list