The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   Networking (http://hintsforums.macworld.com/forumdisplay.php?f=14)
-   -   ::: MacOSX and Active-FTP server issue ::: (http://hintsforums.macworld.com/showthread.php?t=14175)

TaKeo 08-11-2003 11:23 AM

::: MacOSX and Active-FTP server issue :::
 
Hi everybody

I hope that somebody can help me, because nobody at Apple was able too.

I'm trying to login to our FTP server... which is set to Active mode by our ISP.
I am able to connect to it by booting in Mac OS 9 but when I switch back to MacOSX.2.6. when I try to connect to the server all I get is "Retrieving list of files..." and it hang there.

I tried different software to connect to it. Transmit, Fetch, the Terminal and even Connect to server from the Finder. Same result.

At first I thought it was our Router/Firewall. It's can't be that if i'm able to connect to it when booting Mac OS 9. Also, I can't connect to any Active-FTP server using the ClassicMode in OSX.

That problem only occure with Active-FTP server and everything is fine with Passive-FTP server (PASV).

I even ask a Technician at Apple to connect to the server, we tried different setting... he was getting the same result. The answer I got was... Sir, we don't know. (am I suppose to pay for AppleCare?!)

I'm connecting to the internet via Ethernet.

Regards,

TaKeo

yellow 08-11-2003 11:29 AM

Is your OS X machine using an internal firewall?

TaKeo 08-11-2003 11:42 AM

Q : Is your OS X machine using an internal firewall?

A : Nope... it's off

hayne 08-11-2003 11:43 AM

active vs passive FTP
 
When you say that the FTP servers are "active", do you mean that they don't support passive FTP? Most public FTP servers do support passive mode. Note that the choice between active & passive is made by the client (your machine) not the server.
There is a good explanation here:
http://slacksite.com/other/ftp.html

What I found is that I needed to click the checkbox "Use Passive FTP Mode (PASV)" which is under the "Proxies" tab in the Network preference panel. This is needed because otherwise my OS X firewall doesn't allow the FTP server to connect back to my machine.

TaKeo 08-11-2003 01:18 PM

I tried both, with the box check and without, even in the software... still no result

(Firewall is off)

here's the ftp address, if some of you want to try it

it's client access only, so you won't be able to delete anything... ;)

ftp.seguinlabelle.com
log : client
pass : slc


Regards,

TaKeo

stetner 08-11-2003 08:00 PM

Turn off passive mode on your client:
Code:

% ftp ftp.seguinlabelle.com
Connected to ftp.seguinlabelle.com.
220 lucienne Microsoft FTP Service (Version 5.0).
Name (ftp.seguinlabelle.com:stetner): client
331 Password required for client.
Password:
230 User client logged in.
Remote system type is Windows_NT.
ftp> passive
Passive mode: off; fallback to active mode: off.
ftp> ls
500 'EPRT |1|192.168.0.10|50641|': command not understood
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
drwxrwxrwx  1 owner    group              0 Feb 19 11:31 BoiseNotreDame-illustrations
-rwxrwxrwx  1 owner    group        9637376 Jun 19  9:50 CCT_Nancy_HUSTON.sit
drwxrwxrwx  1 owner    group              0 Jul 30  9:16 CCT-CTC_Tourisme_JULY-AUG_2003
drwxrwxrwx  1 owner    group              0 Jul 30  9:18 CCT-CTC_Tourisme_SEPTEMBER_2003
-rwxrwxrwx  1 owner    group          463372 Aug  8 15:56 condo_a_d.jpg
-rwxrwxrwx  1 owner    group          465365 Aug  8 15:56 condo_a1_d.jpg
-rwxrwxrwx  1 owner    group          477151 Aug 11 15:10 condo_a1_d2.jpg
-rwxrwxrwx  1 owner    group          410719 Aug  8 15:56 condo_b_d.jpg
-rwxrwxrwx  1 owner    group          473144 Aug  8 15:56 condo_c_d.jpg
drwxrwxrwx  1 owner    group              0 Mar 14 13:01 GoMedia
drwxrwxrwx  1 owner    group              0 Aug  8 15:01 illustra Nouveaux plans 8 aout
226 Transfer complete.
ftp> quit
221

%


TaKeo 08-12-2003 10:06 AM

Reply to stetner
 
Hi,

This is what I got...

___________________

Last login: Tue Aug 12 09:27:04 on ttyp1

ftp> ftp ftp.seguinlabelle.com
Connected to ftp.seguinlabelle.com.
220 lucienne Microsoft FTP Service (Version 5.0).
Name (ftp.seguinlabelle.com:slc): client
331 Password required for client.
Password:
230 User client logged in.
Remote system type is Windows_NT.
ftp> passive
Passive mode: off; fallback to active mode: off.
ftp> ls
500 'EPRT |1|192.168.0.4|55626|': command not understood

421 Service not available, remote server timed out. Connection closed
ftp>

____________________________

I tried it also in PASV is also of in the preference panel.

I tried to connect via Transmit (message = Could not read reply from control connection -- timed out.
), Fetch (message = Error: the server dropped the connection (it may be too busy), by turning off the PASV mode, but with no success.

Can the router be the source of the problem? I have my doubt about that because I can connect to the FTP server if I use WinXP or MacOS9...

But just in case this is what we have : Nexland Pro100


__________________________

Thanks for you time

Regards,

Eric a.k.a TaKeo

breen 08-12-2003 03:34 PM

Try ncftp (in fink).
Your client used an EPRT command which the MS server apparently doesn't understand.
ncftp uses a regular PORT command which should work fine.

Breen

TaKeo 08-12-2003 04:46 PM

okay

I need some help here !

How do I do that and what do I do ?

I don't have knowledge of Linux/Unix language

regards

Eric aka TaKeo

schwartze 08-12-2003 05:01 PM

Shot in the dark, I know...

Do you have FTP set up as a service in your system preferences?

It seems that every time I shut it off I can't connect to our FTP servers on Windows machines.

breen 08-12-2003 05:06 PM

Eric --

Check the instructions at http://fink.sourceforge.net for instructions on installing fink.

Once that's there you can install the ncftp installation.

Breen

stetner 08-12-2003 08:53 PM

I emailed this to Eric...

Code:

Hi Eric,

Here is a site that explains passive vs active:
http://slacksite.com/other/ftp.html

This is interesting, I have a router in place too, and in theory, I need to use passive
mode as my router will not let a connection through from your server to mine,
but here is what I see, I need to switch to active to get it to work:

    % ftp ftp.seguinlabelle.com
    Connected to ftp.seguinlabelle.com.
    220 lucienne Microsoft FTP Service (Version 5.0).
    Name (ftp.seguinlabelle.com:stetner): client
    331 Password required for client.
    Password:
    230 User client logged in.
    Remote system type is Windows_NT.
    ftp> ls
    500 'EPSV': command not understood
    227 Entering Passive Mode (206,108,58,240,15,109).

LONG DELAY HERE
FALLING BACK TO ACTIVE???

    200 PORT command successful.
    150 Opening ASCII mode data connection for /bin/ls.
    -rwxrwxrwx  1 owner    group              0 Aug 12 16:50 ARC.the.hotel.tif
    drwxrwxrwx  1 owner    group              0 Feb 19 11:31 BoiseNotreDam...
    drwxrwxrwx  1 owner    group              0 Jul 30  9:16 CCT-CTC_Touri...
    drwxrwxrwx  1 owner    group              0 Jul 30  9:18 CCT-CTC_Touri...
    drwxrwxrwx  1 owner    group              0 Mar 14 13:01 GoMedia
    drwxrwxrwx  1 owner    group              0 Aug 12 16:45 Photolux Comm...
    226 Transfer complete.
    ftp> passive
    Passive mode: on; fallback to active mode: on.
    ftp> passive
    Passive mode: off; fallback to active mode: off.
    ftp> ls
    200 PORT command successful.

NO DELAY HERE

    150 Opening ASCII mode data connection for /bin/ls.
    -rwxrwxrwx  1 owner    group              0 Aug 12 16:50 ARC.the.hotel.tif
    drwxrwxrwx  1 owner    group              0 Feb 19 11:31 BoiseNotreDame...
    drwxrwxrwx  1 owner    group              0 Jul 30  9:16 CCT-CTC_Touris...
    drwxrwxrwx  1 owner    group              0 Jul 30  9:18 CCT-CTC_Touris...
    drwxrwxrwx  1 owner    group              0 Mar 14 13:01 GoMedia
    drwxrwxrwx  1 owner    group              0 Aug 12 16:45 Photolux Comme...
    226 Transfer complete.
    ftp>

BUT, when actually transferring a file down, lsof shows this (some editing done to make
it not wrap):

% lsof | grep ftp
ftp 26551 stetner cwd  VDIR  14,16      12416  127808 / -- stetner
0u  VCHR    4,2    0t17504 57926660 /dev/ttyp2
1u  VCHR    4,2    0t17504 57926660 /dev/ttyp2
2u  VCHR    4,2    0t17504 57926660 /dev/ttyp2
3u  inet 0x04a03f8c  0t0  TCP strider:52324->ip240.cactuscom.com:ftp (EST)
4w  VREG  14,16    385024  3324782 / -- stetner/0933-GoMedia Prep.sit
5u  inet 0x03b5250c  0t0  TCP strider:52325->ip240.cactuscom.com:ftp-data (EST)

Which definitely shows that I have 2 connections from my machine to yours (IE passive)
when the ftp client says it is in active mode.

That makes me feel good, I don't have to doubt my router/firewall, but I am
confussed about what is going on.  The only thing I can think of is to check
out Microsoft's help on the ftp server to see what is up.....  If I google for
'ftp passive' I get a bunch of Microsoft sites.  Might be worth a look.....


TaKeo 08-21-2003 02:43 PM

OK every body...

Just run some test... and I still don't understand

Booting in OSX

if i use NetFinder for OS9 (classic) i can connect no problem.

if i use NetFinder for OSX (Jaguar) i can connect but can't see any listing... there's is something wrong between with Darwin and WindowsNT servers (winsocK) the server doesn't send me the ls data. error 5005.

Thanks every body for your help.


Eric a.k.a. TaKeo

p.s. and yes i turn on/off PASV, and turn on/off Firewall and every thing to see if it was the problem.

ryangreenberg 08-21-2003 08:02 PM

You might also want to take a look at PureFTPd. There's a graphical user interface, plus a wizard to help with setup. The only catch is you need to authenticate as root to use the app properly (or so the documentation says).

PureFTPd app

TaKeo 08-22-2003 10:50 AM

We can't even connect from a remote computer (no firewall, no router). One of the employee here, can't even connect from home.

Firewall is off, PASV is OFF.

The Terminal... I have no problem using it... but doesn't work either.

Also... hard to explain to a client (50years old+ using a Mac), that they need to use the Terminal to connect to our FTP server. Most of them don't even know it exist.

The more I talk about it (on different forum) the more I hear it's a Windows issue (TCP capability of NT).

Regards,

Eric a.k.a. TaKeo

tothomas 08-23-2003 09:45 AM

Server Problem
 
Eric,

What is happening here is that the MAC OS X has been written to be RFC2428 compliant which is in a nutshell extensions to FTP so that it will work in IPv4 and IPv6 environments. Normally this is not a problem however the FTP server that you are trying to connect to is NT and I suspect that it is having trouble interpreting these commands. According to the RFC, The EPSV command requests that a server listen on a data port and wait for a connection. Thus the server is correct in forcing the FTP connection to passive mode. Why it is then hanging on your PC is a mystery to me. I had the terminal FTP session "hang" for about 20 secs as the FTP switched ports, etc.. to passive but then everything seemed to operate properly.

Now everyone has asked about the firewall and passive ftp on your MAC and that is all well and good. However I would ask that you explain how you are connecting to the Internet in order to reach this server? Is there NAT involved there or perhaps a Firewall of some sort?

Tom

TaKeo 08-25-2003 12:10 PM

Reply to : tothomas
 
Ok... this is how "we" connect.

Ethernet

Router : Nexland ISB Pro100 (So no, Network Address Translation (NAT)).

Switchbox : PureData PDC8023UAS-32 PLUS

Type of connection : DSL / PPPoE

OS version : 10.2.6 with Firewall/OFF and PASV/OFF

Reminder : Able to connect in Classic mode / Unable to connect to the same FTP address from a remote cpu (OSX 10.2.6 with Firewall/OFF and PASV/OFF). Also, no problem using a Mac running os9 or a PC runnning WinXP on the same router/network or from a remote computer.

Server type : Microsoft FTP Service (Version 5.0) using Active-Mode.

Regards,

Eric

address : ftp.seguinlabelle.com
log : client
pass : slc

Network Address Translation (NAT)

TaKeo 08-25-2003 03:25 PM

Was able to connect today...

But only one time...

Tried to do it again... nothing...

Can't get list of files....

Damn...

stetner 08-25-2003 08:02 PM

Can you do a 'sudo tcpdump dst ftp.seguinlabelle.com' in one terminal window and then try to connect from another terminal window like this:
Code:

% ftp ftp.seguinlabelle.com
Connected to ftp.seguinlabelle.com.
220 lucienne Microsoft FTP Service (Version 5.0).
Name (ftp.seguinlabelle.com:stetner): client
331 Password required for client.
Password:
230 User client logged in.
Remote system type is Windows_NT.
ftp> ls
500 'EPSV': command not understood
227 Entering Passive Mode (206,108,58,240,4,64).
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
drwxrwxrwx  1 owner    group              0 Feb 19 11:31 BoiseNotreDame-illustrations
-rwxrwxrwx  1 owner    group        23087204 Aug 25 11:08 Cabana_Seguin.sit
drwxrwxrwx  1 owner    group              0 Aug 22 12:55 CCT-CTC_Tourisme_SEPTEMBER_2003
drwxrwxrwx  1 owner    group              0 Mar 14 13:01 GoMedia
226 Transfer complete.
ftp> quit
221

This is the output I see, which shows a delay after the 'ls' command is issued and then the data being returned
Code:

% sudo tcpdump dst ftp.seguinlabelle.com
tcpdump: listening on en0
09:53:07.701905 strider.58054 > ip240.cactuscom.com.ftp: S 3071540479:3071540479(0) win 65535 <mss 1452,nop,wscale 3,nop,nop,timestamp 3623117807 0> (DF)
09:53:07.992077 strider.58054 > ip240.cactuscom.com.ftp: . ack 971378207 win 32940 <nop,nop,timestamp 3623117808 0> (DF)
09:53:08.282795 strider.58054 > ip240.cactuscom.com.ftp: . ack 52 win 32933 <nop,nop,timestamp 3623117808 57153033> (DF) [tos 0x10]
client
09:53:19.711593 strider.58054 > ip240.cactuscom.com.ftp: P 0:13(13) ack 52 win 32940 <nop,nop,timestamp 3623117831 57153033> (DF) [tos 0x10]
09:53:20.006707 strider.58054 > ip240.cactuscom.com.ftp: . ack 87 win 32935 <nop,nop,timestamp 3623117832 57153150> (DF) [tos 0x10]
09:53:21.833374 strider.58054 > ip240.cactuscom.com.ftp: P 13:23(10) ack 87 win 32940 <nop,nop,timestamp 3623117836 57153150> (DF) [tos 0x10]
09:53:22.124044 strider.58054 > ip240.cactuscom.com.ftp: . ack 115 win 32936 <nop,nop,timestamp 3623117836 57153171> (DF) [tos 0x10]
09:53:22.130389 strider.58054 > ip240.cactuscom.com.ftp: P 23:29(6) ack 115 win 32940 <nop,nop,timestamp 3623117836 57153171> (DF) [tos 0x10]
09:53:22.427120 strider.58054 > ip240.cactuscom.com.ftp: . ack 143 win 32936 <nop,nop,timestamp 3623117837 57153174> (DF) [tos 0x10]
09:53:22.429707 strider.58054 > ip240.cactuscom.com.ftp: P 29:35(6) ack 143 win 32940 <nop,nop,timestamp 3623117837 57153174> (DF) [tos 0x10]
09:53:22.726213 strider.58054 > ip240.cactuscom.com.ftp: . ack 179 win 32935 <nop,nop,timestamp 3623117837 57153177> (DF) [tos 0x10]
09:53:22.726743 strider.58054 > ip240.cactuscom.com.ftp: P 35:40(5) ack 179 win 32940 <nop,nop,timestamp 3623117837 57153177> (DF) [tos 0x10]
09:53:23.024338 strider.58054 > ip240.cactuscom.com.ftp: . ack 216 win 32935 <nop,nop,timestamp 3623117838 57153180> (DF) [tos 0x10]
09:53:25.886455 strider.58054 > ip240.cactuscom.com.ftp: P 40:46(6) ack 216 win 32940 <nop,nop,timestamp 3623117844 57153180> (DF) [tos 0x10]
09:53:26.177949 strider.58054 > ip240.cactuscom.com.ftp: . ack 252 win 32935 <nop,nop,timestamp 3623117844 57153212> (DF) [tos 0x10]
09:53:26.181017 strider.58054 > ip240.cactuscom.com.ftp: P 46:52(6) ack 252 win 32940 <nop,nop,timestamp 3623117844 57153212> (DF) [tos 0x10]
09:53:26.483486 strider.58054 > ip240.cactuscom.com.ftp: . ack 302 win 32933 <nop,nop,timestamp 3623117845 57153215> (DF) [tos 0x10]
09:53:35.977391 strider.58055 > ip240.cactuscom.com.1088: S 306692919:306692919(0) win 65535 <mss 1452,nop,wscale 3,nop,nop,timestamp 3623117864 0> (DF)
09:53:38.822309 strider.58055 > ip240.cactuscom.com.1088: S 306692919:306692919(0) win 65535 <mss 1452,nop,wscale 3,nop,nop,timestamp 3623117869 0> (DF)
09:53:41.822810 strider.58055 > ip240.cactuscom.com.1088: S 306692919:306692919(0) win 65535 <mss 1452,nop,wscale 3,nop,nop,timestamp 3623117875 0> (DF)
09:53:44.823271 strider.58055 > ip240.cactuscom.com.1088: S 306692919:306692919(0) win 65535 <mss 1452> (DF)
09:53:47.824281 strider.58055 > ip240.cactuscom.com.1088: S 306692919:306692919(0) win 65535 <mss 1452> (DF)
09:53:50.824863 strider.58055 > ip240.cactuscom.com.1088: S 306692919:306692919(0) win 65535 <mss 1452> (DF)
09:53:56.826087 strider.58055 > ip240.cactuscom.com.1088: S 306692919:306692919(0) win 65535 <mss 1452> (DF)
09:54:08.827744 strider.58055 > ip240.cactuscom.com.1088: S 306692919:306692919(0) win 65535 <mss 1452> (DF)
09:54:09.436761 strider.58045 > ip240.cactuscom.com.ftp: . ack 734168913 win 32933 <nop,nop,timestamp 3623117931 57153645> (DF)
09:54:09.443301 strider.58045 > ip240.cactuscom.com.ftp: . ack 31 win 32929 <nop,nop,timestamp 3623117931 57153645> (DF)
09:54:32.831447 strider.58055 > ip240.cactuscom.com.1088: S 306692919:306692919(0) win 65535 <mss 1452> (DF)
09:54:39.438175 strider.58046 > ip240.cactuscom.com.ftp: . ack 736470873 win 32933 <nop,nop,timestamp 3623117991 57153944> (DF)
09:54:39.444020 strider.58046 > ip240.cactuscom.com.ftp: . ack 31 win 32936 <nop,nop,timestamp 3623117991 57153944> (DF)
09:54:50.835520 strider.58054 > ip240.cactuscom.com.ftp: P 52:79(27) ack 302 win 32940 <nop,nop,timestamp 3623118014 57153215> (DF) [tos 0x10]
09:54:51.125610 strider.58054 > ip240.cactuscom.com.ftp: . ack 332 win 32936 <nop,nop,timestamp 3623118014 57154061> (DF) [tos 0x10]
09:54:51.128334 strider.58054 > ip240.cactuscom.com.ftp: P 79:85(6) ack 332 win 32940 <nop,nop,timestamp 3623118014 57154061> (DF) [tos 0x10]
09:54:51.425265 strider.58054 > ip240.cactuscom.com.ftp: . ack 385 win 32933 <nop,nop,timestamp 3623118015 57154064> (DF) [tos 0x10]
09:54:51.427556 strider.58056 > ip240.cactuscom.com.ftp-data: S 4137022726:4137022726(0) ack 998223457 win 65535 <mss 1452> (DF)
09:54:51.735136 strider.58056 > ip240.cactuscom.com.ftp-data: . ack 328 win 65535 (DF) [tos 0x8]
09:54:51.736065 strider.58056 > ip240.cactuscom.com.ftp-data: . ack 329 win 65535 (DF) [tos 0x8]
09:54:51.739119 strider.58054 > ip240.cactuscom.com.ftp: . ack 409 win 32937 <nop,nop,timestamp 3623118015 57154067> (DF) [tos 0x10]
09:54:51.743253 strider.58056 > ip240.cactuscom.com.ftp-data: F 1:1(0) ack 329 win 65535 (DF) [tos 0x8]
09:54:59.074199 strider.58054 > ip240.cactuscom.com.ftp: P 85:91(6) ack 409 win 32940 <nop,nop,timestamp 3623118030 57154067> (DF) [tos 0x10]
09:54:59.365434 strider.58054 > ip240.cactuscom.com.ftp: . ack 416 win 32939 <nop,nop,timestamp 3623118031 57154143> (DF) [tos 0x10]
09:54:59.367858 strider.58054 > ip240.cactuscom.com.ftp: F 91:91(0) ack 416 win 32940 <nop,nop,timestamp 3623118031 57154143> (DF) [tos 0x10]
09:54:59.368012 strider.58054 > ip240.cactuscom.com.ftp: F 91:91(0) ack 417 win 32940 <nop,nop,timestamp 3623118031 57154143> (DF) [tos 0x10]
^C
109 packets received by filter
0 packets dropped by kernel

I would be interested in seeing the output from your attempt.

TaKeo 08-26-2003 09:53 AM

replying to stetner
 
Here's what I got :

First window :

-----------------------

% ftp ftp.seguinlabelle.com
Connected to ftp.seguinlabelle.com.
220 lucienne Microsoft FTP Service (Version 5.0).
Name (ftp.seguinlabelle.com:slc): client
331 Password required for client.
Password:
230 User client logged in.
Remote system type is Windows_NT.
ftp> ls
500 'EPSV': command not understood
227 Entering Passive Mode (206,108,58,240,5,84).

421 Service not available, remote server timed out. Connection closed
ftp>

-----------------------

Second window :

-----------------------

% sudo tcpdump dst ftp.seguinlabelle.com
Password:
tcpdump: listening on en0
09:47:57.144789 192.168.0.4.50341 > ip240.cactuscom.com.ftp: S 264832786:264832786(0) win 32768 <mss 1460,nop,wscale 0,nop,nop,timestamp 1834401933 0> (DF)
09:47:57.193700 192.168.0.4.50341 > ip240.cactuscom.com.ftp: . ack 1293822256 win 34080 <nop,nop,timestamp 1834401933 0> (DF)
09:47:57.250180 192.168.0.4.50341 > ip240.cactuscom.com.ftp: . ack 52 win 34080 <nop,nop,timestamp 1834401933 57653899> (DF) [tos 0x10]
09:48:03.201232 192.168.0.4.50341 > ip240.cactuscom.com.ftp: P 0:13(13) ack 52 win 34080 <nop,nop,timestamp 1834401945 57653899> (DF) [tos 0x10]
09:48:03.250905 192.168.0.4.50341 > ip240.cactuscom.com.ftp: . ack 87 win 34045 <nop,nop,timestamp 1834401945 57653959> (DF) [tos 0x10]
09:48:05.465290 192.168.0.4.50341 > ip240.cactuscom.com.ftp: P 13:23(10) ack 87 win 34080 <nop,nop,timestamp 1834401949 57653959> (DF) [tos 0x10]
09:48:05.532054 192.168.0.4.50341 > ip240.cactuscom.com.ftp: P 23:29(6) ack 115 win 34080 <nop,nop,timestamp 1834401949 57653981> (DF) [tos 0x10]
09:48:05.588781 192.168.0.4.50341 > ip240.cactuscom.com.ftp: P 29:35(6) ack 143 win 34080 <nop,nop,timestamp 1834401950 57653982> (DF) [tos 0x10]
09:48:05.645333 192.168.0.4.50341 > ip240.cactuscom.com.ftp: P 35:40(5) ack 179 win 34080 <nop,nop,timestamp 1834401950 57653983> (DF) [tos 0x10]
09:48:05.851229 192.168.0.4.50341 > ip240.cactuscom.com.ftp: . ack 216 win 34080 <nop,nop,timestamp 1834401950 57653983> (DF) [tos 0x10]
09:48:11.849302 192.168.0.4.50341 > ip240.cactuscom.com.ftp: P 40:46(6) ack 216 win 34080 <nop,nop,timestamp 1834401962 57653983> (DF) [tos 0x10]
09:48:44.554440 192.168.0.4.50342 > ip240.cactuscom.com.ndm-server: S 1196261009:1196261009(0) win 32768 <mss 1460> (DF)57654045> (DF) [tos 0x10]
09:49:08.556588 192.168.0.4.50342 > ip240.cactuscom.com.ndm-server: S 1196261009:1196261009(0) win 32768 <mss 1460> (DF)scale 0,nop,nop,timestamp 1834401962 0> (DF)
09:49:26.558718 192.168.0.4.50341 > ip240.cactuscom.com.ftp: P 52:78(26) ack 302 win 34080 <nop,nop,timestamp 1834402112 57654046> (DF) [tos 0x10]
09:49:28.058421 192.168.0.4.50341 > ip240.cactuscom.com.ftp: P 52:78(26) ack 302 win 34080 <nop,nop,timestamp 1834402114 57654046> (DF) [tos 0x10] 834401967 0> (DF)
09:49:31.058782 192.168.0.4.50341 > ip240.cactuscom.com.ftp: P 52:78(26) ack 302 win 34080 <nop,nop,timestamp 1834402120 57654046> (DF) [tos 0x10] 834401973 0> (DF)
09:49:37.059310 192.168.0.4.50341 > ip240.cactuscom.com.ftp: P 52:78(26) ack 302 win 34080 <nop,nop,timestamp 1834402132 57654046> (DF) [tos 0x10]
09:49:49.060358 192.168.0.4.50341 > ip240.cactuscom.com.ftp: P 52:78(26) ack 302 win 34080 <nop,nop,timestamp 1834402156 57654046> (DF) [tos 0x10]
09:50:13.062456 192.168.0.4.50341 > ip240.cactuscom.com.ftp: P 52:78(26) ack 302 win 34080 <nop,nop,timestamp 1834402204 57654046> (DF) [tos 0x10]
09:50:26.560492 192.168.0.4.50341 > ip240.cactuscom.com.ftp: F 78:78(0) ack 302 win 34080 <nop,nop,timestamp 1834402231 57654046> (DF) [tos 0x10]
09:50:45.065560 192.168.0.4.50341 > ip240.cactuscom.com.ftp: FP 52:78(26) ack 302 win 34080 <nop,nop,timestamp 1834402268 57655392> (DF) [tos 0x10]
09:51:49.071478 192.168.0.4.50341 > ip240.cactuscom.com.ftp: FP 52:78(26) ack 302 win 34080 <nop,nop,timestamp 1834402396 57655392> (DF) [tos 0x10]

-----------------------

Voila

Regards,

Eric a.k.a. TaKeo

TaKeo 08-26-2003 10:18 AM

Somebody using a Linux box is having the same problem at :

http://www.linuxquestions.org/questi...003/03/1/48062

Regards,

Eric a.k.a. TaKeo

stetner 08-26-2003 06:54 PM

Interesting that a linux users is seeing the same thing, may be another indication it is firewall or something.

I see that your box is trying to open a connection to the second port on the server, but it does not look like it is happening. I should asked you to do this the first time, but can you repeat that tcp dump with:
Code:

sudo tcpdump host ftp.seguinlabelle.com
So we see both side of the conversation....

Edit: corrected command line

stetner 08-26-2003 07:10 PM

Damn, just when I think I understand something, it comes back and bites me. The trace of mine below seems to show that my system tries to open a port to the server (server port 1942), probably times out, and then I see the server open a port back to me(59227 !) which should not happen due to my router.
Code:

08:57:14.129917 strider.59223 > ip240.cactuscom.com.1942: S 2102151341:2102151341(0) win 65535 <mss 1452> (DF)
08:57:26.131393 strider.59223 > ip240.cactuscom.com.1942: S 2102151341:2102151341(0) win 65535 <mss 1452> (DF)
08:57:50.134751 strider.59223 > ip240.cactuscom.com.1942: S 2102151341:2102151341(0) win 65535 <mss 1452> (DF)
08:58:08.137832 strider.59222 > ip240.cactuscom.com.ftp: P 53:79(26) ack 303 win 32940 <nop,nop,timestamp 3623283985 57983245> (DF) [tos 0x10]
08:58:08.431090 ip240.cactuscom.com.ftp > strider.59222: P 303:333(30) ack 79 win 64161 <nop,nop,timestamp 57983994 3623283985> (DF)
08:58:08.431258 strider.59222 > ip240.cactuscom.com.ftp: . ack 333 win 32936 <nop,nop,timestamp 3623283985 57983994> (DF) [tos 0x10]
08:58:08.436584 strider.59222 > ip240.cactuscom.com.ftp: P 79:85(6) ack 333 win 32940 <nop,nop,timestamp 3623283985 57983994> (DF) [tos 0x10]
08:58:08.733331 ip240.cactuscom.com.ftp-data > strider.59227: S 2159696618:2159696618(0) win 64240 <mss 1452,nop,nop,sackOK> (DF)
08:58:08.733564 strider.59227 > ip240.cactuscom.com.ftp-data: S 2792738159:2792738159(0) ack 2159696619 win 65535 <mss 1452> (DF)
08:58:08.741611 ip240.cactuscom.com.ftp > strider.59222: P 333:386(53) ack 85 win 64155 <nop,nop,timestamp 57983997 3623283985> (DF)
08:58:08.741717 strider.59222 > ip240.cactuscom.com.ftp: . ack 386 win 32933 <nop,nop,timestamp 3623283986 57983997> (DF) [tos 0x10]
08:58:09.017405 ip240.cactuscom.com.ftp-data > strider.59227: . ack 1 win 65340 (DF)
08:58:09.085780 ip240.cactuscom.com.ftp-data > strider.59227: P 1:328(327) ack 1 win 65340 (DF)
08:58:09.085919 strider.59227 > ip240.cactuscom.com.ftp-data: . ack 328 win 65535 (DF) [tos 0x8]
08:58:09.086963 ip240.cactuscom.com.ftp-data > strider.59227: F 328:328(0) ack 1 win 65340 (DF)
08:58:09.087037 strider.59227 > ip240.cactuscom.com.ftp-data: . ack 329 win 65535 (DF) [tos 0x8]
08:58:09.090109 ip240.cactuscom.com.ftp > strider.59222: P 386:410(24) ack 85 win 64155 <nop,nop,timestamp 57984001 3623283986> (DF)
08:58:09.090194 strider.59222 > ip240.cactuscom.com.ftp: . ack 410 win 32937 <nop,nop,timestamp 3623283986 57984001> (DF) [tos 0x10]
08:58:09.092935 strider.59227 > ip240.cactuscom.com.ftp-data: F 1:1(0) ack 329 win 65535 (DF) [tos 0x8]
08:58:09.393404 ip240.cactuscom.com.ftp-data > strider.59227: . ack 2 win 65340 (DF)
08:58:16.968684 strider.59222 > ip240.cactuscom.com.ftp: P 85:91(6) ack 410 win 32940 <nop,nop,timestamp 3623284002 57984001> (DF) [tos 0x10]
08:58:17.261585 ip240.cactuscom.com.ftp > strider.59222: P 410:417(7) ack 91 win 64149 <nop,nop,timestamp 57984082 3623284002> (DF)
08:58:17.261754 strider.59222 > ip240.cactuscom.com.ftp: . ack 417 win 32939 <nop,nop,timestamp 3623284003 57984082> (DF) [tos 0x10]
08:58:17.264756 strider.59222 > ip240.cactuscom.com.ftp: F 91:91(0) ack 417 win 32940 <nop,nop,timestamp 3623284003 57984082> (DF) [tos 0x10]
08:58:17.265561 ip240.cactuscom.com.ftp > strider.59222: F 417:417(0) ack 91 win 64149 <nop,nop,timestamp 57984082 3623284002> (DF)
08:58:17.265641 strider.59222 > ip240.cactuscom.com.ftp: F 91:91(0) ack 418 win 32940 <nop,nop,timestamp 3623284003 57984082> (DF) [tos 0x10]
08:58:17.553715 ip240.cactuscom.com.ftp > strider.59222: . ack 92 win 64149 <nop,nop,timestamp 57984085 3623284003> (DF)

I will do some more research on this one....

stetner 08-27-2003 12:44 AM

OK, apparently my router realizes that this is an active outbound ftp connection and allows the server's connection back in.

TaKeo, maybe your router (or your clients) do not do this (but why does OS9 work)? It still might be worth seeing the tcpdump of traffic in both directions.

I must admit I was surprised mine did this. I really expected an active connection to fail for me.
Quote:

In article <XZV2b.65973$bo1.59846@news-server.bigpond.net.au>, Jeff Fulton <jefff@fulton.net.au> wrote:

> The router has special code to handle outbound active mode ftp connections.
> It inspects the outbound port command and automatically opens the
> appropriate port for the incoming data connection.
>
> The filter rule that you showed is for the control connection (21) not the
> data connection (from remote 20), so wouldn't apply even if active.
>
> Regards
> Jeff Fulton
> www.fulton.net.au

TaKeo 08-27-2003 08:37 AM

Here's what i got by doing

-------------------

% sudo tcpdump host ftp.seguinlabelle.com
Password:
tcpdump: listening on en0
08:25:46.250576 192.168.0.4.52430 > ip240.cactuscom.com.ftp: S 3492907941:3492907941(0) win 32768 <mss 1460,nop,wscale 0,nop,nop,timestamp 1834564864 0> (DF)
08:25:46.299424 ip240.cactuscom.com.ftp > 192.168.0.4.52430: S 1991559605:1991559605(0) ack 3492907942 win 64240 <mss 1432,nop,wscale 0,nop,nop,timestamp 0 0> (DF)
08:25:46.299485 192.168.0.4.52430 > ip240.cactuscom.com.ftp: . ack 1 win 34080 <nop,nop,timestamp 1834564864 0> (DF)
08:25:46.349803 ip240.cactuscom.com.ftp > 192.168.0.4.52430: P 1:52(51) ack 1 win 64240 <nop,nop,timestamp 58468550 1834564864> (DF)
08:25:46.483350 192.168.0.4.52430 > ip240.cactuscom.com.ftp: . ack 52 win 34080 <nop,nop,timestamp 1834564864 58468550> (DF) [tos 0x10]
08:25:51.844281 192.168.0.4.52430 > ip240.cactuscom.com.ftp: P 1:14(13) ack 52 win 34080 <nop,nop,timestamp 1834564875 58468550> (DF) [tos 0x10]
08:25:51.893688 ip240.cactuscom.com.ftp > 192.168.0.4.52430: P 52:87(35) ack 14 win 64227 <nop,nop,timestamp 58468605 1834564875> (DF)
08:25:52.083795 192.168.0.4.52430 > ip240.cactuscom.com.ftp: . ack 87 win 34080 <nop,nop,timestamp 1834564875 58468605> (DF) [tos 0x10]
08:25:53.180616 192.168.0.4.52430 > ip240.cactuscom.com.ftp: P 14:24(10) ack 87 win 34080 <nop,nop,timestamp 1834564878 58468605> (DF) [tos 0x10]
08:25:53.247500 ip240.cactuscom.com.ftp > 192.168.0.4.52430: P 87:115(28) ack 24 win 64217 <nop,nop,timestamp 58468619 1834564878> (DF)
08:25:53.248717 192.168.0.4.52430 > ip240.cactuscom.com.ftp: P 24:30(6) ack 115 win 34080 <nop,nop,timestamp 1834564878 58468619> (DF) [tos 0x10]
08:25:53.302550 ip240.cactuscom.com.ftp > 192.168.0.4.52430: P 115:143(28) ack 30 win 64211 <nop,nop,timestamp 58468620 1834564878> (DF)
08:25:53.304354 192.168.0.4.52430 > ip240.cactuscom.com.ftp: P 30:36(6) ack 143 win 34080 <nop,nop,timestamp 1834564878 58468620> (DF) [tos 0x10]
08:25:53.353697 ip240.cactuscom.com.ftp > 192.168.0.4.52430: P 143:179(36) ack 36 win 64205 <nop,nop,timestamp 58468620 1834564878> (DF)
08:25:53.355127 192.168.0.4.52430 > ip240.cactuscom.com.ftp: P 36:41(5) ack 179 win 34080 <nop,nop,timestamp 1834564878 58468620> (DF) [tos 0x10]
08:25:53.404732 ip240.cactuscom.com.ftp > 192.168.0.4.52430: P 179:216(37) ack 41 win 64200 <nop,nop,timestamp 58468621 1834564878> (DF)
08:25:53.484023 192.168.0.4.52430 > ip240.cactuscom.com.ftp: . ack 216 win 34080 <nop,nop,timestamp 1834564878 58468621> (DF) [tos 0x10]
08:26:01.205011 192.168.0.4.52430 > ip240.cactuscom.com.ftp: P 41:47(6) ack 216 win 34080 <nop,nop,timestamp 1834564894 58468621> (DF) [tos 0x10]
08:26:01.254114 ip240.cactuscom.com.ftp > 192.168.0.4.52430: P 216:252(36) ack 47 win 64194 <nop,nop,timestamp 58468699 1834564894> (DF)
08:26:01.260382 192.168.0.4.52430 > ip240.cactuscom.com.ftp: P 47:53(6) ack 252 win 34080 <nop,nop,timestamp 1834564894 58468699> (DF) [tos 0x10]
08:26:01.309957 ip240.cactuscom.com.ftp > 192.168.0.4.52430: P 252:303(51) ack 53 win 64188 <nop,nop,timestamp 58468700 1834564894> (DF)
08:26:01.313537 192.168.0.4.52431 > ip240.cactuscom.com.2159: S 3102587044:3102587044(0) win 32768 <mss 1460,nop,wscale 0,nop,nop,timestamp 1834564894 0> (DF)
08:26:01.484565 192.168.0.4.52430 > ip240.cactuscom.com.ftp: . ack 303 win 34080 <nop,nop,timestamp 1834564894 58468700> (DF) [tos 0x10]
08:26:04.088135 192.168.0.4.52431 > ip240.cactuscom.com.2159: S 3102587044:3102587044(0) win 32768 <mss 1460,nop,wscale 0,nop,nop,timestamp 1834564899 0> (DF)
08:26:07.088352 192.168.0.4.52431 > ip240.cactuscom.com.2159: S 3102587044:3102587044(0) win 32768 <mss 1460,nop,wscale 0,nop,nop,timestamp 1834564905 0> (DF)
08:26:10.088522 192.168.0.4.52431 > ip240.cactuscom.com.2159: S 3102587044:3102587044(0) win 32768 <mss 1460> (DF)
08:26:13.088676 192.168.0.4.52431 > ip240.cactuscom.com.2159: S 3102587044:3102587044(0) win 32768 <mss 1460> (DF)
08:26:16.088847 192.168.0.4.52431 > ip240.cactuscom.com.2159: S 3102587044:3102587044(0) win 32768 <mss 1460> (DF)
08:26:22.089235 192.168.0.4.52431 > ip240.cactuscom.com.2159: S 3102587044:3102587044(0) win 32768 <mss 1460> (DF)
08:26:34.089631 192.168.0.4.52431 > ip240.cactuscom.com.2159: S 3102587044:3102587044(0) win 32768 <mss 1460> (DF)
08:26:58.090452 192.168.0.4.52431 > ip240.cactuscom.com.2159: S 3102587044:3102587044(0) win 32768 <mss 1460> (DF)
08:27:16.091206 192.168.0.4.52430 > ip240.cactuscom.com.ftp: P 53:79(26) ack 303 win 34080 <nop,nop,timestamp 1834565044 58468700> (DF) [tos 0x10]
08:27:17.591019 192.168.0.4.52430 > ip240.cactuscom.com.ftp: P 53:79(26) ack 303 win 34080 <nop,nop,timestamp 1834565046 58468700> (DF) [tos 0x10]
08:27:20.591171 192.168.0.4.52430 > ip240.cactuscom.com.ftp: P 53:79(26) ack 303 win 34080 <nop,nop,timestamp 1834565052 58468700> (DF) [tos 0x10]
08:27:26.591495 192.168.0.4.52430 > ip240.cactuscom.com.ftp: P 53:79(26) ack 303 win 34080 <nop,nop,timestamp 1834565064 58468700> (DF) [tos 0x10]
08:27:38.591866 192.168.0.4.52430 > ip240.cactuscom.com.ftp: P 53:79(26) ack 303 win 34080 <nop,nop,timestamp 1834565088 58468700> (DF) [tos 0x10]
08:28:02.592603 192.168.0.4.52430 > ip240.cactuscom.com.ftp: P 53:79(26) ack 303 win 34080 <nop,nop,timestamp 1834565136 58468700> (DF) [tos 0x10]
08:28:16.090486 192.168.0.4.52430 > ip240.cactuscom.com.ftp: F 79:79(0) ack 303 win 34080 <nop,nop,timestamp 1834565163 58468700> (DF) [tos 0x10]
08:28:16.138659 ip240.cactuscom.com.ftp > 192.168.0.4.52430: . ack 53 win 64188 <nop,nop,timestamp 58470048 1834564894> (DF)
08:28:34.593517 192.168.0.4.52430 > ip240.cactuscom.com.ftp: FP 53:79(26) ack 303 win 34080 <nop,nop,timestamp 1834565200 58470048> (DF) [tos 0x10]


--------------------

Just a reminder, somebody else from the office can't also connect to our ftp server. No firewall, no router. Straight connection.

Something weird here...

other than that...well i love Jaguar, can't wait for Panther

:)

Eric a.k.a. TaKeo

stetner 08-27-2003 09:39 AM

Hi TaKeo

I do not see any packets coming back from the server trying to open a data connection to your machine
Code:

Originally posted by TaKeo
08:26:22.089235 192.168.0.4.52431 > ip240.cactuscom.com.2159: S 3102587044:3102587044(0) win 32768 <mss 1460> (DF)
08:26:34.089631 192.168.0.4.52431 > ip240.cactuscom.com.2159: S 3102587044:3102587044(0) win 32768 <mss 1460> (DF)
08:26:58.090452 192.168.0.4.52431 > ip240.cactuscom.com.2159: S 3102587044:3102587044(0) win 32768 <mss 1460> (DF)
08:27:16.091206 192.168.0.4.52430 > ip240.cactuscom.com.ftp: P 53:79(26) ack 303 win 34080 <nop,nop,timestamp 1834565044 58468700> (DF) [tos 0x10]
At this point I would expect to see the server try to contact you back on the ftp port and then on a different port.
08:27:17.591019 192.168.0.4.52430 > ip240.cactuscom.com.ftp: P 53:79(26) ack 303 win 34080 <nop,nop,timestamp 1834565046 58468700> (DF) [tos 0x10]
08:27:20.591171 192.168.0.4.52430 > ip240.cactuscom.com.ftp: P 53:79(26) ack 303 win 34080 <nop,nop,timestamp 1834565052 58468700> (DF) [tos 0x10]
08:27:26.591495 192.168.0.4.52430 > ip240.cactuscom.com.ftp: P 53:79(26) ack 303 win 34080 <nop,nop,timestamp 1834565064 58468700> (DF) [tos 0x10]
08:27:38.591866 192.168.0.4.52430 > ip240.cactuscom.com.ftp: P 53:79(26) ack 303 win 34080 <nop,nop,timestamp 1834565088 58468700> (DF) [tos 0x10]
08:28:02.592603 192.168.0.4.52430 > ip240.cactuscom.com.ftp: P 53:79(26) ack 303 win 34080 <nop,nop,timestamp 1834565136 58468700> (DF) [tos 0x10]

In my case
Code:

08:57:26.131393 strider.59223 > ip240.cactuscom.com.1942: S 2102151341:2102151341(0) win 65535 <mss 1452> (DF)
08:57:50.134751 strider.59223 > ip240.cactuscom.com.1942: S 2102151341:2102151341(0) win 65535 <mss 1452> (DF)
08:58:08.137832 strider.59222 > ip240.cactuscom.com.ftp: P 53:79(26) ack 303 win 32940 <nop,nop,timestamp 3623283985 57983245> (DF) [tos 0x10]
Server talks to me again to go to active on another port..
08:58:08.431090 ip240.cactuscom.com.ftp > strider.59222: P 303:333(30) ack 79 win 64161 <nop,nop,timestamp 57983994 3623283985> (DF)
08:58:08.431258 strider.59222 > ip240.cactuscom.com.ftp: . ack 333 win 32936 <nop,nop,timestamp 3623283985 57983994> (DF) [tos 0x10]
08:58:08.436584 strider.59222 > ip240.cactuscom.com.ftp: P 79:85(6) ack 333 win 32940 <nop,nop,timestamp 3623283985 57983994> (DF) [tos 0x10]
After a bit of negotiation on the ftp port the server connects to me on another port..
08:58:08.733331 ip240.cactuscom.com.ftp-data > strider.59227: S 2159696618:2159696618(0) win 64240 <mss 1452,nop,nop,sackOK> (DF)
08:58:08.733564 strider.59227 > ip240.cactuscom.com.ftp-data: S 2792738159:2792738159(0) ack 2159696619 win 65535 <mss 1452> (DF)

It would be interesting to see if the server ever spits anything out again for you as we see nothing from it until exactly a minute after you try to talk to it again.
Quote:

Just a reminder, somebody else from the office can't also connect to our ftp server. No firewall, no router. Straight connection.
...
Eric a.k.a. TaKeo
Well, if you are absolutely positive that there is nothing between your two boxes that could be blocking packets (a switch with vlans defined, router etc), then I would say it must be the server (the OS9 thing does not bother me as it will be using a different TCP stack and possibly could be doing things slightly different (ie using different ports ranges to communicate)). But why does it not work for you locally when it works externally. The only other thing to do would be to dump all the data from packets going back and forth and try to see what your system does that mine does not.


All times are GMT -5. The time now is 07:41 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.