ProFTPd, Disabling the Passive Mode


Recommended Posts

I had this issue in the past and found it wasn't worth the effort involved in fudging this to work.

What I did instead was use FTP over SSH by merely installing OpenSSHd. With this:

1. You only need to forward port 22

2. Most FTP clients support FTP over SSH

3. It's pretty much plug and play - start the service and you can start logging in with your users :)

And why would you want to disable it?? Have we not gone over this? Have your users use ACTIVE connections! As I thought I had already told you if your having issues with your router doing the passive for you.. Just manually set it up.

Set proftpd to use a specific range for its passive ports

http://www.proftpd.org/docs/directives/lin...ssivePorts.html

PassivePorts 49152 65534

I wold not use such a large range.. You only need a range large enough to handle the number of concurrent users you might have.. Something like 65000 65050 should be more than enough.

Now forward this range on your router to your ftp server. Done!

I had this issue in the past and found it wasn't worth the effort involved in fudging this to work.

What I did instead was use FTP over SSH by merely installing OpenSSHd. With this:

1. You only need to forward port 22

2. Most FTP clients support FTP over SSH

3. It's pretty much plug and play - start the service and you can start logging in with your users :)

Mind if you give me a small tutorial on setting that up or link me to a site that'll explain setting up FTP access

And why would you want to disable it?? Have we not gone over this? Have your users use ACTIVE connections! As I thought I had already told you if your having issues with your router doing the passive for you.. Just manually set it up.

Set proftpd to use a specific range for its passive ports

http://www.proftpd.org/docs/directives/lin...ssivePorts.html

PassivePorts 49152 65534

I wold not use such a large range.. You only need a range large enough to handle the number of concurrent users you might have.. Something like 65000 65050 should be more than enough.

Now forward this range on your router to your ftp server. Done!

Yeah and I've done that with no luck, it dosnt work.

Is your server still open? And you were going to give me access to your router?

So your users are not smart enough to not enable passive in IE, or to uncheck it.. or use a real ftp client to access site so they can set passive or active based on site, etc..

But you going to have them use a SSH tunnel to get to your ftp server?? Yeah that makes sense :rolleyes:

if your going to go the SSH route -- why not just setup SFTP? the openssh will provide SFTP, and kill 2 birds with 1 stone.. BTW yes ftp tunneled thru ssh or SFTP is way moe secure than FTP but it does come with a performance hit as its price.. You have the added overhead of encryption.

BTW -- normally in FTP over SSH, only the control traffic, ie port 21 is secured. The data connection would be in the clear and would still be either a passive or active connection.. So doing a ssh ftp tunnel is not going to fix your passive issue.

Unless your using clients that understand it, etc.

Ok I just took a look at that routers controls the dir-655 right? What level of SPI are you doing on that?

Under advanced, firewall -- I would assume its set to "Port And Address Restricted" as the default.. Change it to "Endpoint Independent" atleast for testing.

Ok since you had sent me the login info for your router.. I did some testing.. BTW -- I don't show your proftpd.conf being changed since 6/3 so when exactly did you configure the passive ports it uses?? Nor did I see any forwards for the passive ranges.

Anyway -- it seems your problem is your SPI firewall. I turned it off and passive works just fine!! With no need of a manual forward of the passive ports.

Retrieving directory listing...

TYPE A

200 Type set to A

PASV

227 Entering Passive Mode (82,13,132,223,247,198)

LIST -a

150 Opening ASCII mode data connection for file list

226 Transfer complete

Directory listing successful

PASV

227 Entering Passive Mode (82,13,132,223,247,183)

LIST -a

150 Opening ASCII mode data connection for file list

226 Transfer complete

Directory listing successful

If I enabled the passive range as a forward -- it would sometimes work, sometimes not.. But once I turned off the SPI it works every single time I have connected.

To be honest you really have little use for their added SPI checks since your behind a NAT anyway.. Only traffic that you forward or is in answer to something you request will get thru.

From the help on your router.

Enable SPI

SPI ("stateful packet inspection" also known as "dynamic packet filtering") helps to prevent cyberattacks by tracking more state per session. It validates that the traffic passing through that session conforms to the protocol. When the protocol is TCP, SPI checks that packet sequence numbers are within the valid range for the session, discarding those packets that do not have valid sequence numbers.

Whether SPI is enabled or not, the router always tracks TCP connection states and ensures that each TCP packet's flags are valid for the current state.

So turning that off just disables some extra checks.. its really still doing SPI -- ie its checking the state.. Its just not doing added BS checks on the packets.

Your welcome -- if you don't mind.. leave my access open.. I'll check on your collection now and then ;) I'm a HUGE Scifi fan myself ;)

No problem mate, help yourself but dont expect any fast downloads :) (70KB/s max :()

I delete episodes while I watch them on the Popcorn Hour so keep an eye out for stuff.

I'm putting in a 1TB hard drive soon so hopefully then I wont need to delete stuff.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Lol I had one of these turn faulty in Jan, guess it wasn't just bad luck lol
    • I'm team Rossmann all the way. I have the exact same NVME, altough not in an array like him.
    • It had gone weeks ago. Although thinking about it I'm on the beta.
    • They thought value of their goods would forever only drop like it used to and didn't account for sudden increase in price because of all the Ai hype. Tough luck Samsung, don't try to weasel this one out. Also American customer protection laws are a**. In Europe, you need to be compensated for a functioning product of same or better characteristics (not same price point as when it was originally bought!) if it can't be repaired and when you receive a replacement product your warranty starts from scratch because you received a different item than you previously had and old warranty thus cannot apply to it anymore. If your actual item was successfully repaired, warranty gets extended for the period the item was in service. If item is repaired to a significant extent, warranty also starts over from scratch because major part of it was replaced. Americans need to fight to get this kind of consumer protections because they are constantly getting screwed over.
    • Microsoft releases new Windows 11 Media Creation Tool with the latest updates by Taras Buria Patch Tuesday updates arrive every month, bringing users new features and security updates. To make sure customers have access to the most recent images, Microsoft also releases updates to the Media Creation Tool app, its official utility for Windows 11 installation. Today, the company pushed new ISOs to Media Creation Tool, allowing you to create images with the June 2026 Patch Tuesday updates. With the latest update, the Media Creation Tool now downloads KB5094126. It is Windows 11 version 25H2, build 26200.8655, which is also available via Windows Update. Note that the app itself remains on the previous version, which you can check in Properties > Details. The only change is that it now downloads a more recent Windows 11 build, so the only way to check is to download an ISO. The June 2026 Patch Tuesday update is a special release for Windows 11, as it brings a new performance profile to make the operating system more responsive and snappier when rendering various user interface surfaces, including the Start menu, quick settings, and more. It does so by spiking processor speeds for a brief moment, resulting in higher loads for a second or two. The so-called “Low latency profile” is rolling out gradually, but you can force-enable it with the ViVeTool app. Other changes include webcam improvements, Task Manager updates, shared audio support, and more. You can download the Media Creation Tool app from the official Microsoft website using this link. Besides MCT, Microsoft lets you download Windows 11 ISO as a file directly from the official Windows 11 website. However, you will need a third-party app to write it to your USB drive. Check out this guide if you want to know how to do that.
  • Recent Achievements

    • Week One Done
      davidbazooked earned a badge
      Week One Done
    • One Month Later
      Jamswaz earned a badge
      One Month Later
    • Week One Done
      Jamswaz earned a badge
      Week One Done
    • Rookie
      Marzoid went up a rank
      Rookie
    • Community Regular
      coch went up a rank
      Community Regular
  • Popular Contributors

    1. 1
      +primortal
      509
    2. 2
      PsYcHoKiLLa
      184
    3. 3
      +Edouard
      158
    4. 4
      Steven P.
      83
    5. 5
      ATLien_0
      75
  • Tell a friend

    Love Neowin? Tell a friend!