Overclock.net › Forums › Software, Programming and Coding › Networking & Security › multiple FTP servers from same external IP address help needed
New Posts  All Forums:Forum Nav:

multiple FTP servers from same external IP address help needed

post #1 of 7
Thread Starter 
hi, i am trying to run 2 FTP servers from my house, one on each computer. i am using filezilla server

my first server works perfectly fine on typical ftp port 21.
for my other server i'm using port 6001, and whenever i try to connect to it, it asks me for my username and password, i type them in and wait about 5 or so seconds and get this error:


before you ask, i have done the following:
-set filezilla to listen on port 6001
-forwarded port 6001 to the correct computer
-allowed filezilla through my firewall
-tried disabling the firewall
-tried disabling antivirus

this one has me stumped, i've tried everything i can think of
Dawg
(9 items)
 
MBP
(8 items)
 
 
CPUGraphicsRAMHard Drive
Core i7 2.2GHz Intel HD 3000 / AMD Radeon 6750 512MB 16GB G.skill (2 x 8GB) DDR3 1333 CL 9 Crucial M4 128GB SSD 
Hard DriveOptical DriveOSMonitor
Western Digital Scorpio Black 500GB 7200rpm none Lion 10.7.4 High-Res 1680x1050 
  hide details  
Reply
Dawg
(9 items)
 
MBP
(8 items)
 
 
CPUGraphicsRAMHard Drive
Core i7 2.2GHz Intel HD 3000 / AMD Radeon 6750 512MB 16GB G.skill (2 x 8GB) DDR3 1333 CL 9 Crucial M4 128GB SSD 
Hard DriveOptical DriveOSMonitor
Western Digital Scorpio Black 500GB 7200rpm none Lion 10.7.4 High-Res 1680x1050 
  hide details  
Reply
post #2 of 7
Hm..... I recommend you try GoldenFTP, Free or PRO. I use PRO on all of my windows machines, it works right away, very efficient, very simple. But, if you really wish to continue using filezilla, I'll refer you to this particular link: http://www.dougv.com/blog/2009/02/10...ter-and-modem/
    
CPUGraphicsRAMHard Drive
E8300 @ 2.8 2600HD Pro 4 GB DDR2 Seagate 1TB 
Optical DriveOSMonitorKeyboard
PIONEER DVD-RW DVR-K06A OSX 10.5.8 2 x 24" LG "H-IPS" Apple ALU 
PowerCaseMouseMouse Pad
250Watt A-I-O G5 Huge Black Cloth 
  hide details  
Reply
    
CPUGraphicsRAMHard Drive
E8300 @ 2.8 2600HD Pro 4 GB DDR2 Seagate 1TB 
Optical DriveOSMonitorKeyboard
PIONEER DVD-RW DVR-K06A OSX 10.5.8 2 x 24" LG "H-IPS" Apple ALU 
PowerCaseMouseMouse Pad
250Watt A-I-O G5 Huge Black Cloth 
  hide details  
Reply
post #3 of 7
If you set that FTP server back to it's default port, does the issue still exist?
Gaming
(23 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1090T Crosshair IV Formula GTX 560 GTX 580 
RAMRAMRAMRAM
G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI  G. Skill F3-12800CL6D-4GBPI 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Hard Drive Seagate Hard Drive Crucial M4 SSD Sony Optiarc 
CoolingOSMonitorMonitor
Corsair H70 Windows 7 Professional x64 ASUS VH242H 23" Monitor ASUS VH242H 23" Monitor 
MonitorKeyboardPowerCase
Samsung SyncMaster 906BW 19" Monitor Logitech G15 Corsair 1K PSU Lian-Li 70A 
MouseMouse PadAudio
Logitech Performance MX Razer Vespula HT Omega Pro+ 
  hide details  
Reply
Gaming
(23 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1090T Crosshair IV Formula GTX 560 GTX 580 
RAMRAMRAMRAM
G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI G. Skill F3-12800CL6D-4GBPI  G. Skill F3-12800CL6D-4GBPI 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Hard Drive Seagate Hard Drive Crucial M4 SSD Sony Optiarc 
CoolingOSMonitorMonitor
Corsair H70 Windows 7 Professional x64 ASUS VH242H 23" Monitor ASUS VH242H 23" Monitor 
MonitorKeyboardPowerCase
Samsung SyncMaster 906BW 19" Monitor Logitech G15 Corsair 1K PSU Lian-Li 70A 
MouseMouse PadAudio
Logitech Performance MX Razer Vespula HT Omega Pro+ 
  hide details  
Reply
post #4 of 7
Thread Starter 
Quote:
Originally Posted by GH0 View Post
If you set that FTP server back to it's default port, does the issue still exist?
as said in the original post
a)i have another ftp server that works perfectly fine on port 21
b)i can't use port 21 for this 2nd server, seeing as it is already taken
Dawg
(9 items)
 
MBP
(8 items)
 
 
CPUGraphicsRAMHard Drive
Core i7 2.2GHz Intel HD 3000 / AMD Radeon 6750 512MB 16GB G.skill (2 x 8GB) DDR3 1333 CL 9 Crucial M4 128GB SSD 
Hard DriveOptical DriveOSMonitor
Western Digital Scorpio Black 500GB 7200rpm none Lion 10.7.4 High-Res 1680x1050 
  hide details  
Reply
Dawg
(9 items)
 
MBP
(8 items)
 
 
CPUGraphicsRAMHard Drive
Core i7 2.2GHz Intel HD 3000 / AMD Radeon 6750 512MB 16GB G.skill (2 x 8GB) DDR3 1333 CL 9 Crucial M4 128GB SSD 
Hard DriveOptical DriveOSMonitor
Western Digital Scorpio Black 500GB 7200rpm none Lion 10.7.4 High-Res 1680x1050 
  hide details  
Reply
post #5 of 7
Quote:
Originally Posted by blatsha92 View Post
as said in the original post
a)i have another ftp server that works perfectly fine on port 21
b)i can't use port 21 for this 2nd server, seeing as it is already taken
So turn off the first server temporarily and then try the second server on port 21 just to verify it works....

----

Alternatively, leave your second server to listen on port 21, and then configure settings on your router to NAT port 6001 to port 21.
ESXi Host 1
(15 items)
 
  
CPUMotherboardGraphicsRAM
(2x) Intel Xeon E5520 Dell OnBoard Matrox G200 24GB DDR3 12x2GB UDIMMS (18 slots total) 
Hard DriveHard DriveHard DriveHard Drive
PERC6-RAID50 Intel 730 480GB Intel 320 300GB Synology DS414 iSCSI SAN 
OSMonitorKeyboardPower
VMWare vSphere5 Enterprise Plus Dell iDRAC6 Remote Management [KVM-Over-IP] Dell iDRAC6 KVM Dell Hot-Swap Redundant 1100W 
CaseMouse
Dell PowerEdge T710 Stock Dell iDRAC6 KVM 
  hide details  
Reply
ESXi Host 1
(15 items)
 
  
CPUMotherboardGraphicsRAM
(2x) Intel Xeon E5520 Dell OnBoard Matrox G200 24GB DDR3 12x2GB UDIMMS (18 slots total) 
Hard DriveHard DriveHard DriveHard Drive
PERC6-RAID50 Intel 730 480GB Intel 320 300GB Synology DS414 iSCSI SAN 
OSMonitorKeyboardPower
VMWare vSphere5 Enterprise Plus Dell iDRAC6 Remote Management [KVM-Over-IP] Dell iDRAC6 KVM Dell Hot-Swap Redundant 1100W 
CaseMouse
Dell PowerEdge T710 Stock Dell iDRAC6 KVM 
  hide details  
Reply
post #6 of 7
The FTP port (default 21) it's used only to start the connection. all the data transfer is done using another connection (data connection) opened on another port. If the ftp mode is 'active' (the usual standard) the data connection is started by the server to the client. If the ftp mode is 'passive', the data connection is started by the client to the server on a random port specified by the server on the other connection.

Usually, commercial routers are configured to recognize the data connection to the random port as 'related' to the control connection on the port 21, and to allow it.

If your second ftp server isn't configured on port 21, it's possible that the data connection may be blocked.
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
2xQuadCore Intel Xeon E5420 Tyan Tempest i5400XT GTX 660 Ti 16GB 8xSamsung M395T5750 FBDIMM 
Hard DriveOptical DriveOSMonitor
16 Internal, 16 external. Mainly Seagate LG GGW-H20L + GH22NP20 Windows 7 Ultimate x64 ASUS PB278Q 
KeyboardPowerCaseMouse
Corsair Vengeance K95 Enermax Galaxy 1000W EGA1000EWL Chieftec (modified) Logitech G500 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
2xQuadCore Intel Xeon E5420 Tyan Tempest i5400XT GTX 660 Ti 16GB 8xSamsung M395T5750 FBDIMM 
Hard DriveOptical DriveOSMonitor
16 Internal, 16 external. Mainly Seagate LG GGW-H20L + GH22NP20 Windows 7 Ultimate x64 ASUS PB278Q 
KeyboardPowerCaseMouse
Corsair Vengeance K95 Enermax Galaxy 1000W EGA1000EWL Chieftec (modified) Logitech G500 
  hide details  
Reply
post #7 of 7
Pippolo was correct with regard to ACTIVE FTP communication, but most FTP connections are PASSIVE (PASV). For the ACTIVE FTP to work properly, the client side firewall would need to be configured to allow incoming FTP connections (similar to the server side), as the server side is initiating the connection.

The OP is likely doing a PASV FTP connection to the secondary server on the non-standard port and the connection is being NAT'd through a firewall.


PASV FTP communication occurs in the following fashion:

1. Client initiates control connection over specific port (usually 21, but in this case, 6001)

2. Authentication occurs over the specified port, then a PASV response is sent back to the client, telling it how to initiate the data connection (which IP and port to use)

3. This is the critical part that is tricky.. the PASV response packet, by default, consists of the INTERNAL IP of the FTP server and the port that the client needs to make the connection over. This is dynamically done and how we facilitate many users accessing the same FTP site.

4. However, in an FTP connection, the firewall must be "aware" and modify the PASV response packet by changing the internal IP to the external NAT'ed IP that it is being translated to externally. The firewall is also responsible for allowing access over the dynamic port that the FTP server requested in the PASV response packet.

5. The problem is most lower-grade firewalls only perform this FTP packet inspection and modification on the standard default FTP port of 20 or 21

6. When this happens, the client gets the response but is told to initiate the data connection to the INTERNAL IP address of the FTP server over the dynamic port. Obviously, this is going to be an issue, since the client will not be able to hit the internal IP and will fail the connection.


In order to make this type of FTP configuration work to the same external IP, the firewall needs to be configured to inspect and modify the PASV response packet over the non-standard port. In this case, 6001.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Networking & Security
Overclock.net › Forums › Software, Programming and Coding › Networking & Security › multiple FTP servers from same external IP address help needed