From owner-freebsd-net Sat Mar 10 6:54: 9 2001 Delivered-To: freebsd-net@freebsd.org Received: from server1.manmail.norlight.net (server1.manmail.norlight.net [207.170.4.2]) by hub.freebsd.org (Postfix) with SMTP id 8AA4A37B718 for ; Sat, 10 Mar 2001 06:54:03 -0800 (PST) (envelope-from hyun@staff.norlight.net) Received: (qmail 2019 invoked from network); 10 Mar 2001 14:53:34 -0000 Received: from gw-app-eng.norlight.net (HELO staff.norlight.net) (207.170.1.30) by server1.manmail.norlight.net with SMTP; 10 Mar 2001 14:53:34 -0000 Message-ID: <3AAA400A.966DA35C@staff.norlight.net> Date: Sat, 10 Mar 2001 08:54:02 -0600 From: Hyunseog Ryu Organization: Norlight Telecommunications X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: Jean-Christophe Varaillon Cc: "Andy [TECC NOPS]" , freebsd-net@FreeBSD.ORG Subject: Re: - TFTP: Time out - References: Content-Type: multipart/mixed; boundary="------------AA5A88502EA07219E35A2420" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------AA5A88502EA07219E35A2420 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Check the /etc/hosts.allow file. Put this in the first of the file. ALL : localhost 127.0.0.1 : allow ALL : your_router_ip_address : allow ALL : your_fbsd_ip_address : allow Hyun Jean-Christophe Varaillon wrote: > > On Tue, 6 Mar 2001, Andy [TECC NOPS] wrote: > > > OK, from that all seems fine. But remeber > > that doing %tftp localhost and then trying > > a local get failed, so I suspect that there > > is something wrong with the local setup somewhere. > > > > Right, how come you have two lines beginning "tftp" > > in your /etc/inetd.conf ?? Thought there should be > > only one (the one ending -s /tftpboot). > > I uncommented the first line and I add another line to allow also an tftp > access to /usr/home/jcv. > > > Big point here is that inetd is invoked -wW so it's > > wrapping. Check /etc/hosts.allow (or is it > > /usr/local/etc/hosts.allow > > these days? dunno, check up on it). > > Do a man inetd and check this yourself. > > -wW turn on TCP Wrapping. > By "vi /etc/inted.conf" we can see that tftp is using UDP > > wrapping is used in a matter of security, no ? > If yes, my router is , for the moment just close to my desk an it is not a > remote router. > > > Try doing %telnet localhost 69 and see if your > > daemon will even allow a connection. > > Even as a super user, the daemon does not allow the connection. > --- > %telnet localhost 69 > Trying 127.0.0.1... > telnet: connect to address 127.0.0.1: Connection refused > Trying ::1... > telnet: connect to address ::1: Connection refused > telnet: Unable to connect to remote host > % > --- > > If none of these we'll try again > > > > Regards > > Andy > > > > > > > -----Original Message----- > > > From: owner-freebsd-net@FreeBSD.ORG > > > [mailto:owner-freebsd-net@FreeBSD.ORG]On Behalf Of Jean-Christophe > > > Varaillon > > > Sent: 06 March 2001 16:37 > > > To: Andy [TECC NOPS] > > > Cc: freebsd-net@FreeBSD.ORG > > > Subject: RE: - TFTP: Time out - > > > > > > > > > It is still not working between my machine and the cisco #( > > > > > > So, let summurize what I should fixe: > > > > > > === Make my FreeBSD machine as a tftp server === > > > > > > vi /etc/inetd.conf: > > > -- > > > tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /tftpboot > > > tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /usr/home/jcv > > > -- > > > > > > -- > > > homer# ps auwx | grep inetd > > > root 108 0.0 0.5 1044 604 ?? Is 27Feb01 0:00.19 inetd -wW > > > jcv 23629 0.0 0.9 1548 1136 pc I+ 4:15PM 0:00.02 vi > > > /etc/inetd.conf > > > homer# kill -HUP 108 > > > -- > > > > > > I can see that the server is actually listening: > > > -- > > > %netstat -a | grep tftp > > > udp4 0 0 *.tftp *.* > > > % > > > -- > > > > > > ===== TFTP LOCALHOST TEST ===== > > > %su > > > Password: > > > > > > homer# cd /tftpboot > > > homer# ls -l > > > total 8544 > > > -rw-r--r-- 1 nobody nobody 4991380 Mar 6 15:39 > > > c3640-i-mz.120-7.XK1.bin > > > -rw-r--r-- 1 nobody nobody 3731009 Mar 6 15:03 c3640-i-mz.120-9.bin > > > > > > homer# cd /usr/home/jcv > > > homer# ls -l c3640-i-mz.120-9.bin > > > -rw-r--r-- 1 nobody nobody 0 Mar 6 16:03 c3640-i-mz.120-9.bin > > > homer# tftp 127.0.0.1 > > > > > > tftp> status > > > Connected to 127.0.0.1. > > > Mode: netascii Verbose: off Tracing: off > > > Rexmt-interval: 5 seconds, Max-timeout: 25 seconds > > > tftp> get /tftpboot/c3640-i-mz.120-9.bin > > > Transfer timed out. > > > > > > tftp> quit > > > > > > homer#vi /var/log/messages > > > ... > > > Mar 6 16:29:03 homer tftpd[23756]: read: Connection refused > > > Mar 6 16:29:08 homer tftpd[23758]: read: Connection refused > > > > > > ================================= > > > > > > Oh by the way, when you make your IOS upgrade form your tftp server to > > > your router, you don't have to creat a blank file in flash ? > > > > > > > > > Regards, > > > Jean-Christophe. > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-net" in the body of the message > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message --------------AA5A88502EA07219E35A2420 Content-Type: text/x-vcard; charset=us-ascii; name="hyun.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Hyunseog Ryu Content-Disposition: attachment; filename="hyun.vcf" begin:vcard n:Ryu;Hyunseig tel;fax:262-792-7655 tel;work:262-792-7965 x-mozilla-html:FALSE org:Norlight Telecommunications;Applications Engineering adr:;;275 North Corporate Drive;Brookfield;WI;53045;USA version:2.1 email;internet:hyun@staff.norlight.net title:Network Engineer note:MCSE, CCDA fn:Hyunseig Ryu end:vcard --------------AA5A88502EA07219E35A2420-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message