[squid-users] 3.1.16 FTP problems ..

From: Paul Regan <paulregan73_at_gmail.com>
Date: Mon, 7 Nov 2011 14:37:24 +0000

New install of 3.1.16, FTP appears to be configured correctly but
hence the mail group post its not working as expected ..

Using ftp.emea.ibm.com as the test destination.

Active FTP from proxy server command line works fine.

Via a browser & squidclient

The following error was encountered while trying to retrieve the URL:
ftp://ftp.emea.ibm.com/
Read Error
The system returned: [No Error]
An error condition occurred while reading data from the network.
Please retry your request.

cache.log :

2011/11/07 12:45:20| ftpDataRead: read error: (107) Transport endpoint
is not connected

Wire capture :

12:45:20.395751 IP proxyserver.domain.60769 > ftp.emea.ibm.com.ftp: S
2543509559:2543509559(0) win 5840 <mss 1460,sackOK,timestamp 853154020
0,nop,wscale 7>
12:45:20.414004 IP ftp.emea.ibm.com.ftp > proxyserver.domain.60769: S
429684985:429684985(0) ack 2543509560 win 65535 <mss 1380,nop,wscale
5>
12:45:20.414012 IP proxyserver.domain.60769 > ftp.emea.ibm.com.ftp: .
ack 1 win 46
12:45:20.444260 IP ftp.emea.ibm.com.ftp > proxyserver.domain.60769: P
1:78(77) ack 1 win 16384
12:45:20.444290 IP proxyserver.domain.60769 > ftp.emea.ibm.com.ftp: .
ack 78 win 46
12:45:20.444295 IP ftp.emea.ibm.com.ftp > proxyserver.domain.60769: P
78:145(67) ack 1 win 16384
12:45:20.444299 IP proxyserver.domain.60769 > ftp.emea.ibm.com.ftp: .
ack 145 win 46
12:45:20.462391 IP ftp.emea.ibm.com.ftp > proxyserver.domain.60769: P
145:595(450) ack 1 win 16384
12:45:20.462396 IP proxyserver.domain.60769 > ftp.emea.ibm.com.ftp: .
ack 595 win 54
12:45:20.462464 IP proxyserver.domain.60769 > ftp.emea.ibm.com.ftp: P
1:17(16) ack 595 win 54
12:45:20.480374 IP ftp.emea.ibm.com.ftp > proxyserver.domain.60769: P
ack 17 win 16384
12:45:20.517610 IP ftp.emea.ibm.com.ftp > proxyserver.domain.60769: P
595:639(44) ack 17 win 16384
12:45:20.517667 IP proxyserver.domain.60769 > ftp.emea.ibm.com.ftp: P
17:41(24) ack 639 win 54
12:45:20.535681 IP ftp.emea.ibm.com.ftp > proxyserver.domain.60769: P
ack 41 win 16384
12:45:20.536375 IP ftp.emea.ibm.com.ftp > proxyserver.domain.60769: P
639:699(60) ack 41 win 16384
12:45:20.536392 IP ftp.emea.ibm.com.ftp > proxyserver.domain.60769: P
699:721(22) ack 41 win 16384
12:45:20.536405 IP proxyserver.domain.60769 > ftp.emea.ibm.com.ftp: .
ack 721 win 54
12:45:20.554833 IP ftp.emea.ibm.com.ftp > proxyserver.domain.60769: P
721:1043(322) ack 41 win 16384
12:45:20.554873 IP proxyserver.domain.60769 > ftp.emea.ibm.com.ftp: P
41:49(8) ack 1043 win 63
12:45:20.572753 IP ftp.emea.ibm.com.ftp > proxyserver.domain.60769: P
ack 49 win 16384
12:45:20.572777 IP ftp.emea.ibm.com.ftp > proxyserver.domain.60769: P
1043:1086(43) ack 49 win 16384
12:45:20.572838 IP proxyserver.domain.60769 > ftp.emea.ibm.com.ftp: P
49:72(23) ack 1086 win 63
12:45:20.591096 IP ftp.emea.ibm.com.ftp > proxyserver.domain.60769: P
ack 72 win 16384
12:45:20.591100 IP ftp.emea.ibm.com.ftp > proxyserver.domain.60769: P
1086:1108(22) ack 72 win 16384
12:45:20.591130 IP proxyserver.domain.60769 > ftp.emea.ibm.com.ftp: P
72:78(6) ack 1108 win 63
12:45:20.608768 IP ftp.emea.ibm.com.ftp > proxyserver.domain.60769: P
ack 78 win 16384
12:45:20.818002 IP ftp.emea.ibm.com.ftp-data >
proxyserver.domain.36703: S 3997244124:3997244124(0) win 65535 <mss
1380,nop,wscale 5>
12:45:20.818022 IP proxyserver.domain.36703 >
ftp.emea.ibm.com.ftp-data: S 2004820984:2004820984(0) ack 3997244125
win 5840 <mss 1460,nop,wscale 7>
12:45:20.835744 IP ftp.emea.ibm.com.ftp-data >
proxyserver.domain.36703: . ack 1 win 11520
12:45:20.835804 IP ftp.emea.ibm.com.ftp-data >
proxyserver.domain.36703: P 1:692(691) ack 1 win 11520
12:45:20.835809 IP proxyserver.domain.36703 >
ftp.emea.ibm.com.ftp-data: . ack 692 win 57
12:45:20.835812 IP ftp.emea.ibm.com.ftp-data >
proxyserver.domain.36703: FP 692:692(0) ack 1 win 11520
12:45:20.835899 IP ftp.emea.ibm.com.ftp > proxyserver.domain.60769: P
1108:1129(21) ack 78 win 16384
12:45:20.836193 IP proxyserver.domain.60769 > ftp.emea.ibm.com.ftp: F
78:78(0) ack 1129 win 63
12:45:20.836210 IP proxyserver.domain.36703 >
ftp.emea.ibm.com.ftp-data: R 1:1(0) ack 693 win 57
12:45:20.853549 IP ftp.emea.ibm.com.ftp > proxyserver.domain.60769: P
ack 79 win 16384
12:45:20.853576 IP ftp.emea.ibm.com.ftp > proxyserver.domain.60769: P
1129:1163(34) ack 79 win 16384
12:45:20.853586 IP proxyserver.domain.60769 > ftp.emea.ibm.com.ftp: R
2543509638:2543509638(0) win 0
12:45:20.853603 IP ftp.emea.ibm.com.ftp > proxyserver.domain.60769: FP
1163:1163(0) ack 79 win 16384
12:45:20.853606 IP proxyserver.domain.60769 > ftp.emea.ibm.com.ftp: R
2543509638:2543509638(0) win 0

Its not so obvious from the tcpdump (easier on wireshark) but the 3rd
packet from bottom is a [RST] from the proxy server. Comparing that
to a capture during an FTP connection from the command line (same
server) then that equiv packet is an [ACK] - I can make the pcap file
available if need be ..

I dont know if thats the actual issue but its a difference between a
failure and a success which I've homed in on .... otherwise I'm
spinning my wheels on this problem

Config (ftp parts):

ftp_passive off
ftp_sanitycheck off
ftp_epsv off
ftp_eprt off

Any advice gratefully recieved ..
Received on Mon Nov 07 2011 - 14:37:33 MST

This archive was generated by hypermail 2.2.0 : Tue Nov 08 2011 - 12:00:03 MST