Jump to content

Trying to properly setup ftp server

kir13y
Go to solution Solved by Falconevo,

FTP requires;

Active Mode FTP -  TCP Port 20 and 21 only

PASV Mode FTP - TCP Port 20, 21 + PASV Range


PASV (Passive) FTP requires a port range configuring on the FTP server and then the required ports forwarding if the router is incapable of having an 'FTP helper' service.

So set the PASV ports to something like 40000-40100 and forward those also as cheapo routers very rarely handle FTP PASV ports automatically, especially in forwarding scenarios.

I currently have cascading routers.  The first router is an Actiontec given by my ISP.  Connected to that is my Nighthawk R7000 which currently has all of the wireless networks on it.  I have connected and configured my drive on the netgear router and it works from within the local network.  I am unable to connect to it outside of my local network and I am unsure why.  I have port forwarded ports 21 & 443 (TCP) on the Actiontec -> ip of netgear.  The netgear should automatically port forward these ports as the ftp server is running on it.  Is this how I should be setting this up?

 

I also have an ip cam that is connected to the netgear router with the same port forwarding situation (different port) and that works fine.

Main PC - Windows 10 (https://pcpartpicker.com/b/xjf8TW)

Spoiler

CPU: i7 6800k @4.2GHz (Kraken x61)

Mobo: ASUS x99 Gaming

GPU: ASUS GTX 1080 STRIX

RAM: 32GB DDR4 Ram

Storage: Intel 600p NVMe PCIe SSD (512GB), 2TB WD Green, 500GB WD Blue

Case: Phanteks Enthoo Evolv ATX

PSU: EVGA 850W 80+ Gold Modular PSU

Display: ASUS PH278Q (1440p 144hz gsync)

Keyboard: Corsair K95 RGB (MX Brown)

Mouse: Logitech G502 Spectrum

Audio: Logitech G930 Headset, Logitech Z506 5.1 Speakers

 
 

Server - Ubuntu

Spoiler

CPU: i5 3470 @3.2GHz (Stock)

RAM: 16GB DDR3 Ram

Storage: 2TB WD Green

 
 
 

Gaming Laptop - ASUS ROG G751JT-WH71(WX) - Windows 10

Spoiler

CPU: i7 4720HQ @2.6GHz

GPU: GTX 970M (3GB)

RAM: 16GB DDR3

Storage: 500GB Samsung 850 Evo, 1TB Toshiba HDD

Display: 17.3" display (1080p 75hz gsync)

 
 
 

Work Laptop - Razer Blade Stealth - Debian + KDE

Spoiler

CPU: i7 7500U @2.7GHz / 3.5GHz (Base/Turbo)

RAM: 16GB

Storage: 512GB M.2 SSD

Display: 13.3" QHD+ 3200x1800 touchscreen (16:9)

 
 

 

Link to comment
Share on other sites

Link to post
Share on other sites

You may need to open up port 20, I had to port forward that to get my FTP server to work. Also try switching between Active and Passive on your FTP client.

-KuJoe

Link to comment
Share on other sites

Link to post
Share on other sites

FTP requires;

Active Mode FTP -  TCP Port 20 and 21 only

PASV Mode FTP - TCP Port 20, 21 + PASV Range


PASV (Passive) FTP requires a port range configuring on the FTP server and then the required ports forwarding if the router is incapable of having an 'FTP helper' service.

So set the PASV ports to something like 40000-40100 and forward those also as cheapo routers very rarely handle FTP PASV ports automatically, especially in forwarding scenarios.

Please quote or tag me if you need a reply

Link to comment
Share on other sites

Link to post
Share on other sites

11 hours ago, Falconevo said:

FTP requires;

Active Mode FTP -  TCP Port 20 and 21 only

PASV Mode FTP - TCP Port 20, 21 + PASV Range


PASV (Passive) FTP requires a port range configuring on the FTP server and then the required ports forwarding if the router is incapable of having an 'FTP helper' service.

So set the PASV ports to something like 40000-40100 and forward those also as cheapo routers very rarely handle FTP PASV ports automatically, especially in forwarding scenarios.

 

Thanks guys!  I didn't have port 20 open and it seems to be working now :)

Main PC - Windows 10 (https://pcpartpicker.com/b/xjf8TW)

Spoiler

CPU: i7 6800k @4.2GHz (Kraken x61)

Mobo: ASUS x99 Gaming

GPU: ASUS GTX 1080 STRIX

RAM: 32GB DDR4 Ram

Storage: Intel 600p NVMe PCIe SSD (512GB), 2TB WD Green, 500GB WD Blue

Case: Phanteks Enthoo Evolv ATX

PSU: EVGA 850W 80+ Gold Modular PSU

Display: ASUS PH278Q (1440p 144hz gsync)

Keyboard: Corsair K95 RGB (MX Brown)

Mouse: Logitech G502 Spectrum

Audio: Logitech G930 Headset, Logitech Z506 5.1 Speakers

 
 

Server - Ubuntu

Spoiler

CPU: i5 3470 @3.2GHz (Stock)

RAM: 16GB DDR3 Ram

Storage: 2TB WD Green

 
 
 

Gaming Laptop - ASUS ROG G751JT-WH71(WX) - Windows 10

Spoiler

CPU: i7 4720HQ @2.6GHz

GPU: GTX 970M (3GB)

RAM: 16GB DDR3

Storage: 500GB Samsung 850 Evo, 1TB Toshiba HDD

Display: 17.3" display (1080p 75hz gsync)

 
 
 

Work Laptop - Razer Blade Stealth - Debian + KDE

Spoiler

CPU: i7 7500U @2.7GHz / 3.5GHz (Base/Turbo)

RAM: 16GB

Storage: 512GB M.2 SSD

Display: 13.3" QHD+ 3200x1800 touchscreen (16:9)

 
 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×