View Issue Details

IDProjectCategoryView StatusLast Update
0000002Pete's FTPpublic2012-07-02 14:06
ReporterHypex Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Summary0000002: Unable to FTP into MacOSX FTP server
DescriptionThis is a report based on my AmigaWorld thread. I've been having problems trying to FTP into my Mac. I can log into my Mac over FTP, but when it comes to downloading the directory it just stalls and nothing else happens. The Mac refuses to upload the directory.

I've also tried passive FTP mode to no effect. What is strange is OSX lets me log in but do nothing more. I checked the firewall log in OSX and it port 21 is let through but other ports pFTP tries to use are blocked. It also happens with AmiFTP. But the CLI FTP command works. :-?

On the Mac side I enabled passive FTP mode and clicked the switch to let FTP data through. I should test Linux as well.

In the end, I can switch the entire firewall off on the Mac, and it gets through. And even though it is a Mac, I'd prefer not the leave the firewall off just to do FTP.

Any clues about this?

Well here is a log from pFTP with PASV:
» [0] TYPE A
« [0] 200 Type set to A.
» [0] PASV
« [0] 227 Entering Passive Mode (192,168,0,2,225,206)
· [0] Making PASV connection

Then it just hangs there waiting.

And without passive:
» [0] PORT 192,168,0,3,4,136
« [0] 200 PORT command successful.

OSX ipfw log:
Quote:




Jun 14 23:28:14 Damien-Stewarts-Computer ipfw: 12190 Deny TCP 192.168.0.3:1154 192.168.0.2:57776 in via en0
Jun 14 23:28:20 Damien-Stewarts-Computer ipfw: 12190 Deny TCP 192.168.0.3:1154 192.168.0.2:57776 in via en0
Jun 14 23:28:44 Damien-Stewarts-Computer ipfw: 12190 Deny TCP 192.168.0.3:1154 192.168.0.2:57776 in via en0
Jun 14 23:41:47 Damien-Stewarts-Computer ipfw: 12190 Deny TCP 192.168.0.3:1158 192.168.0.2:57806 in via en0
Jun 14 23:41:53 Damien-Stewarts-Computer ipfw: 12190 Deny TCP 192.168.0.3:1158 192.168.0.2:57806 in via en0
Jun 14 23:42:17 Damien-Stewarts-Computer ipfw: 12190 Deny TCP 192.168.0.3:1158 192.168.0.2:57806 in via en0
Additional InformationLog from pFTP with PASV:
» [0] TYPE A
« [0] 200 Type set to A.
» [0] PASV
« [0] 227 Entering Passive Mode (192,168,0,2,225,206)
· [0] Making PASV connection

Then it just hangs there waiting.

And without passive:
» [0] PORT 192,168,0,3,4,136
« [0] 200 PORT command successful.

OSX ipfw log:
Jun 14 23:28:14 Damien-Stewarts-Computer ipfw: 12190 Deny TCP 192.168.0.3:1154 192.168.0.2:57776 in via en0
Jun 14 23:28:20 Damien-Stewarts-Computer ipfw: 12190 Deny TCP 192.168.0.3:1154 192.168.0.2:57776 in via en0
Jun 14 23:28:44 Damien-Stewarts-Computer ipfw: 12190 Deny TCP 192.168.0.3:1154 192.168.0.2:57776 in via en0
Jun 14 23:41:47 Damien-Stewarts-Computer ipfw: 12190 Deny TCP 192.168.0.3:1158 192.168.0.2:57806 in via en0
Jun 14 23:41:53 Damien-Stewarts-Computer ipfw: 12190 Deny TCP 192.168.0.3:1158 192.168.0.2:57806 in via en0
Jun 14 23:42:17 Damien-Stewarts-Computer ipfw: 12190 Deny TCP 192.168.0.3:1158 192.168.0.2:57806 in via en0
TagsNo tags attached.

Activities

Hypex

2010-07-26 13:46

reporter   ~0000002

Oops can I edit this? Forgot to cut something out. ;-)

xeron

2012-07-01 19:32

manager   ~0000011

Hmm... Looks to me like a firewall issue....

Hypex

2012-07-02 14:06

reporter   ~0000012

It is a firewall issue yes. I also tried to FTP into the Mac from Ubuntu Linx on my A1 that also failed the same way. People kept telling me I had incorrectly set up my Mac. But all I have done is flick a switch to enable FTP, what else can I do?If the Mac accepted acess from local address like a router it would be no problem.

In any case here is a log from a session with the OS4 FTP command that actually works. I don't know what it does differently but it is the only software that works through the firewall and leaves no blockied messages on the Mac.

ftp> open 192.168.0.4
Connected to 192.168.0.4.
220 Mac.local FTP server (tnftpd 20061217) ready.
Name (192.168.0.4:root): Damien
331 Password required for Damien.
Password:
230-
    Welcome to Darwin!
230 User Damien logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for '/bin/ls'.
total 650
-rw-r--r-- 1 Damien Damien 4 May 24 2008 .CFUserTextEncoding
-rw-r--r-- 1 Damien Damien 15364 Jun 24 02:22 .DS_Store
drwx------ 2 Damien Damien 68 Jun 30 23:39 .Trash
...
226 Transfer complete.
ftp> get .bash_history
local: .bash_history remote: .bash_history
200 PORT command successful.
150 Opening BINARY mode data connection for '.bash_history' (7253 bytes).
226 Transfer complete.
7253 bytes received in 0.37 seconds (19581 bytes/s)
ftp> close
221-
    Data traffic for this session was 7253 bytes in 1 file.
    Total traffic for this session was 12102 bytes in 3 transfers.
221 Thank you for using the FTP service on Mac.local.

Issue History

Date Modified Username Field Change
2010-07-26 13:42 Hypex New Issue
2010-07-26 13:46 Hypex Note Added: 0000002
2012-07-01 19:32 xeron Note Added: 0000011
2012-07-02 14:06 Hypex Note Added: 0000012