Re: pkg(1) ipv6 address not listening

From: Matthew Seaman <matthew_at_FreeBSD.org>
Date: Fri, 22 Nov 2013 07:30:02 +0000
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



Received on Fri Nov 22 2013 - 06:30:08 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:44 UTC