Time Capsule Does Not Port Forward FTP Ports

Hey there,

I recently purchased a Time Capsule, and I found out that while it fixes the NAT-PMP bug found in my previous AirPort Extreme Base Station (Gigabit-N), it introduces a new problem which makes it refuse to forward port 21 properly.

It seems to me that the Time Capsule has some sort of FTP server built in, and is either enabled but closes connection on client connection, or disabled but still listens for client connection.

This message is what I get when I connect to my IP via FTP from the WAN side (FTP port forwarded to a local machine with an IP 10.0.0.8):
421 Service not available, remote server has closed connection.

When it is accessed from the LAN of course, I can connect to 10.0.0.8 with no problem. However, what is interesting is if I connect to the Time Capsule via FTP I get this as well:
421 Service not available, remote server has closed connection.

Thus, I am 100% certain that the FTP message I see when I connect from WAN is from the Time Capsule instead of the machine I port forwarded to.

Apple needs to fix this annoying problem and at the same time fixes some VPN issues I'm having with my Nortel VPN client (4.68). It was all working when I had the AirPort Extreme Base Station.

Mac OS X (10.5.2)

Posted on Mar 10, 2008 4:41 AM

Reply
21 replies

Mar 10, 2008 6:04 AM in response to Nikiski

It is possible that the TC is using the FTP protocol for file backup or remote access to files stored on it. If it does then you won't be able to forward the FTP ports as only one device can use the ports. It would make sense for Apple to use FTP for remote file access, and the only way they could fix it would be to have an option that stops the TC using FTP ports when remote file access is off.

I don't know your background but I presume that the remote client is using passive mode PASSV for FTP as this is required to access an FTP service behind NAT. Also I presume your internet connection is provided using a modem connection that gives a genuine internet IP address to your TC rather than a router that is performing NAT in front of your TC, this would require port forwarding and depending on the FTP client may not work at all if you have double NAT.

Mar 10, 2008 8:14 AM in response to ADSL Nation

Thanks for your reply, I do understand what you mean, but I doubt the FTP is actually used for Time Capsule's back up feature. However there's no way to prove at the moment except I see that the port connected to Time Capsule during back up isn't related to FTP.

I'm not working on a double NAT here, and the FTP client has worked before both with and without PASV mode thus I'm pretty sure that's not the problem.

Mar 10, 2008 6:46 PM in response to Nikiski

I am having a problem establishing an FTP session that is started with my FTP Client (CuteFTP) on my local network and attempting to connect to an FTP Server with one of my hosting providers. My first few attempts used FTPS (Secure FTP) as that is what I typically use when transferring FTP packets over the net. Well, this didn't work so I thought maybe the Time Capsule had a problem inspecting the encrypted packets so I switched to standard clear-text FTP just to see if the Time Capsule handles FTP session management functions correctly. This didn't work either. I'm using PASV FTP and have never had a problem before with my CISCO Router or with another consumer-based NAT router. I don't believe that the Server on the Internet gets the initial request on port 21 as I believe the Time Capsule is not allowing the packet to pass and my FTP Client spits back an error message : "Couldn't access FTP service " "Connection Failed". I have also used "Terminal" and initiated the ftp utility and attempted to connect to the same server and receive the following error message : "421 Service not available, remote server has closed connection.". I have attempted to put my computer in the DMZ by using the Default Host feature on the Time Capsule but that resulted in the same errors. I believe that I have tried most of the settings available on the Time Capsule to attempt to get this to work but no luck yet. If the packet is getting through to the server and the response back on the current ephemeral port is not getting through the Time Capsule I'm really hoping the solution is not having to port map all ephemeral ports as this is in the tens of thousands. Has anyone successfully established an FTP Session (Secure or Not) from your local client through the Time Capsule to a Server on the Internet. If so, could you help by providing any Time Capsule settings that were required for this to function properly....Thanks in Advance.

Note: I have attempted to ftp to several different public ftp servers on the Internet and get the same error results. I have no problems ftping to local serverson my local network.

Mar 11, 2008 8:25 AM in response to Nikiski

I just purchased a 500gb TC and have not set it up yet but will see whats happening with FTP once I do. Try changing the port on your FTP server that accepts FTP requests. Most FTP clients will allow you to change this setting, you of course must change this setting on your FTP server as well. Then forward this port from your TC to the internal IP. It should work as I have done this before in situations where there are multiple FTP servers behind the firewall or router. I will test once I setup my own TC.

Mar 11, 2008 8:52 AM in response to fb10

RESOLVED : I pulled out my packet sniffer to see what was going on and determined that the FTP session requests were getting to my FTP Server on the Internet and it was ACKing appropriately to the correct ephemeral port...etc. I took a guess and fixed the problem. On my FTP Server, I reply back with a rather lengthy "Connect Message" when the client first connects for legal purposes. This connect message is sent back to the client along with the normal 220 status. Well, I shortened the "Connect Message" and all worked OK....even FTPS. I haven't determined the max length of the "Connect Message" that the Time Capsule will support at this time, but Apple should probably enter this as a minor bug and fix in the next release by increasing this limit to spec.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Time Capsule Does Not Port Forward FTP Ports

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.