Setting up a simple FTP

Andrew9768

New Member
Hello there! I've decided to try to set up a small FTP server to use so that I can easily work on a project from home and from school on two different computers and it isn't going too well. I made an FTP server a few years ago so I know it's possible that I'm just making a simple mistake or missing a step when setting it up, but I believe the problem has to do with my funky internet. I was wondering if anyone would be able to help me set up an FTP server which probably requires "fixing" my internet. I didn't set up my internet so I'm not exactly sure why it is how it is and how to reverse it. Here's how it works: I have Network1 and Network2. Network1 is my main network that almost all of my devices use (so if it's necessary, shutting down Network2 wouldn't be a problem) and it uses Eeros. Network2 uses a normal router, and regardless of what network you are connected to Network2's ip is displayed as the public ip, which might be the source of the problem.

Edit: It appears that Network1 relies on Network2, so if Network2 is turned off so is Network1, but not vice versa.
 
Last edited:

Neemobeer

Windows Forum Team
Staff member
I would suggest setting up the FTP server on network 2 then since it sounds like it's your router before the ISP connection.

The server will need to be setup in passive mode to work behind a NAT router
On the FTP server you will configure a small passive port range such as 22000-22005
Set the FTP IP address to either static or a reserved DHCP so it doesn't change for the port forward rules
Then on the border router you will need to create a forward rule for ports 21 and 22000-22005 to the FTP server address

Additionally I would configure the server for SFTP to secure the connection
and I would setup the server for certificate and username/password authentication
 

Andrew9768

New Member
I would suggest setting up the FTP server on network 2 then since it sounds like it's your router before the ISP connection.

The server will need to be setup in passive mode to work behind a NAT router
On the FTP server you will configure a small passive port range such as 22000-22005
Set the FTP IP address to either static or a reserved DHCP so it doesn't change for the port forward rules
Then on the border router you will need to create a forward rule for ports 21 and 22000-22005 to the FTP server address

Additionally I would configure the server for SFTP to secure the connection
and I would setup the server for certificate and username/password authentication
Hey thanks for the reply! I tried that and it sort of worked.. I followed all of the steps and when I go to ftp://10.0.0.2:22000 it prompts me for the username and password but when I sign in it says:

The webpage at ftp://10.0.0.2:22003/ might be temporarily down or it may have moved permanently to a new web address.
ERR_FTP_SERVICE_UNAVAILABLE

Here is the log. Any idea why?

(000036)2/26/2018 17:09:39 PM - (not logged in) (10.0.0.2)> USER Andrew

(000036)2/26/2018 17:09:39 PM - (not logged in) (10.0.0.2)> 331 Password required for andrew

(000036)2/26/2018 17:09:39 PM - (not logged in) (10.0.0.2)> PASS

(000036)2/26/2018 17:09:39 PM - andrew (10.0.0.2)> 230 Logged on

(000036)2/26/2018 17:09:39 PM - andrew (10.0.0.2)> SYST

(000036)2/26/2018 17:09:39 PM - andrew (10.0.0.2)> 215 UNIX emulated by FileZilla

(000036)2/26/2018 17:09:39 PM - andrew (10.0.0.2)> PWD

(000036)2/26/2018 17:09:39 PM - andrew (10.0.0.2)> 257 "/" is current directory.

(000036)2/26/2018 17:09:39 PM - andrew (10.0.0.2)> TYPE I

(000036)2/26/2018 17:09:39 PM - andrew (10.0.0.2)> 200 Type set to I

(000036)2/26/2018 17:09:39 PM - andrew (10.0.0.2)> SIZE /

(000036)2/26/2018 17:09:39 PM - andrew (10.0.0.2)> 550 File not found

(000036)2/26/2018 17:09:39 PM - andrew (10.0.0.2)> CWD /

(000036)2/26/2018 17:09:39 PM - andrew (10.0.0.2)> 250 CWD successful. "/" is current directory.

(000036)2/26/2018 17:09:39 PM - andrew (10.0.0.2)> PASV

(000036)2/26/2018 17:09:39 PM - andrew (10.0.0.2)> 421 Could not create socket.

(000036)2/26/2018 17:09:39 PM - andrew (10.0.0.2)> QUIT

(000036)2/26/2018 17:09:39 PM - andrew (10.0.0.2)> 221 Goodbye

(000036)2/26/2018 17:09:39 PM - andrew (10.0.0.2)> disconnected.
 
Top