Koozali.org: home of the SME Server

FTP access outside the network

Offline Donny_59

  • *
  • 6
  • +0/-0
FTP access outside the network
« on: November 11, 2008, 10:03:51 PM »
I am new to SME server. I have installed SME 7.3 and have set up FTP with "allow public access" and "accept passwords from anywhere". The FTP works great inside the network, but outside, I get an error. When I open my browser and type in "ftp://ftp.company.com" I get the error "an error occurred opening that folder on the FTP Server. Make sure you have permission to access that folder." The SME server sits in a DMZ off of a Cisco ASA. I have seen a lot of old posts, but no new ones. Any ideas.

Thanks,

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: FTP access outside the network
« Reply #1 on: November 12, 2008, 02:39:12 AM »
Try using a dedicated FTP client like CuteFTP, so you can get some troubleshooting information regarding the connection error.

Also, make sure ports 20 & 21 are being forwarded from the Cisco router to the SME Server.

Offline thomasch

  • *
  • 232
  • +0/-0
Re: FTP access outside the network
« Reply #2 on: November 12, 2008, 03:09:54 AM »
Also, make sure ports 20 & 21 are being forwarded from the Cisco router to the SME Server.

davidiwharper,
He is in DMZ mode. All unforwarded router port goes to that DMZ machine.


Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: FTP access outside the network
« Reply #3 on: November 12, 2008, 07:02:55 AM »
Ah, true -- missed that bit 8-)

Offline Donny_59

  • *
  • 6
  • +0/-0
Re: FTP access outside the network
« Reply #4 on: November 12, 2008, 04:37:11 PM »
Here is Log from CuteFTP. It looks like it connects, authenticates, then is disconnected.

STATUS:>     [11/12/2008 9:30:28 AM] Getting listing ""...
STATUS:>     [11/12/2008 9:30:28 AM] Resolving host name ftp.eceng.com...
STATUS:>     [11/12/2008 9:30:28 AM] Host name ftp.eceng.com resolved: ip = 75.148.157.99.
STATUS:>     [11/12/2008 9:30:28 AM] Connecting to FTP server... ftp.eceng.com:21 (ip = 75.148.157.99)...
STATUS:>     [11/12/2008 9:30:28 AM] Socket connected. Waiting for welcome message...
      [11/12/2008 9:30:28 AM] 220 172.16.2.2 FTP server ready
STATUS:>     [11/12/2008 9:30:28 AM] Connected. Authenticating...
COMMAND:>   [11/12/2008 9:30:28 AM] USER admin
      [11/12/2008 9:30:28 AM] 331 Password required for admin
COMMAND:>   [11/12/2008 9:30:28 AM] PASS *****
      [11/12/2008 9:30:28 AM] 230 User admin logged in
STATUS:>     [11/12/2008 9:30:28 AM] Login successful.
COMMAND:>   [11/12/2008 9:30:28 AM] PWD
      [11/12/2008 9:30:28 AM] 257 "/" is the current directory
STATUS:>     [11/12/2008 9:30:28 AM] Home directory: /
COMMAND:>   [11/12/2008 9:30:28 AM] FEAT
      [11/12/2008 9:30:28 AM] Informational Message Only:
      211-Features:
       MDTM
       REST STREAM
       SIZE
      211 End
STATUS:>     [11/12/2008 9:30:28 AM] This site supports features.
STATUS:>     [11/12/2008 9:30:28 AM] This site supports SIZE.
STATUS:>     [11/12/2008 9:30:28 AM] This site can resume broken downloads.
COMMAND:>   [11/12/2008 9:30:28 AM] REST 0
      [11/12/2008 9:30:28 AM] 350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer
COMMAND:>   [11/12/2008 9:30:28 AM] PASV
ERROR:>      [11/12/2008 9:30:30 AM] Can't read from control socket. Socket error = #10054.
ERROR:>      [11/12/2008 9:30:30 AM] Failed to establish data socket.




I am new to SME server. I have installed SME 7.3 and have set up FTP with "allow public access" and "accept passwords from anywhere". The FTP works great inside the network, but outside, I get an error. When I open my browser and type in "ftp://ftp.company.com" I get the error "an error occurred opening that folder on the FTP Server. Make sure you have permission to access that folder." The SME server sits in a DMZ off of a Cisco ASA. I have seen a lot of old posts, but no new ones. Any ideas.

Thanks,

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: FTP access outside the network
« Reply #5 on: November 12, 2008, 09:20:16 PM »
The problem appears to be when you switch to PASV mode, although I'm not sure why this would be a problem.

This document suggests that under certain circumstances PORT mode might work instead.

Offline akhilmathema

  • ***
  • 42
  • +0/-0
Re: FTP access outside the network
« Reply #6 on: November 13, 2008, 01:58:52 AM »
I am new to SME server. I have installed SME 7.3 and have set up FTP with "allow public access" and "accept passwords from anywhere". The FTP works great inside the network, but outside, I get an error. When I open my browser and type in "ftp://ftp.company.com" I get the error "an error occurred opening that folder on the FTP Server. Make sure you have permission to access that folder." The SME server sits in a DMZ off of a Cisco ASA. I have seen a lot of old posts, but no new ones. Any ideas.

Thanks,

Verify whether your ftp access is limited only within local (private) network
# config show ftp
access=private | public

Offline Donny_59

  • *
  • 6
  • +0/-0
Re: FTP access outside the network
« Reply #7 on: November 13, 2008, 04:48:53 PM »
OK, changing the setting in CutFTP to PORT works, but why can I not use my browser? I am trying to make it easy on my clients to access this site without having to use an FTP client. Is there a setting to change in IE?

Offline Donny_59

  • *
  • 6
  • +0/-0
Re: FTP access outside the network
« Reply #8 on: November 13, 2008, 04:49:46 PM »
My manners are bad! Thank you so much for the info so far!

Offline Donny_59

  • *
  • 6
  • +0/-0
Re: FTP access outside the network
« Reply #9 on: November 13, 2008, 05:32:13 PM »
Ok, after getting CutFTP to work, I started looking for a setting in Internet Explorer. Under Internet Options - Advanced. There is a setting to Use Passive FTP. I unchecked that box, restarted IE, and now it works. Don't know why. Any ideas on what to look for on the SME server?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: FTP access outside the network
« Reply #10 on: November 13, 2008, 05:33:07 PM »
OK, changing the setting in CutFTP to PORT works, but why can I not use my browser? I am trying to make it easy on my clients to access this site without having to use an FTP client. Is there a setting to change in IE?

because IE is not a ftp client.. is a browser.. so, it has not some settings needed to work properly with ftp sites

Ciao
Stefano

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: FTP access outside the network
« Reply #11 on: November 13, 2008, 08:34:42 PM »
I think you will find that the problems with PASV are being caused by the Cisco ASA, not SME Server.

Offline Donny_59

  • *
  • 6
  • +0/-0
Re: FTP access outside the network
« Reply #12 on: November 13, 2008, 08:42:15 PM »
I checked the ASA and the FTP mode is set to passive