DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 29th August 2011
desreguard desreguard is offline
Port Guard
 
Join Date: May 2011
Posts: 11
Thanked 0 Times in 0 Posts
Default FTP issue?

Hey all, I have a OpenBSD 4.8 installed on a Dell Dimension Intel P4, I can ping my gateway and Google. But when i try to install a port the FTP complains that i couldnt connect to the FTp site. Has anyone had a problem like this before?


Here is the error that I get.


Code:
>> Fetch ftp://ftp.usa.openbsd.org/pub/OpenBSD/distfiles//pinfo-0.6.9.tar.gz
ftp: connect: No route to host
ftp: Can't connect or login to host `ftp.usa.openbsd.org'
*** Error code 1

Stop in /usr/ports/textproc/pinfo (line 2527 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/textproc/pinfo (line 1957 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/textproc/pinfo (line 2168 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/textproc/pinfo (line 1580 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/textproc/pinfo (line 2136 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/textproc/pinfo (line 2116 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/textproc/pinfo (line 1611 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/textproc/pinfo (line 2116 of /usr/ports/infrastructure/mk/bsd.port.mk).
Reply With Quote
  #2   (View Single Post)  
Old 29th August 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,688
Thanked 214 Times in 189 Posts
Default

Just install the package from your nearest mirror. There are no FLAVORs requiring a unique build. See FAQ 15.4.6.

Your network issue requires more information to diagnose. We would need the output from ifconfig, and from route -n show -inet, at least.
Reply With Quote
  #3   (View Single Post)  
Old 29th August 2011
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,148
Thanked 182 Times in 149 Posts
Default

Does the ftp site resolve?
Code:
$ dig ftp.usa.openbsd.org

; <<>> DiG 9.4.2-P2 <<>> ftp.usa.openbsd.org
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56187
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;ftp.usa.openbsd.org.           IN      A

;; ANSWER SECTION:
ftp.usa.openbsd.org.    86400   IN      CNAME   plier.ucar.edu.
plier.ucar.edu.         17450   IN      A       192.43.244.161

;; Query time: 993 msec
;; SERVER: 192.168.222.10#53(192.168.222.10)
;; WHEN: Mon Aug 29 03:21:12 2011
;; MSG SIZE  rcvd: 81
Can you manually access the ftp site?

Code:
$ ftp -a ftp.usa.openbsd.org

Connected to plier.ucar.edu.
220 plier.ucar.edu FTP server ready.
331 Guest login ok, send your email address as password.
230-   Welcome to ftp3.usa.OpenBSD.org in Boulder, Colorado, USA.
230-   For other mirror sites visit http://www.openbsd.org/ftp.html

[snip]

230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> quit
221 Goodbye.
$
What does your routing table look like?
Code:
$ netstat -rn -f inet
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #4   (View Single Post)  
Old 29th August 2011
desreguard desreguard is offline
Port Guard
 
Join Date: May 2011
Posts: 11
Thanked 0 Times in 0 Posts
Default FTP issue

Does this help?



Code:
ifconfig lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33200
        priority: 0
        groups: lo
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:1e:2a:49:aa:15
        priority: 0
        media: Ethernet autoselect (100baseTX half-duplex)
        status: no carrier
xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:01:03:1a:d0:22
        priority: 0
        media: Ethernet autoselect (none)
        status: no carrier
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:0c:f1:88:b1:3f
        priority: 0
        groups: egress
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet6 fe80::20c:f1ff:fe88:b13f%fxp0 prefixlen 64 scopeid 0x3
        inet 192.168.1.104 netmask 0xffffff00 broadcast 255.255.255.255
enc0: flags=0<>
        priority: 0
        groups: enc
        status: active
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33200
        priority: 0
        groups: pflog

Code:
 route -n show -inet             
Routing tables

Internet:
Destination        Gateway            Flags   Refs      Use   Mtu  Prio Iface
default            192.168.1.1        UGS        0      246     -     8 fxp0 
127/8              127.0.0.1          UGRS       0        0 33200     8 lo0  
127.0.0.1          127.0.0.1          UH         2        0 33200     4 lo0  
192.168.1/24       link#3             UC         2        0     -     4 fxp0 
192.168.1.1        94:0c:6d:ee:f8:b6  UHLc       2       37     -     4 fxp0 
192.168.1.100      00:1f:e2:61:92:6c  UHLc       1     2723     -     4 fxp0 
192.168.1.104      127.0.0.1          UGHS       0        0 33200     8 lo0  
224/4              127.0.0.1          URS        0        0 33200     8 lo0
Reply With Quote
  #5   (View Single Post)  
Old 29th August 2011
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,148
Thanked 182 Times in 149 Posts
Default

All are useful, but why don't I see the result of the dig and ftp commands I asked for?
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #6   (View Single Post)  
Old 29th August 2011
desreguard desreguard is offline
Port Guard
 
Join Date: May 2011
Posts: 11
Thanked 0 Times in 0 Posts
Default ftp issue

It looks like it resolves but the ftp didnt connect.
Code:
dig ftp.usa.opensbsd.org

; <<>> DiG 9.4.2-P2 <<>> ftp.usa.opensbsd.org
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 13875
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;ftp.usa.opensbsd.org.          IN      A

;; AUTHORITY SECTION:
org.                    900     IN      SOA     a0.org.afilias-nst.info. noc.afilias-nst.info. 2009752959 1800 900 604800 86400

;; Query time: 59 msec
;; SERVER: 74.128.19.102#53(74.128.19.102)
;; WHEN: Sun Aug 28 20:59:13 2011
;; MSG SIZE  rcvd: 101



Code:
ftp -a ftp.usa.openbsd.org
ftp: connect: No route to host
ftp> exit




Code:
 netstat -rn -f inet
Routing tables

Internet:
Destination        Gateway            Flags   Refs      Use   Mtu  Prio Iface
default            192.168.1.1        UGS        0      251     -     8 fxp0 
127/8              127.0.0.1          UGRS       0        0 33200     8 lo0  
127.0.0.1          127.0.0.1          UH         2        0 33200     4 lo0  
192.168.1/24       link#3             UC         2        0     -     4 fxp0 
192.168.1.1        94:0c:6d:ee:f8:b6  UHLc       2       37     -     4 fxp0 
192.168.1.100      00:1f:e2:61:92:6c  UHLc       1     2969     -     4 fxp0 
192.168.1.104      127.0.0.1          UGHS       0        0 33200     8 lo0  
224/4              127.0.0.1          URS        0        0 33200     8 lo0
Reply With Quote
  #7   (View Single Post)  
Old 29th August 2011
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,148
Thanked 182 Times in 149 Posts
Default

Code:
[snip]
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
[snip]
; AUTHORITY SECTION:
org.                    900     IN      SOA     a0.org.afilias-nst.info. noc.afilias-nst.info. 2009752959 1800 900 604800 86400
Somehow the 74.128.19.102 nameserver does not resolve the ftp.usa.opensbsd.org to it's IP address. That is the problem .......

You can try using Google's nameservers by adding appropiate nameserver lines in /etc/resolv.conf
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #8   (View Single Post)  
Old 29th August 2011
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 563
Thanked 14 Times in 13 Posts
Default

FWIW, I'm unable to resolve ftp.usa.opensbsd.org using any of half a dozen nameservers, including google's.
Reply With Quote
  #9   (View Single Post)  
Old 29th August 2011
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 322
Thanked 9 Times in 9 Posts
Default

Code:
$ dig @8.8.8.8 ftp.usa.openbsd.org

; <<>> DiG 9.4.2-P2 <<>> @8.8.8.8 ftp.usa.openbsd.org
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5202
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;ftp.usa.openbsd.org.           IN      A

;; ANSWER SECTION:
ftp.usa.openbsd.org.    0       IN      CNAME   plier.ucar.edu.
plier.ucar.edu.         86400   IN      A       192.43.244.161

;; Query time: 274 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Mon Aug 29 10:37:43 2011
;; MSG SIZE  rcvd: 81
Works for me with google's public dns. What IP did you use?
__________________
Linux Admin by Profession. OpenBSD user by choice.
Reply With Quote
Old 29th August 2011
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 563
Thanked 14 Times in 13 Posts
Default

I used both 8.8.8.8 and 8.8.4.4 from google. For example:

Code:
PROMPT> nslookup  ftp.usa.opensbsd.org 8.8.8.8
Server:         8.8.8.8
Address:        8.8.8.8#53

** server can't find ftp.usa.opensbsd.org: NXDOMAIN

PROMPT> dig @8.8.8.8  ftp.usa.opensbsd.org 

; <<>> DiG 9.4-ESV-R5 <<>> @8.8.8.8 ftp.usa.opensbsd.org
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 58576
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;ftp.usa.opensbsd.org.          IN      A

;; AUTHORITY SECTION:
org.                    822     IN      SOA     a0.org.afilias-nst.info. noc.afilias-nst.info. 2009753663 1800 900 604800 86400

;; Query time: 72 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Mon Aug 29 11:43:15 2011
;; MSG SIZE  rcvd: 101
Reply With Quote
Old 29th August 2011
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 322
Thanked 9 Times in 9 Posts
Default

You should have an authority section that looks like this:

Code:
;; AUTHORITY SECTION:
ucar.edu.               172800  IN      NS      dns.ucar.edu.
ucar.edu.               172800  IN      NS      dns2.itd.umich.edu.
ucar.edu.               172800  IN      NS      dnsx1.ucar.edu.
ucar.edu.               172800  IN      NS      dnsx2.ucar.edu.
Looks like afilias-nst.info is attempting to claim authority where it shouldn't? Sounds like your ISP is redirecting dns, too, if you get that no matter what dns server you use.

Edit - If you can, install dnstracer and run something like dnstracer -s <dns_server> -4 ftp.usa.openbsd.org and post the results. Scratch the stuff about afilias-nst.info, that appears to be an upstream dns server from openbsd.org.
__________________
Linux Admin by Profession. OpenBSD user by choice.

Last edited by rocket357; 29th August 2011 at 04:11 PM.
Reply With Quote
Old 29th August 2011
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 563
Thanked 14 Times in 13 Posts
Default

Welp, here is what I get from a shell account on devio.us. This bypasses my ISP entirely.
Code:
OpenBSD> dig @8.8.8.8 ftp.usa.opensbsd.org

; <<>> DiG 9.4.2-P2 <<>> @8.8.8.8 ftp.usa.opensbsd.org
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 26603
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;ftp.usa.opensbsd.org.          IN      A

;; AUTHORITY SECTION:
org.                    900     IN      SOA     a0.org.afilias-nst.info. noc.afilias-nst.info. 2009753686 1800 900 604800 86400

;; Query time: 66 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Mon Aug 29 12:07:31 2011
;; MSG SIZE  rcvd: 101
The Internet, she is broken?

ADDED: And from an entirely different SunOS shell account:
Code:
SunOS> dig @8.8.8.8  ftp.usa.opensbsd.org

; <<>> DiG 8.3 <<>> @8.8.8.8 ftp.usa.opensbsd.org 
; (1 server found)
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 4
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUERY SECTION:
;;      ftp.usa.opensbsd.org, type = A, class = IN

;; AUTHORITY SECTION:
org.                    15M IN SOA      a0.org.afilias-nst.info. noc.afilias-nst.info. (
                                        2009753688      ; serial
                                        30M             ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum


;; Total query time: 118 msec
;; FROM: antares to SERVER: 8.8.8.8  8.8.8.8
;; WHEN: Mon Aug 29 11:11:40 2011
;; MSG SIZE  sent: 38  rcvd: 101
Reply With Quote
Old 29th August 2011
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 322
Thanked 9 Times in 9 Posts
Default

Quote:
Originally Posted by IdOp View Post
Code:
OpenBSD> dig @8.8.8.8 ftp.usa.opensbsd.org
There's the problem.
__________________
Linux Admin by Profession. OpenBSD user by choice.
Reply With Quote
Old 29th August 2011
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 563
Thanked 14 Times in 13 Posts
Default

Quote:
Originally Posted by rocket357 View Post
There's the problem.
Ah-ha!! You have eagle-eyes!

I had just grabbed that with the mouse from the post of desreguard and not read it carefully. Fixing that it works. Thank you!
Reply With Quote
Old 29th August 2011
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 322
Thanked 9 Times in 9 Posts
Default

I didn't notice until I copied the command directly from your post and noticed it didn't work. At that point I looked at them character for character haha.

Edit - That explains why a0.org.afilias-net.info claimed authority on the matter...opensbsd.org does NOT exist within its jurisdiction.
__________________
Linux Admin by Profession. OpenBSD user by choice.

Last edited by rocket357; 29th August 2011 at 04:28 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VPN Nat issue on 4.8 copetts OpenBSD Security 2 12th April 2011 10:34 AM
sudo issue rpindy OpenBSD General 6 31st May 2010 04:12 PM
OpenBSD 4.7 issue? rpindy OpenBSD Installation and Upgrading 18 21st May 2010 12:33 AM
Possible SMP Issue? MetalHead OpenBSD General 1 25th November 2008 03:52 AM
RAM issue nikkon FreeBSD General 5 7th May 2008 04:26 AM


All times are GMT. The time now is 10:29 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick