|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
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). |
|
|||
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 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. $ 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 |
|
|||
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 |
|
|||
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 |
|
|||
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 |
|
|||
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 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 |
|
||||
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
__________________
Linux/Network-Security Engineer by Profession. OpenBSD user by choice. |
|
||||
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 |
|
||||
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. 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/Network-Security Engineer by Profession. OpenBSD user by choice. Last edited by rocket357; 29th August 2011 at 04:11 PM. |
|
||||
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 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 |
|
||||
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! |
|
||||
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/Network-Security Engineer by Profession. OpenBSD user by choice. Last edited by rocket357; 29th August 2011 at 04:28 PM. |
Thread Tools | |
Display Modes | |
|
|
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 |