Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 707
  • Last Modified:

FTP on 2 servers with 1 internet connection

I got now fast fiber glas internet instead off dsl
I have 2 Qnap  Servers ,
running with FTP active on 1 qnap
they have both their own adres  
like ip 192.168.1.15   sub:  255.255.255.0   gateway 192.168.1.19  = Qnap-1
and ip  192.168.1.17  sub   255.255.255.0   gateway 192.168.1.19  = Qnap-2
FTP on port 21

Is it possible , and how to,  to run on second Qnap server also FTP function
0
BIAPRO
Asked:
BIAPRO
  • 4
  • 4
  • 2
  • +1
1 Solution
 
pvlierCommented:
You can use port-redirection if your router supports it. FTP uses port 20 and 21 normally, you should redirect them to another set of ports.

Redirect port 20 to 1020 and port 21 to 1021 for example (don't use known ports like 22,80 or 3389. They might be in use).

So outside port 1020 is forwarded to port 20 on 192.168.1.17
So outside port 1021 is forwarded to port 21 on 192.168.1.17
0
 
Paul MacDonaldDirector, Information SystemsCommented:
What [pvlier] said, but something like...

Outside port 21 is forwarded to port 21 on 192.168.1.15, and
Outside port 1021 is forwarded to port 21 on 192.168.1.17
0
 
pvlierCommented:
To complete:

So outside port 20 is forwarded to port 20 on 192.168.1.15
So outside port 21 is forwarded to port 21 on 192.168.1.15

So outside port 1020 is forwarded to port 20 on 192.168.1.17
So outside port 1021 is forwarded to port 21 on 192.168.1.17

If people want to connect to NAS1 they enter <external ip> as server
If people want to connect to NAS2 they enter <external ip>:1020 as server


Thanks paulmacd for showing my incompleteness :-)
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Paul MacDonaldDirector, Information SystemsCommented:
No, I think you misunderstand the OP.  

He is already running an FTP connection to one Qnap  (Qnap-1, 192.168.1.15), so he has a port mapping for external port 21 -> 192.168.1.15:21.  

Now he wants to be able to FTP to his other Qnap (Qnap-2, 192.168.1.17).  I was illustrating that he needs to create a new port map for some external port number (say 1021) and point it to port 21 on 192.168.1.17.  

You're telling him how to create two mappings to each Qnap, which isn't what I think he's after.  I may be wrong!
0
 
David Johnson, CD, MVPOwnerCommented:
why not use dns ??

ftp1.mydomain.local  A 192.168.1.15
ftp2.mydomain.local A 192.168.1.17

this is how I'd do it..
0
 
pvlierCommented:
You need 2 mappings because the FTP protocol uses 2 ports: 1 port for commands and 1 port for data transfer. Normally these are port 20 (data) en 21 (command). If he needs both QNAP's available from the outside he needs to add 4 portmappings, 2 for each.

@ve3ofa:
I don't think this is a dns-problem, he can always ftp to the ip without dns. The problem is how to make them both available from the outside instead of 1.
0
 
Paul MacDonaldDirector, Information SystemsCommented:
I always got by with just port 21 open.

From http://www.securitypronews.com/it/networksystems/spn-21-20030917UnderstandingtheFTPPORTCommand.html :
"You may already know that when FTP (File Transfer Protocol) commands cross the wire, they use port 21 by default. You may also know that port 20 is assigned to FTP data. Unfortunately, most FTP data sessions do not actually use port 20."
0
 
pvlierCommented:
Hi Paulmacd, there is a difference between active and and passive FTP. This site illustrates it: http://www.serverintellect.com/support/ftp/ftp-active-passive-diff.aspx.

Not sure why your answer has been chosen as the solution as you can't have port 21 open twice from the internet, so you need some port redirecting. That was my answer ;-) He wasn't asking which ports ftp uses. I might have misunderstand though.
0
 
BIAPROAuthor Commented:
according to the systemmanager i gave this solution it worked that way
thats all i can tell.\
thanks
0
 
Paul MacDonaldDirector, Information SystemsCommented:
I'm not suggesting he can use port 21 for two different FTP sites - in fact I suggested port 21 and port 1021.  What I am suggesting is that they can get by without a port 20/port 1020.  This is almost always the case.

Happy to help.
0
 
BIAPROAuthor Commented:
OK Thanks , have a nice weekend
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 4
  • 4
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now