RE: FTP client block

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Problem fixed!

Before I use to end the command line the character \012, but searching
information about it I found (http://cr.yp.to/ftp/request.html) that there
is two end of line characters , the character \015 and \012, and some
servers not accept the character \012, that?s why some the program not work
with some servers, now I put the two character at the end of the line and
the program work fine.

Have fun!
  -----Original Message-----
  From: Marco A. Ramos [mailto:mramos@xxxxxxxxxxxx]
  Sent: Thursday, 27 January, 2005 2:20 PM
  To: redhat-list@xxxxxxxxxx
  Subject: FTP client block


  Hello every one,



  Any idea will be very appreciative, because I?m stock with this problem,



  I develop a FTP client program (with gcc) and is work fine with 5
different entities (3 windows FTP server, and 2 NetWare FTP server), but
when other Netware FTP server the client program is blocking at start to
interact with the server, is like if the FTP server not respond, but if I
try manually with shell the server woks fine, I try to send different
command and nothing.



  (I have not access to the FTP server, it is a external company and they
will not provide any help)



  This is a interaction using the Linux ftp client (from shell)

  [root@ramaclinux ftp]# ftp -d 172.64.165.34

  Connected to 172.64.165.34.

  220 FTP server (NetWare v4.11) ready.

  ---> AUTH GSSAPI

  500 'AUTH GSSAPI': command not understood.

  ---> AUTH KERBEROS_V4

  500 'AUTH KERBEROS_V4': command not understood.

  KERBEROS_V4 rejected as an authentication type

  Name (172.64.165.34:root): guest02

  ---> USER guest02                      (it take like 5 seconds to respond)

  331 Password required for guest02.

  Password:

  ---> PASS XXXX

  230 Successful Login

  ---> SYST

  215 NetWare system type.

  Remote system type is NetWare.

  ftp> close

  ---> QUIT

  221 Goodbye.

  ftp> by



  As you can see the FTP server answer fine.



  This is an interaction from my FTP client FTP

  Conecting to 172.64.165.34 ...

  220 FTP server (NetWare v4.11) ready.

  ---> AUTH GSSAPI:

  And Never respond!!



  The tcpdump result for the fisrt example are:
  14:42:22.266330 192.168.1.3.45319 > 172.64.165.34.ftp: S
923128954:923128954(0) win 5840 <mss 1460,sackOK,timestamp 484894093
0,nop,wscale 0> (DF)

  14:42:22.290053 192.168.1.3.45319 > 172.64.165.34.ftp: . ack 1314115281
win 5840 (DF)

  14:42:22.317446 192.168.1.3.45319 > 172.64.165.34.ftp: . ack 55 win 5840
(DF) [tos 0x10]

  14:42:22.317833 192.168.1.3.45319 > 172.64.165.34.ftp: P 0:13(13) ack 55
win 5840 (DF) [tos 0x10]

  14:42:22.351434 192.168.1.3.45319 > 172.64.165.34.ftp: P 13:31(18) ack 99
win 5840 (DF) [tos 0x10]

  .

  .

  Continue?





  And for the FTP client program:

  14:45:49.447851 192.168.1.3.45366 > 172.64.165.34.ftp: S
1146613991:1146613991(0) win 5840 <mss 1460,sackOK,timestamp 484914811
0,nop,wscale 0> (DF)

  14:45:49.478695 192.168.1.3.45366 > 172.64.165.34.ftp: . ack 1314175633
win 5840 (DF)

  14:45:49.506095 192.168.1.3.45366 > 172.64.165.34.ftp: . ack 55 win 5840
(DF)

  14:45:49.506410 192.168.1.3.45366 > 172.64.165.34.ftp: P 0:12(12) ack 55
win 5840 (DF)

  14:47:22.733207 192.168.1.3.45366 > 172.64.165.34.ftp: F 12:12(0) ack 55
win 5840 (DF)



  This is the line where it block!!





  Any help,





  Thank you, regards.



   Marco Antonio Ramos



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux