Cant Connect to FTP Via External IP

Status
Not open for further replies.

Kevin54

Cadet
Joined
Feb 16, 2014
Messages
4
Hello all, I have tried to figure this out on my own but havent had any luck.. i have my ftp set up on port 2121...and that port is forwarded to my FreeNAS server static IP 192.168.1.90 on my router. i can put ftp://192.168.1.90:2121 in my browser and see everything just fine but if i use my external ip ftp://xxx.xxx.xxx.48:2121... i get "unable to connect to server at xxx.xxx.xxx.48" in the browser. i have turned off my routers firewall and still cannot connect... any suggestions?
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
Getting FTP (which has been around since what...the early 1970's? largely unchanged) to work, correctly, behind a modern, NATted, router/firewall, can be a serious challenge for people not familiar with some subtle aspects of networking. You will be MUCH better off using SFTP (instead of ftp), which is part of SSH. Not only is it more secure, it is also a protocol invented since Reagan was first elected, and plays much, much, much more nicely with complex network situations, which most of us now have in our homes with a WAN/LAN gateway/bridge/router.

If you INSIST on doing that (I think it's stupid), you'll need to read up on "passive mode" vs "active mode", and you'll also have to forward the DATA ports as well as the FTP port. (See? It sucks)

You'll want to use ssh-style SFTP, really, and turn off that FTP service. The ssh daemon in FreeNAS is already configured for SFTP. You'll only have to forward one TCP port, and there is a wide variety of decent software out there that will access the SFTP very nicely and easily. I suggest "bitvise ssh client" (which is great, because it does all the SFTP stuff, as well as providing a superb ssh command-line interface log in) for Windows, or FileZilla. For your Android phone, I recommend AndFTP, which also handles SFTP nicely. The process is much, much, much easier to set up than FTP (in fact, what you've done already would have been the correct procedure, had you been using SFTP via sshd instead of FTP via proftpd on your box.)
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
It's really quite simple.

Go into services, and turn on ssh. (You can change your ports or whatever in the settings, but make sure "root login with password" is on).

And.....that's it. More or less. Now use whatever SFTP/SSH client you want (like I said, I like "bitvise"--definitely there's a minimum of things to screw up with this), enter the proper IP and port into the connection dialog, and once you're logged in, you can click "Open SFTP window" or whatever, and you'll have a very ftp-like presentation, and will be able to figure it out from there.

If you need more help than this, why not visit us in the IRC channel?
 

ric

Contributor
Joined
Dec 22, 2013
Messages
180
I've installed bitvise into a windows machine so far it's working fine, and I wonder if this is going to work with Linux?
 
Status
Not open for further replies.
Top