Subject: Re: pkgsrc: ftp connections continually time out. Not behind
To: None <netbsd-users@netbsd.org>
From: alasdair <alasdair@primus.com.au>
List: netbsd-users
Date: 01/11/2007 11:09:17
At 01:43 AM 10/01/07, you wrote:
>Hello,
>
>On Wed, Jan 10, 2007 at 12:15:31AM +1100, Alasdair wrote:
> > NetBSD 3.01
> >
> > Problem: On attempting to fetch packages using pkgsrc the connections
> > continually time out. With  the error message "Connection timed out" .
> >
> > In my previous experience (with a previous system set-up) this may 
> happen a
> > few times then eventually the system finds a site to log onto and 
> downloads
> > the package.  So far I have only been able to download "pkgsrc" via CVS ok
> > and "Links" (text based browser). I have tried to download other packages
> > over a period of about 4 - 5 days at varying times of day and night 
> with no
> > success.
> > My connection is ok. I can use Links with no problem.
>
>Several questions/requests follow:
>
>* Did you try
>
>PASSIVE_FETCH=1
>
>in /etc/mk.conf? [1] If not, please do.
>
>* Did you try manual ftp from NetBSD to the problematic sites?
>* If manual ftp doesn't work, what is the error message?
>* If manual ftp works - please cut/paste the first few lines of its output
>
>* Please show us the output of:
>- cat /etc/resolv.conf
>- ifconfig -n -a
>- netstat -rnf inet
>- netstat -rnf inet6
>
>* Did you enable IPv6 in the windows installation that has working ftp?[2]
>
>Regards,
>         -is
>
>[1] See http://www.netbsd.org/Documentation/pkgsrc/faq.html#passive-ftp)
>
>[2] You might be a victim of a router that advertizes IPv6 to your
>     machine, but doesn't really route it. In this case you'll get long
>     timeouts when ftp is trying to open a ipv6 connection.
>     Windows XP has IPv6, but the method to enable it is somewhat hidden,
>     so I suspect it's not enabled in yoru installation.

Hi Ignatios,
Thanks for replying. the help is most appreciated. The following tables 
have been typed in by me manually because email is not configured in the 
system with the problem, I am not sure how to do it without mutt. So if 
there are any glaring inconsistencies it will most likely be a typo by me. 
I have checked as carefully as I can. Please let me know if you need 
anything clarified.

Below are are the results of the requests you sent me.

Regards,

Alasdair

I have added the suggested line in /etc/mk.conf. Then tried again same 
results with a few different pkg.
Manual ftp was unsuccessful,manual ftp error message follows:

ftp connect: Connection timed out

output ends

cat /etc/resolv.conf  output follows:

Created by dh client at Thu 11 Jan 09:01:07 EST 2007
nameserver 192.168.1.254

output ends

my system clock is 12hrs out this was produced 21:01:07 Aus EST 2007

-n -a was not available on my system so I used -a only,  did you mean -m -a 
? I can post this if you let me know.

Output of ifconfig -a


ifconfig -a
rtk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         address: 00:0a:cd:10:d4:f1
         media: Ethernet autoselect (100baseTX full-duplex)
         status: active
         inet 192.168.1.2 netmask 0xffffffc0 broadcast 192.168.1.255
         inet6 fe80::20a:cdff:fe10:d4f1%rtk0 prefixlen 64 scopeid 0x1
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33192
         inet 127.0.0.1 netmask 0xff000000
         inet6 ::1 prefixlen 128
         inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
Output ends

Output of
netstat -rnf inet

Routing tables
Internet:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface
default            192.168.1.1        UGS         0      147      -  rtk0
127/8              127.0.0.1          UGRS        0        0  33192  lo0
127.0.0.1          127.0.0.1          UH          2        2  33192  lo0
192.168.1/24       link#1             UC          1        0      -  rtk0
192.168.1.254      127.0.0.1          UGHS        0        0  33192  lo0
192.168.1.254    00:30:0a:35:c9:c3    UHLC        1       17      -  rtk0

Output of
netstat -rnf inet ends

Output of
netstat -rnf inet6

Destination                             Gateway            Flags     Refs 
   Use    Mtu  Interface
::/104                                  ::1 
UGRS            0       0          -            lo0
=>                                              ::1 
     UGRS            0       0          -            lo0
::96                                            ::1 
     UH              12      0         33192 lo0
::1                                             ::1 
     UGRS            0       0          -            lo0
::127.0.0.0/104                 ::1                             UGRS 
     0       0          -            lo0
::224.0.0.0/100                 ::1                             UGRS 
     0       0          -            lo0
::ffff.0.0.0.0/96                       ::1 
UGRS            0       0          -            lo0
2002::/24                                       ::1 
     UGRS            0       0          -            lo0
2002 
7fco::/24                          ::1                             UGRS 
        0       0          -            lo0
2002 
e000::/20                          ::1                             UGRS 
        0       0          -            lo0
2002 
ff00::/24                          ::1                             UGRS 
        0       0          -            lo0
fe80::/10                                       ::1 
     UGRS            0       0          -            lo0
fe80::%rtk0/64                          link#1                  UC 
     0       0          -            rtk0
fe80::20a:cdff:fe10:d4f1%rtk0   00:0a:cd:10:d4:f1       UHL             0 
     0          -            lo0
fe80::%lo0/64                           fe80::%lo0                      U 
             0       0          -            lo0
fec0::/10                                       ::1 
     UGLS            0       0          -            lo0
ff01::/32                                       ::1 
     UC              0       0          -            lo0
ff02::%rtk0/32                          link#1                  UC 
     0       0          -            rtk0
ff02::%rtk0/32                          ::1                             UC 
             0       0          -            lo0

Output of
netstat -rnf inet6 ends